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:

Re:Emailer Error Question (1998) Help! WebCat2 bug (1997) [WebDNA] reply vs. new (2009) Shell script within a sandbox (2005) New Guestbook Source (1997) WebDNA Mail issues (2002) Re:2nd WebCatalog2 Feature Request (1996) Off-Topic: Automatic FTP scripts for OSX (2003) WebDNA and PostGres SQL (2005) Bug? (1997) Checkboxes (1998) [Announce]: Web server security and password protection (1997) Showif, Hideif reverse logic ? (1997) AOL and [referrer] (2001) Test (2003) shownext (1997) Location of Browser Info.txt file (1997) Not really WebCat - need HTML Grider (1997) Can this be done? (2004) Remote Administration (1998)