Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Error running a script in the crontab.

Status
Not open for further replies.

Elminster

Programmer
Jun 26, 2001
78
CA
Hi to all,
I’m running several script at night in the crontab and each morning I got a mail with that error message : logname: could not find entry in /etc/utmp.

My script seams to work fine but if I don’t check my mail for a wile, I got like 5000 message all saying the same thing.

Thanks for the help!
-Simon
 
Either don't use su in your script or redirect the stdin and stderr to a log file (>/path/to/file.log 2>&1))

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ222-2244
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top