Re: [WebDNA] Anyone knows how to shell reboot?

This WebDNA talk-list message is from

2013


It keeps the original formatting.
numero = 110816
interpreted = N
texte = --089e01161d3ef9690604e977d247 Content-Type: text/plain; charset=ISO-8859-1 Hi! How about writing a file to certain directory with WebDNA and a cronjob (no Trigger) with a shell-script watching it. If it's there -> delete file and reboot. Gerald On Sun, Oct 13, 2013 at 3:06 AM, Jim Lanford wrote: > Have you tried to first write a shell script, test 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 # or whatever works > # > exit > - - - - > [shell] myreboot [/shell] > > > > On Oct 8, 2013, at 1:04 PM, Steve Graham wrote: > > > I want a shell script to reboot my webdna ubuntu vps. I think this > should work but it fails: > > > > [shell]echo PASSWORD | sudo shutdown -r now[/shell] > > > > What is wrong??????? > > --------------------------------------------------------- This message > is sent to you because you are subscribed to the mailing list . To > unsubscribe, E-mail to: archives: > http://mail.webdna.us/list/talk@webdna.us Bug Reporting: support@webdna.us > > --------------------------------------------------------- > This message is sent to you because you are subscribed to > the mailing list . > To unsubscribe, E-mail to: > archives: http://mail.webdna.us/list/talk@webdna.us > Bug Reporting: support@webdna.us > --089e01161d3ef9690604e977d247 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
Hi!
How about writing a file to certain directory with= WebDNA and a cronjob (no Trigger) with a shell-script watching it. If it&#= 39;s there -> delete file and reboot.
Gerald



On Sun,= Oct 13, 2013 at 3:06 AM, Jim Lanford <jlwc@lanford.com> wrot= e:
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]



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:
>
> [shell]echo PASSWORD | sudo shutdown -r now[/shell]
>
> 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
the mailing list <talk@webdna.us= >.
To unsubscribe, E-mail to: <talk= -leave@webdna.us>

--089e01161d3ef9690604e977d247-- Associated Messages, from the most recent to the oldest:

    
  1. Re: [WebDNA] Anyone knows how to shell reboot? (Gerald Bossert-Stumvoll 2013)
  2. Re: [WebDNA] Anyone knows how to shell reboot? (Jim Lanford 2013)
  3. Re: [WebDNA] Anyone knows how to shell reboot? (Robert Minor 2013)
  4. Re: [WebDNA] Anyone knows how to shell reboot? (WebDNA 2013)
  5. Re: [WebDNA] Anyone knows how to shell reboot? (Steve Graham 2013)
  6. Re: [WebDNA] Anyone knows how to shell reboot? (Steve Graham 2013)
  7. Re: [WebDNA] Anyone knows how to shell reboot? (Jeffrey Jones 2013)
  8. [WebDNA] Anyone knows how to shell reboot? (Steve Graham 2013)
--089e01161d3ef9690604e977d247 Content-Type: text/plain; charset=ISO-8859-1 Hi! How about writing a file to certain directory with WebDNA and a cronjob (no Trigger) with a shell-script watching it. If it's there -> delete file and reboot. Gerald On Sun, Oct 13, 2013 at 3:06 AM, Jim Lanford wrote: > Have you tried to first write a shell script, test 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 # or whatever works > # > exit > - - - - > [shell] myreboot [/shell] > > > > On Oct 8, 2013, at 1:04 PM, Steve Graham wrote: > > > I want a shell script to reboot my webdna ubuntu vps. I think this > should work but it fails: > > > > [shell]echo PASSWORD | sudo shutdown -r now[/shell] > > > > What is wrong??????? > > --------------------------------------------------------- This message > is sent to you because you are subscribed to the mailing list . To > unsubscribe, E-mail to: archives: > http://mail.webdna.us/list/talk@webdna.us Bug Reporting: support@webdna.us > > --------------------------------------------------------- > This message is sent to you because you are subscribed to > the mailing list . > To unsubscribe, E-mail to: > archives: http://mail.webdna.us/list/talk@webdna.us > Bug Reporting: support@webdna.us > --089e01161d3ef9690604e977d247 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
Hi!
How about writing a file to certain directory with= WebDNA and a cronjob (no Trigger) with a shell-script watching it. If it&#= 39;s there -> delete file and reboot.
Gerald



On Sun,= Oct 13, 2013 at 3:06 AM, Jim Lanford <jlwc@lanford.com> wrot= e:
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]



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:
>
> [shell]echo PASSWORD | sudo shutdown -r now[/shell]
>
> 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
the mailing list <talk@webdna.us= >.
To unsubscribe, E-mail to: <talk= -leave@webdna.us>

--089e01161d3ef9690604e977d247-- Gerald Bossert-Stumvoll

DOWNLOAD WEBDNA NOW!

Top Articles:

Talk List

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...

Related Readings:

Group search doesn't work. (1997) syntax question, not in online refernce (1997) show me your store ! (2003) Bug or syntax error on my part? (1997) Re:quit command on NT (1997) InternetWeek E-Commerce article (1998) The IBC root beer has arrived! (1997) [TaxableTotal] - not working with AOL and IE (1997) Banners (1997) Field name-subcategory (1997) RE: (OFF TOPIC) System 8.5.1 FINDER ERROR (1999) show related items (2003) [WebDNA] [OT] Spam reduction? (2009) Username for Admin Group (1997) Template Cache problem (2000) Change history ... ? (2003) [removehtml] (was: Undocumented tags and contexts) (2000) Country & Ship-to address & other fields ? (1997) WebTen Memory Error with Plug-In (1998) FormVariable (1999)