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:

Storebuilder SOLVED!!!!!!! (2003) Forms Search Questions (1997) splitting numbers in webDNA? (1997) can't get WebDNA to display my SQL primary keys via ODBC (2003) Re:Searching for ALL / empty form field *the FINAL answer* (1997) [OT] Domain Name Scam (2000) Emailer setup (1997) Before I Can Begin . . . (1998) Cannot get subtotal to work (1997) PCS Emailer's role ? (1997) UPDATEDONE question ... (1998) error: Too many nested [xxx] contexts (1997) MacAuthorize order data fields WAS:How To question... (1997) WEBDNA and Design work needed (2003) WebCat2: multiple currency support (1997) RequiredFields template (1997) Web Catalog 2 demo (1997) RE: redirect with more than 256 characters (1999) WebCat2 - Getting to the browser's username/password data (1997) Question about searching combination of fields (2003)