Page 1 of 1

Reset GD with a script (release 9)

Posted: 23 Apr 2010 10:14
by diego
Hi,
I want to reset a gd (at 1 A.M. every sunday) with a script.
I write in crontab of mtcl:
0 1 * * 0 /DHS3bin/oneshot/mtcl/tool rstcpl 2 0
but it doesn't work because the reset of GD with release 9 requires a confirm by the user.
"Do you really want to reset the coupler? (Y/N):"
How can I do to give the confirm ?

Thank you

Posted: 23 Apr 2010 14:02
by tempmj
i have mixed results doing this with other scripts before with the following syntax:
echo "y" | command
this will run the command then type the y character
you may try it out from the command line before putting it into the crontab
i assume it would be like this from the command line:
echo "y" | /DHS3bin/oneshot/mtcl/tool rstcpl 2 0
or this line for the crontab:
0 1 * * 0 (echo "y" | /DHS3bin/oneshot/mtcl/tool rstcpl 2 0)

please post a reply to this thread and let us know if it works for you. if it doesn't i'll try and think of another way for you to do it.