Re: Cronjob and Perl "qq"
Posted in 1998
In article <6qftib$svl$1@nnrp1.dejanews.com>, edwardv@jps.net () wrote: > Can any one tell me why my scripts work when i run them manually but > when i > run them in a cron i get errors? I think it has to do with perl's "qq" > command because if i take out everything associated with the 'qq' > command, my > error goes away and the scripts work. but obviously i need the 'qq'. > Thanks > in Advance. > [cutting] If it works from the command line but not from cron it has to be path or environment, echo the environment at the start of the cronjob. Alternative put a shell wrapper around where you explicitly set the environment. Personally, I like to source a known environment when I start any script, obviously with the option of the calling environment being passed through to allow for over riding of the defaults. Paul Watson # I don't suffer from WF Software Ltd. # stress, I'm just Tel. (+44) 1436 674729 # a carrier Fax. (+44) 1436 678693 #