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:

Major Security Hole IIS NT (1998) WebCat b15 Mac plug-in (1997) WebCat2b13MacPlugIn - [include] doesn't allow creator (1997) shipcost (1997) WebCatalog 4.0 has been released! (2000) default value from Lookup (was Grant, please help me) (1997) Cart Creation (2003) RE: TeaRoom (1997) Forms (1997) Overseas project (2000) Sensations (1997) WebCat 4.5 and Windows Server 2003 (2006) Frames and WebCat (1997) Form Weirdness (2002) Why this code works from some places and doesn't from others? (2000) Robert Minor duplicate mail (1997) Cart Question (1998) NY taxRates.db? (1997) [SHOWIF]s and empty arguments (1997) Shipping Calculation Problem (1997)