Re: at utility use - almost works

Pierre Fortin <[email protected]>
Newsgroups gmane.linux.mandrake.expert
Message-ID <[email protected]>
On Tue, 9 Nov 2010 11:26:38 +1000 Phil wrote:

>I was able to download a test file but the shutdown command doesn't
>work. My command file looks like this:
>
>download command here
>
>sudo shutdown -h now
>
>The file downloaded and "sudo shutdown -h now" does work if entered
>directly in a console. Can anyone offer a suggestion? Also, How can I
>view error messages if I mistype the file name that I want to download?

Try specifying the full path...  you probably want /sbin/shutdown,
not /usr/bin/shutdown which is a symlink to /usr/bin/consolehelper

HTH,
Pierre
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.