Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I'm new to all this stuff, so please forgive if a question is stupid. I'm running a script as daemon, in order to debug it I'm trying to dump logs in file, but no file is created. And if I run script not as daemon log file is created and logs are dumped. What's wrong here?

Thank you in advance!

P.S. I'm running centos

share|improve this question
    
How are you running it as a daemon? And how are you logging to a file? What language is this script in? Is it a bash/shell script? Or python or perl etc.? –  webtoe Feb 28 '12 at 12:56

1 Answer 1

What do you use in your script to create log files? If the script is too large to show it here, put it to pastebin.com or such.

To write messages to syslog from a shell script, use logger, the results can be found in /var/log/syslog (or elsewhere when you want it).

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.