cron outputting blank lines
On my old centos server, i have a cron in crontab that outputs some stuff to a file.
The output showed up fine.
Then I replicated the cron to a new redhat server with identical paths and permissions.
Tested on commandline, the output is fine.
But when the cron executes, there is no output, sort of.
I know the cron is running, because it also update some values in database, and when I checked the file, it did output newlines, but just empty lines.
On the old server, it'll output 5 lines each time the cron is run.
On the new server, it'll output 5 blank lines.
Is there some config in cron service that I need to change?
|