Help - Search - Members - Calendar
Full Version: Using Zcat In Crontab
Linuxhelp > Support > Technical Support
psmolcyn
I have the following command setup in crontab:

0 12 26 8 * zcat /var/log/mail-200408 | statistics > aug04

When I checked the output file it is blank. This command works fine when I enter it manually from the prompt. Any ideas?

Thanks
michaelk
You need to specify the complete path to zcat

0 12 26 8 * /bin/zcat /var/log/mail-200408 | statistics > aug04
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2017 Invision Power Services, Inc.