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;.
domstat command
Re: domstat command
try
echo -e "9\n\n0\n"|domstat
Regards
echo -e "9\n\n0\n"|domstat
Regards
- Tha Tawa'S
- Member
- Posts: 89
- Joined: 16 Jan 2010 04:49
Re: domstat command
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 ...
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 ...
- Tha Tawa'S
- Member
- Posts: 89
- Joined: 16 Jan 2010 04:49
Re: domstat command
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 !
Need to use
echo -e "9\n\n0\n"|tool ippstat domain >> /usr4/tmp/0_Avant_Bascul
==> domstat is an alias !
Re: domstat command
Try
echo -e "17\n9\n\n0\n"|tool ippstat
regards
echo -e "17\n9\n\n0\n"|tool ippstat
regards
- Tha Tawa'S
- Member
- Posts: 89
- Joined: 16 Jan 2010 04:49
Re: domstat command
Yes Sadim, it works too.