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

This WebDNA talk-list message is from

2013


It keeps the original formatting.
numero = 110802
interpreted = N
texte = --Apple-Mail=_390EF41D-9432-4F9E-8D67-AEDB514CF0E1 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=iso-8859-1 Steve Have you tried it around the other way with password second ? Regards Stuart Tremain IDFK Web Developments AUSTRALIA webdna@idfk.com.au On 09/10/2013, at 2:25 PM, Steve Graham wrote: > Anyone ever used shell to send commands that require sudo in terminal? = Please help if you know how. >=20 >=20 > 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. >=20 >=20 > On Tue, Oct 8, 2013 at 12:09 PM, Jeffrey Jones = wrote: > I believe you want -r for reboot not -h for halt >=20 > On Oct 8, 2013, at 10:04 AM, Steve Graham = wrote: >=20 > > 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 >=20 > --------------------------------------------------------- > 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 >=20 >=20 > --------------------------------------------------------- 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 --Apple-Mail=_390EF41D-9432-4F9E-8D67-AEDB514CF0E1 Content-Transfer-Encoding: 7bit Content-Type: text/html; charset=iso-8859-1 Steve

Have you tried it around the other way with password second ?


Regards

Stuart Tremain
IDFK Web Developments
AUSTRALIA




On 09/10/2013, at 2:25 PM, Steve Graham <skgrahamjr@gmail.com> 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 <skgrahamjr@gmail.com> 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 <jjones@synergos.com> wrote:
I believe you want -r for reboot not -h for halt

On Oct 8, 2013, at 10:04 AM, Steve Graham <skgrahamjr@gmail.com> 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 <talk@webdna.us>.
To unsubscribe, E-mail to: <talk-leave@webdna.us>
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

--Apple-Mail=_390EF41D-9432-4F9E-8D67-AEDB514CF0E1-- 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)
--Apple-Mail=_390EF41D-9432-4F9E-8D67-AEDB514CF0E1 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=iso-8859-1 Steve Have you tried it around the other way with password second ? Regards Stuart Tremain IDFK Web Developments AUSTRALIA webdna@idfk.com.au On 09/10/2013, at 2:25 PM, Steve Graham wrote: > Anyone ever used shell to send commands that require sudo in terminal? = Please help if you know how. >=20 >=20 > 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. >=20 >=20 > On Tue, Oct 8, 2013 at 12:09 PM, Jeffrey Jones = wrote: > I believe you want -r for reboot not -h for halt >=20 > On Oct 8, 2013, at 10:04 AM, Steve Graham = wrote: >=20 > > 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 >=20 > --------------------------------------------------------- > 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 >=20 >=20 > --------------------------------------------------------- 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 --Apple-Mail=_390EF41D-9432-4F9E-8D67-AEDB514CF0E1 Content-Transfer-Encoding: 7bit Content-Type: text/html; charset=iso-8859-1 Steve

Have you tried it around the other way with password second ?


Regards

Stuart Tremain
IDFK Web Developments
AUSTRALIA




On 09/10/2013, at 2:25 PM, Steve Graham <skgrahamjr@gmail.com> 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 <skgrahamjr@gmail.com> 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 <jjones@synergos.com> wrote:
I believe you want -r for reboot not -h for halt

On Oct 8, 2013, at 10:04 AM, Steve Graham <skgrahamjr@gmail.com> 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 <talk@webdna.us>.
To unsubscribe, E-mail to: <talk-leave@webdna.us>
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

--Apple-Mail=_390EF41D-9432-4F9E-8D67-AEDB514CF0E1-- WebDNA

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:

Site Builder & IE Mac (2004) WebCat2 several catalogs? (1997) NetForms for mail, sorry (1998) [WebDNA] Yikes, upgraded to OS Mavericks and now WebDNA not running (2013) PCS Frames (1997) [format xs] freeze (1997) Truncated value after space - refresh my memory.... (1997) Server Load (2000) [OT] HTML EMAIL program wanted (1999) WC TableGrinder (1997) Three new problems ... (1997) Upgrade to MacOS9 and W*4.1 (1999) WebCat2b15MacPlugin - showing [math] (1997) emailer (1997) SiteEdit Pro Update Announcement (1997) Conveting Characters to Graphics (1997) WC2f3 (1997) Another bug to squash (WebCat2b13 Mac .acgi) (1997) How to Display text in empty fields (1997) Help name our technology! (1997)