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:

Wanted: More Math Functions (or, Can You Solve This?) (1997) Delayed Redirect (2000) Reversed words (1997) Newbie problem blah blah blah (1997) Setting up WebCatalog with Retail Pro data (1996) Show items based on login Password (2003) protect tag on NT (1997) vs (1997) [OT] Deploying XRAID (2003) Encoding information to send through TCPConnect (1999) RE: Which [index]? (1997) Problems with [Applescript] (1997) Typo in the Online Docs ... (1997) RE: Switching To NT (1999) OT: Just for a waste of time (2003) Size limit for tmpl editor ? (1997) Generating Report Totals (1997) WebCat2 as a chat server? (1997) WebCatalog Upgrade Pricing? (1997) Emailer (1997)