[NTLUG:Discuss] crontab issue

Fred James fredjame at fredjame.cnc.net
Wed Mar 14 16:04:17 CDT 2007


Chris Cox wrote:

>Fred James wrote:
>  
>
>>All
>>If I use a crontab entry such as
>>
>>42 * * * * su - username -c /home/username/program argument1 argument2 
>>argument3 2> /tmp/errorfile
>>
>>(1) errorfile will contain "stdin: is not a tty"
>>(2) the arguments are ignored
>>(3) the program attempts to run
>>
>>This type/form of crontab entry works well on SGI IRIX, but I have not 
>>been able to find the correct translation/syntax for Linux.  Thank you 
>>in advance for any help you may be able to offer
>>    
>>
>
>Close stdin??
>
></dev/null
>  
>
>>Regards
>>Fred James
>>    
>>
Chris Cox
Thank you for trying, but I got the same result, exactly - unless this 
is the wrong syntax ...

42 * * * * su - username -c /home/username/program argument1 argument2 argument3 < /dev/null 2> /tmp/errorfile

Regards
Fred James



More information about the Discuss mailing list