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:

Multiple catalog databases and showcart (1997) 100 + Users updating database (2002) frames & carts (1997) Customizing WebDelivery.html (1998) WebSite and *NO* Authentication Dialog Box!!? (1998) Postprocessing CCs (2000) emailer (1997) Just Started (1998) Shorthand for command args (1998) template cache problem (1998) [WebDNA] Is a '.webdna' suffix better? (2008) Error: Can't open order file. Ignoring [OrderFile] context (2000) Emailer tracking (1997) HomePage Caution (1997) Shhh... (2006) Passing Username and Password on the command line (2000) WC2b15 File Corruption (1997) New syntax feedback for 4.0 (2000) [WebDNA] Need someone to port CakePHP auction site to WebDNA (2010) File Info Cache Size is out of range? (1998)