Operating System - HP-UX
1834416 Members
1907 Online
110067 Solutions
New Discussion

Re: Printer format different when runnng job from cron

 
Donald Thaler
Super Advisor

Printer format different when runnng job from cron

We have a job that prints student transcripts, and whe we run it within the application the printing is ok. When we run the same job with the same input parameters from cron we get a .lis file that is not formatted the same. For some reason every page after page one has an additional 7 blank lines at the top of each page. Why would running a print job from cron cause this weird behavior? We're on hp ux 11i.
1 REPLY 1
harry d brown jr
Honored Contributor

Re: Printer format different when runnng job from cron


cron jobs do not have the same ENVIRONMENT VARIABLES that a user would have, which means you need to determine what variables the cron job needs, and add them to the script!

live free or die
harry d brown jr
Live Free or Die