I need daemon script which every 3 seconds call command: cat /proc/stat > /some/file
can anybody help me how make and setup this? (system is debian squeeze)
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
like this?
and run it with
/path/to/scrip.sh &(use the trailing
&to run it in the background, that is: “daemon” mode)it’s not very sophisticated (e.g. the only awy to stop it once it’s started is by killing it), but does what you asked for.