unix - No user returned when running job using crontab -
i dont have cron.allow , have blank cron.deny file.
my crontab looks below:
# .---------------- minute (0 - 59) # | .------------- hour (0 - 23) # | | .---------- day of month (1 - 31) # | | | .------- month (1 - 12) or jan,feb,mar,apr ... # | | | | .---- day of week (0 - 6) (sunday=0 or 7) or sun,mon,tue,wed,thu,fri,sat # | | | | | # * * * * * user-name command executed # test entry * * * * * echo `who i` > /home/2125/rr_dev_code/etl/crontab.test but, not writing user test file. file gets created means cron gets fired user. when execute who i cli, returns valid user.
am missing here ?
here suggestion
add proper logging,
* * * * * echo `who i` 1> /home/2125/rr_dev_code/etl/crontab.test.out 2>/home/2125/rr_dev_code/etl/crontab.test.err then see content of files. tell precise problem. (and btw, should whoami not who i)
Comments
Post a Comment