1826737 Members
2525 Online
109702 Solutions
New Discussion

Re: perl script in cron

 
SOLVED
Go to solution
Inesa Clinko
Advisor

perl script in cron

Hi all!
I have a troubles with "gunzip" command, used
in script "my.pl" /owner: fileuser/ , started every minute by cron of this user:
* * * * * /dir/my.pl 2>/dev/null >/dev/null

When I try to start "my.pl" by command line
with user "fileuser", "gunzip" is gone OK and
de-compress files.
The permissions of files are ok: 777

Where is the problem?

2 REPLIES 2
Fred Ruffet
Honored Contributor
Solution

Re: perl script in cron

gunzip is not in your PATH when running in cron. You should reference /usr/contrib/bin/gunzip.

regards,

Fred
--

"Reality is just a point of view." (P. K. D.)
Inesa Clinko
Advisor

Re: perl script in cron

Thanks, Fred!
You are a Star :))