Hi,I am a newbe, so forgive me .I have new CentOS 6.4 system.I have a .sh script which is writing a file to NFS mount, it runs as non-root user.Script is running... [by leszekgeba]
on 07/04/2013 – Made popular on 07/04/2013
I have a script run from a non-privaleged users' crontab that invokes some commands using sudo. Except it doesn't. The script runs fine but the sudo'ed commands silently fail.
The script runs perfectly from a shell as the user in question.
Sudo does not require a password. The user in question has (root) NOPASSWD: ALL access granted in /etc/sudoers.
Cron is running and executing the script.
I am writing a script that will eventually be executed by a cron job every 15 minutes. I want to make sure that my logic/script doesn't get executed if a previous job is still running. What would be the best way to handle that scenario? I was thinking to make my script create a temporary file once it starts and then remove it at the very end before exit.
I've got a weird problem with cron not running my flexget task. Basically, I've told it to run a script every hour (0 * * * * /path/to/script). This script calls "flexget --cron", and then logs a success to a log file. Calling the script manually works fine, however nothing happens when cron tries to run it.