LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-20-2011, 02:39 AM   #1
mocax
LQ Newbie
 
Registered: Dec 2010
Posts: 2

Rep: Reputation: 0
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?
 
Old 08-20-2011, 03:56 AM   #2
David the H.
Bash Guru
 
Registered: Jun 2004
Location: Osaka, Japan
Distribution: Debian sid + kde 3.5 & 4.4
Posts: 6,823

Rep: Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957
"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?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] grep ??? searching a file and outputting 5 lines either side... redhatuser1 Linux - Newbie 2 09-29-2010 04:45 AM
Detecting Blank Lines in C adymroxx Programming 12 02-27-2007 08:19 AM
Remove Blank Lines wwnexc Linux - Software 2 05-06-2006 12:14 PM
Cron is not outputting log files... Clubber Lang Linux - Newbie 2 09-27-2004 05:41 AM
Replace blank/almost blank lines in file Wynd Linux - General 3 01-27-2004 05:49 PM


All times are GMT -5. The time now is 06:44 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration