Skip to main content

All Questions

Tagged with
2 votes
1 answer
24 views

Trying to run a shellscript but not workung

My shell script is running when I manually run it. Cronjob is also working, al others are running but not this script. This is my code. 30 3 * * * cd /var/www/html/cronjob && sh shellscript.sh ...
Shibin Mariyan Stanly's user avatar
0 votes
1 answer
327 views

S3 command not working in cron

I have this ultra simple cron job: 48 20 * * * cd /home/pankaj;s3cmd -f get s3://myfile.gz The command works by itself. But the cron job does not. The cron job is created for the same user(pankaj) ...
kargirwar's user avatar
  • 183
1 vote
3 answers
1k views

Cronjob as root?

I'm having a bit of a problem with cronjobs for backups. I've set up the following in sudo crontab -e (not under personal account): 0 1 * * * /backups/dobackup /backups/dobackup contains this: #!/...
Rob's user avatar
  • 113
1 vote
0 answers
2k views

Why does cron task run twice?

I have a task that should run each day in Ubuntu10.04. So I use crontab and copy the scripts of the task to the directory /etc/cron.daily. Here is the my crontab: # /etc/crontab: system-wide crontab ...
flypen's user avatar
  • 307
7 votes
2 answers
4k views

Can Ubuntu play a video via cron job?

I'm developing a display system for a paint shop. I've set up a computer with Ubuntu to run the video and display it on a TV, running a PHP script that should update the video every hour via the ...
Sune Rasmussen's user avatar
81 votes
4 answers
224k views

How to run a cron job as a specific user?

I would like to run a cron job as a specific user on my machine. How may I specify the user for a cron job to run as?. The cron jobs will be running on a server (running on Ubuntu 10.0.4). The 'users'...
morpheous's user avatar
  • 4,393