1836481 Members
1849 Online
110101 Solutions
New Discussion

Cron

 
Jeff Burks_1
New Member

Cron

I have a script that runs fine manually. But when run by cron runs most of it
except for an LP command.

Are there any conditions where cron does not have rights to print files?
1 REPLY 1
Neil Gast_1
Frequent Advisor

Re: Cron

Cron is a multi-user tool, meaning that different users can create their own
crontab files with the crontab(1) command. It certainly is permissible that you
are trying to print a file that you don't have permission to read, especially
if you're running as a non-root user.
Also, ensure that you're specifying the full path to lp. Cron may or may not
have a sane PATH value.

MrNeil