On 22 June 2012 09:59, <[email protected]> wrote:

> >>>>> "lists" == lists  <[email protected]> writes:
>
> lists> (I'm going backwards in a hurry, first I can't telnet to
> lists> localhost,) now, my script gives this:
>
> lists> sudo: sorry, you must have a tty to run sudo
>
> Don't use sudo in a script.  You can set your cron job to run as a
> particular user.
>

That, or if you must use sudo then you can specify !requiretty in sudoers.

--Amos
-- 
 [image: View my profile on LinkedIn]
<http://www.linkedin.com/in/gliderflyer>
-- 
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html

Reply via email to