Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
My Rh doesn't execute command in it.
I used #crontab -e, and typed
*/5 * * * * /path/script --logging arq.log
But the cron doesn't run.
If I try the script directly, it runs normally.
What is wrong ?
I know it doesn't run because the log files aren't been Created. Running by hand,they appears.
The script I created with the command + options. I tried before putting the command there.
It was incomplete my post, be I put the directory + name of file (/tmp/file per example).
Created using root user.
I will continue posting until I solve the problem, maybe is the same of someone.
Tomorrow I will remove the --logging file to see below if works.
Thanks
What is the `script` that you are running? (and is --logging a valid flag?)
What directory do you expect to find `arq.log` in?
As what user are you creating the cron job?
Also, isn't this literally the 7th thread in which you've asked this question?
Yes, it is thread number 7 for this guy. Despite having Jeremy tell him twice to stop. And despite having his nose rubbed into the instructions several times, and being spoon-fed the EXACT command to use twice.
Apparently, he thinks if he doesn't mention mrtg, we won't notice
You see how I am hardcoding the path of the log file rather than just assuming the computer will magically know where to put it? that's important for cron jobs.
Try that. If that doesn't run, then we know the problem is with your cron system (for instance, maybe it isn't running). If it does run, then we know the problem is with your script.
Sad, but I believe you are wasting your time. Our OP seems to be write-only, no reading. Reminds me old days when we did some satellite hacking. Those smartcards had write-only chips, you were not supposed to read them ...
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.