LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   cron outputting blank lines (https://www.linuxquestions.org/questions/linux-newbie-8/cron-outputting-blank-lines-898407/)

mocax 08-20-2011 01:39 AM

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?

David the H. 08-20-2011 02:56 AM

"I did some stuff with some stuff, but it doesn't give me the stuff I want. How can I fix it?"

Sorry for the sarcasm, but really, that's pretty much all you said.

How about posting the actual cron command you used? Or what the program/script is that you're running? Or what output you should be getting? Or any kind of context that might actually help someone debug the problem?


All times are GMT -5. The time now is 12:43 PM.