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

This WebDNA talk-list message is from

2013


It keeps the original formatting.
numero = 110803
interpreted = N
texte = I know how you have to visudo and give www priv to run the command without a password. On Oct 8, 2013, at 10:25 PM, Steve Graham wrote: > Anyone ever used shell to send commands that require sudo in terminal? > Please help if you know how. > > > On Tue, Oct 8, 2013 at 12:15 PM, Steve Graham wrote: > >> Agreed. I replaced -h with -r and it still fails so something else is >> wrong. >> >> >> On Tue, Oct 8, 2013 at 12:09 PM, Jeffrey Jones wrote: >> >>> I believe you want -r for reboot not -h for halt >>> >>> On Oct 8, 2013, at 10:04 AM, 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 -h 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 >>> >> >> 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)
I know how you have to visudo and give www priv to run the command without a password. On Oct 8, 2013, at 10:25 PM, Steve Graham wrote: > Anyone ever used shell to send commands that require sudo in terminal? > Please help if you know how. > > > On Tue, Oct 8, 2013 at 12:15 PM, Steve Graham wrote: > >> Agreed. I replaced -h with -r and it still fails so something else is >> wrong. >> >> >> On Tue, Oct 8, 2013 at 12:09 PM, Jeffrey Jones wrote: >> >>> I believe you want -r for reboot not -h for halt >>> >>> On Oct 8, 2013, at 10:04 AM, 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 -h 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 >>> >> >> Robert Minor

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:

faxing orders (2000) Special characters & [sendmail] (1998) [WebDNA] I'm stuck... :-( (2009) BreadCrumb Trails (2001) multi-paragraph fields (1997) [WebDNA] Question on table search (2011) Not reading code (1997) detecting already used [cart]? (2005) Country & Ship-to address & other fields ? (1997) Date Sorting (1997) WebCat2 - [format thousands] (1997) how do you and/or in a search? (1997) japanese characters (1997) Format of Required fields error message (1997) ThisURL and getting domain/server address (2005) Initiating NewCart (1997) listfiles-looking for slick solution (1997) Looking up two prices in database? (1997) Win2003 Webserver (2003) Help name our technology! (1997)