Page 1 of 1

domstat command

Posted: 24 May 2016 08:05
by Tha Tawa'S
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;.

Re: domstat command

Posted: 24 May 2016 11:32
by sadim
try

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

Regards

Re: domstat command

Posted: 24 May 2016 12:14
by Tha Tawa'S
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 ...

Re: domstat command

Posted: 24 May 2016 12:22
by Tha Tawa'S
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 !

Re: domstat command

Posted: 24 May 2016 12:40
by sadim
Try

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

regards

Re: domstat command

Posted: 25 May 2016 01:43
by Tha Tawa'S
Yes Sadim, it works too.