domstat command

Post Reply
User avatar
Tha Tawa'S
Member
Posts: 86
Joined: 16 Jan 2010 04:49

domstat command

Post by Tha Tawa'S » 24 May 2016 08:05

Hi all,

I would like to get the result of [domstat , choice 9,Display all Domains Devices ] into a script.
Are some options available for domstat menu ?

ippstat comes with --help options (ippstta list all, ..) , but domstat not !
== >> How can I get the result of domstat with choice 9 in theresult of my script ??

For advance, thanks;.

sadim
Alcatel Unleashed Certified Guru
Alcatel Unleashed Certified Guru
Posts: 520
Joined: 02 Jun 2006 07:11
Location: Portugal

Re: domstat command

Post by sadim » 24 May 2016 11:32

try

echo -e "9\n\n0\n"|domstat

Regards

User avatar
Tha Tawa'S
Member
Posts: 86
Joined: 16 Jan 2010 04:49

Re: domstat command

Post by Tha Tawa'S » 24 May 2016 12:14

Thank you Sadim, it works fine when I execute manually, But Does not work when I di ot in a script.

manually :
(420)oxe1b> echo -e "9\n\n0\n"|domstat ==> works fine

In my script :

echo -e "9\n\n0\n"|domstat >> /usr4/tmp/0_Avant_Bascul ==> go the error "./verif_bascul: line 77: domstat: command not found"
even when i script with : echo -e "9\n\n0\n"|tool domstat >> /usr4/tmp/0_Avant_Bascul ==> internal error with command domstat ...

User avatar
Tha Tawa'S
Member
Posts: 86
Joined: 16 Jan 2010 04:49

Re: domstat command

Post by Tha Tawa'S » 24 May 2016 12:22

Ok, I answer myself,

Need to use
echo -e "9\n\n0\n"|tool ippstat domain >> /usr4/tmp/0_Avant_Bascul

==> domstat is an alias !

sadim
Alcatel Unleashed Certified Guru
Alcatel Unleashed Certified Guru
Posts: 520
Joined: 02 Jun 2006 07:11
Location: Portugal

Re: domstat command

Post by sadim » 24 May 2016 12:40

Try

echo -e "17\n9\n\n0\n"|tool ippstat

regards

User avatar
Tha Tawa'S
Member
Posts: 86
Joined: 16 Jan 2010 04:49

Re: domstat command

Post by Tha Tawa'S » 25 May 2016 01:43

Yes Sadim, it works too.

Post Reply

Return to “Linux tricks”