I made a mistake, I edited /etc/crontab via copy and paste. And those crontab entries are not working.
Don't know how well I placed this thread but here we go:
I have my personal user (the only user other than root on the system) cron and it goes like so:
Code:
# m h dom mon dow user command
# ~MAIN
0,10,20,30,40,50 * * 2,4,5,7,8,11 * rikedyp /home/rikedyp/Wallpapers/normal-bg
I have written 7 scripts all together into 1 script called runall.sh in my /home/student directory.
I want to use crontab to run this script every day at night (11:00 PM).
I have tried the following using crontab -e:
PATH=/home/student
00 23 * * * /home/student/runall.sh >> /var/log/script_output.log 2>&1
I have also tried putting this in /etc/crontab like this:
SHELL=/bin/sh
PAT
After upgrading from Mythbuntu 11.04 to 12.03 cron does not appear to be working. I have scripts in /etc/cron.daily and /etc/cron.weekly that aren't running.
When I noticed that the backupscript I placed in /etc/cron.weekly on my Debian6 server isn't executed I placed this small script in it, to see if the weekly cronjob is executed at all:
#!/bin/bash
echo 'CRON RAN' > /var/log/cron-weekly-runcheck.log
saved it as
-rwxr-xr-x 1 root root 64 Jul 15 02:14 /etc/cron.weekly/runcheck.sh
When I checked today, the logfile it was supposed to create di
I put in a command for crontab but nothing seems to be happening.
#vi /etc/crontab
SHELL=/bin/bash
PATH=/sbin:/bin:/usr/sbin:/usr/bin
MAILTO=root
HOME=/
# For details see man 4 crontabs
# Example of job definition:
# .---------------- minute (0 - 59)
# | .------------- hour (0 - 23)
# | | .---------- day of month (1 - 31)
# | | | .------- month (1 - 12) OR jan,feb,mar,apr ...
# | | | |
Thanks for the tip, I did not think of looking there.I've created crontab in /etc/ with command "sudo touch /etc/crontab".But it looks like it did not help.
HI I am new to unix .
I wanted to create a cron job that runs a script every 10 min .So when I enter
Code:
vi /etc/crontab
I get the following output
Code:
SHELL=/bin/bash
PATH=/sbin:/bin:/usr/sbin:/usr/bin
MAILTO=root
HOME=/
# run-parts
01 * * * * root run-parts /etc/cron.hourly
02 4 * * * root run-parts /etc/cron.daily
22 4 * * 0 root run-parts /etc/cron.weekly
42 4 1 * * root
Hi,
I wanted to use cron to play a media file at a certain time (i.e. use it as an alarm clock). However it seems to do nothing. I am not sure what I am doing wrong and would like some help. The contents of my crontab is:
SHELL=/bin/bash
PATH=/sbin:/bin:/usr/sbin:/usr/bin
MAILTO=root
HOME=/
# For details see man 4 crontabs