Have =A0you tried to first write a shell scr=ipt, =A0test and debug it via ssh and then just call that script from WC?
the script file could be called something like myreboot
- - - -
#!/bin/bash
#
echo PASSWORD | sudo shutdown -r now =A0 =A0# or whatever works
#
exit
- - - -
[shell] myreboot [/shell]> [shell]echo PASSWORD | sudo shutdown -r now[/shell]
On Oct 8, 2013, at 1:04 PM, Steve Graham <skgrahamjr@gmail.com> wrote:
> I want a shell script to reboot my webdna ubuntu vps. I think this sho=uld work but it fails:
>>the mailing list <talk@webdna.us=>.
> What is wrong???????
> --------------------------------------------------------- This message= is sent to you because you are subscribed to the mailing list . To unsubsc=ribe, E-mail to: archives: http://mail.webdna.us/list/talk@webdna.us Bug R=eporting: support@webdna.us
---------------------------------------------------------
This message is sent to you because you are subscribed to
To unsubscribe, E-mail to: <talk=-leave@webdna.us>
|
Have =A0you tried to first write a shell scr=ipt, =A0test and debug it via ssh and then just call that script from WC?
the script file could be called something like myreboot
- - - -
#!/bin/bash
#
echo PASSWORD | sudo shutdown -r now =A0 =A0# or whatever works
#
exit
- - - -
[shell] myreboot [/shell]> [shell]echo PASSWORD | sudo shutdown -r now[/shell]
On Oct 8, 2013, at 1:04 PM, Steve Graham <skgrahamjr@gmail.com> wrote:
> I want a shell script to reboot my webdna ubuntu vps. I think this sho=uld work but it fails:
>>the mailing list <talk@webdna.us=>.
> What is wrong???????
> --------------------------------------------------------- This message= is sent to you because you are subscribed to the mailing list . To unsubsc=ribe, E-mail to: archives: http://mail.webdna.us/list/talk@webdna.us Bug R=eporting: support@webdna.us
---------------------------------------------------------
This message is sent to you because you are subscribed to
To unsubscribe, E-mail to: <talk=-leave@webdna.us>
DOWNLOAD WEBDNA NOW!
The WebDNA community talk-list is the best place to get some help: several hundred extremely proficient programmers with an excellent knowledge of WebDNA and an excellent spirit will deliver all the tips and tricks you can imagine...