cronjob problem
Hi,
I am not getting output of ls command Ihave schdule cron job,I have used following command for user test, I want every 2 min ls command should be executed. 02 * * * * /usr/bin/ls > /home/test/ls.txt |
Code:
*/2 * * * * /usr/bin/ls > /home/test/ls.txt |
Quote:
|
Why don't you try something like
Code:
*/2 * * * * /usr/bin/ls /home > /home/test/ls.txt |
Actually, does /usr/bin/ls exist or is it an inate system command?
Code:
*/2 * * * * ls /home > /home/ls.txt |
Quote:
|
Quote:
|
for non-working cron job always watch the log file.
The default log file for cron job is /var/log/cron |
All times are GMT -5. The time now is 06:18 AM. |