Fedora :: Write A Crontab Entry Using "crontab -e"
Jul 21, 2011
I was trying to write a crontab entry using "crontab -e"
Code:
0 0 * * * cp /var/log/httpd/domains/mydomain.net.log
/home/admin/logs/mydomain.net.log
crontab is giving me this error:
Code:
"/tmp/crontab.XXXXfMOnRS":2: bad minute
errors in crontab file, can't install.
I've tried a dozen different values for the minute, but it's still giving me the same error.
View 5 Replies
ADVERTISEMENT
Jun 23, 2011
is it possible disabling a crontab job without deleting the crontab description entry (by crontab -e)?I could also accept to change the entry itself. Now it's:0 0 * * 0-6 /home/me/cron/script.csh
View 4 Replies
View Related
Apr 27, 2010
I am using Linux 64 bit Redhat Linux. I am trying to setup simple crontab as follow...1. Edited crontab file using crontab -e2. Listed the file once to verify it using crontab -l. This will display as.. 18 5 * * 2-3 ksh $HOME/testScript.sh > $HOME/testscript.out3. Logged in a root and restarted cron deamon using "/etc/init.d/crond restart"As per my understanding now my testScript should start running at 5:18 am Thuesday
View 3 Replies
View Related
Jun 14, 2010
I just install F-prot software on my Fedora 13. The following entry was added to /etc/crontab16 * * * * <user> /home/<user>/Desktop/f-prot/fpupdate > /dev/null.I tried to use "crontab -e" or "-l" but unable to edit the crontab.
View 7 Replies
View Related
May 31, 2010
I am trying to setup a cron job using crontab entry like this 6,16,26,36,46,56 * * * * /usr/bin/fetchmail -k>/dev/null 2>&1 But nothing is happening This is the first time I have attempted using cron as I have settup mutt for my email which is now working great but I would like to have the mail collected every 10 mins The file is saved as mailcron in my /home folder. When i run crontab -l its listed ok but no mail is appearing in mutt.
View 10 Replies
View Related
Aug 26, 2010
I have a question about using crontab with /etc/crontab...
I had a cron job that I needed to run as root. At the time I thought that sticking it in /etc/crontab would be a good idea. However, I used the crontab command to edit /etc/crontab, which I guess is not standard procedure? Specifically, I configured /etc/crontab as my local user's crontab (i.e. sudo crontab /etc/crontab) then added my cron job as I would a local user crontab (i.e. sudo crontab -e).
Originally, my cron job looked like this:
30 * * * * root /my/batch/script &> /dev/null
After adding the new cron job I started seeing errors. Something to the effect of "can't find command root" or something similar. So I removed the 'root' user definition from the cron job and the job started running fine. However, because this is /etc/crontab, there are other system related cron jobs that have been defined to run under the root account (e.g. "17 * * * * root cd / && run-parts --report /etc/cron.hourly" runs as root, etc.). So these pre-existing system cron jobs, which up until now have been running smoothly, are now generating "can't find command root" errors. But I think that the system cron jobs _are_ successfully being run someplace because logrotate seems to be working.
So what I _think_ is happening is that /etc/crontab is being run twice: once as the system crontab, and once as my sudoed local user's crontab. When I run crontab -l I see nothing, but when I run sudo crontab -l I can see the contents of /etc/crontab. I am reluctant to delete my sudoed local user's crontab, because then in the process I would be deleting the system crontab, and I do not know how I should restore the system crontab's contents. (I am still not sure as to the most appropriate way to edit the system crontab).
How can I get out of this mess? I want /etc/crontab to go back to the way it was before--running _once_ as the system crontab. As for my new cron job, I'm willing to reconfigure it anywhere so long as I am still able to run it as root. Any ideas? (I am using Ubuntu 8.04 Server LTE)
View 2 Replies
View Related
Apr 9, 2011
I have installed an application manager(monitoring application) on my linux server. Now, i need to have backup schedule for my application. The application itself has executive file to backup database.But when i put this file in my crontab to schedule the backup program it wont run!50 09 * * * root /opt/ME/AppManager9/bin/BackupMysqlDB.sh
View 1 Replies
View Related
Dec 28, 2010
I have this Maxtor USB external HDD which I mount via dolphin-hal when needed. This HDD has a built in feature to 'sleep' if not used for some time, say 20 min. Now I don't want it to sleep because it irritates me to wait everytime for it to be active for use, so I figured crontab job should fulfill my requirement.
*Edit: I think a script needs to be executed every 15 minutes. The script has to do the following(I think):
Check to see if HDD is conected via USB:
If YES then - Do the below things
If NO - Do nothing
"Below Things":
Check if the ext4 fs is mounted on media/Maxtor-C; if yes then check if any file operation is being performed; if yes-do nothing, if no then write and remove an empty file. if hdd is connected but not mounted then hdparm -z /dev/sdxx (read partitions)
View 7 Replies
View Related
May 29, 2011
What is the difference between the crontab located in /etc/crontab and the crontab that can be edited using crontab -e?
View 2 Replies
View Related
Oct 28, 2010
I am setting my cron to work. I am in the roo account/ So first I type as vi crontab -e. Then it ask me type "visual" for normal mode and do that then I type the following as below 1 * * * * root usr/local/testClient/runClient.sh>/usr/local/testClient/cron1.log and press esc type wq. Then I restart the cron service /etc/init.d/crond stop and /etc/init.d/crond start. Lastly when I type crontab -l it tells me no crontab for root.
View 2 Replies
View Related
Jul 26, 2010
I have a problem using crontab. I have a C file which invokes a linux command. I want to execute the file using crontab. Its like whenever the system boots up and contents gets loads i want to execute this script. The problem is I don't know how to run the script using crontab. For eg if the file is present under /home/user/first.c . In order to execute this script whenever system starts wat wil be my command
View 7 Replies
View Related
Jun 11, 2009
I am practicing on "crontab" and am able to get system status in time but I want to shut my system through crontab.#15 12 11 06 thu init 0
View 1 Replies
View Related
May 6, 2010
I want to get mail from the crontab log file....
How to set log file in crontab and the second and how can i get mail from the crontablog file.
View 1 Replies
View Related
Dec 19, 2009
I am trying to set up an alarm via crontab. I can play music by "/usr/local/bin/mp3blaster /home/burak/Desktop/kemannnnn.mp3" command on terminal. However when I wrote this line in crontab it doesn't play:
04 19 * * * root /usr/local/bin/mp3blaster /home/burak/Desktop/kemannnnn.mp3
View 5 Replies
View Related
Jun 6, 2010
I used crontab to set a file playing at a certain time, this works fine; however I want this to run even if no-one is logged in (but the computer is on). I can't get it to do this
Line is: 30 06 * * * env DISPLAY=:0.0 /usr/bin/totem /home/adunaic/Playlist.pls
Okay I think the problem was with needing a GUI.
Using this instead works, but i only hear the sound when I log in. I think something needs to be doen to start the audio perhaps?
14 17 * * * export DISPLAY=:0.0 && /usr/bin/mpg123 /home/adunaic/alarm.mp3
View 8 Replies
View Related
Mar 31, 2011
I am unable to use crontab as a user on my system.
Code:
The error is: You (user) are not allowed to access to (crontab) because of pam configuration. I did just recently do an update but I am not sure why this is acting up. I also tried it as root and it also failed with a similar message. I had several crons that ran daily and they are not currently working also. I have selinux Disabled and it has been that way for some time.
View 5 Replies
View Related
Aug 14, 2011
I have been using a private computer on my departmental network. I am now in the process of switching to the public system. This is a system of different computers, each of which mounts the same homeserver directories for users. One may login to any of these machines and see the same home directory. The department is running a clone of Red Hat Enterprise Linux called Scientific Linux. It is not a lot different from Fedora Linux.
I copied a crontab entry form my private machine and ran crontab -e on one of these computers. I suppose it will now do what needs doing, but what if I need to change the entry or add other entries. I will have to search around for the one computer on which crontab is running. Is there some global network way to do the same thing, i.e., so that I can edit the crontab entries from any machine in the public network?
View 3 Replies
View Related
Jan 13, 2010
For some reason crontab does not work on my system.
Fedora Core 11
I am running from a Virtual Private Server.
Code:
Code:
View 2 Replies
View Related
Jul 6, 2010
I have a feature that keeps me going back to Mac every night, and I was wondering if there was an equivalent. I have a nice app called alarm clock on Mac that plays music from my library on specified days of the week and times AND can wake the computer from sleep to do so. I was wondering if there was a Linux equivalent, such as crontab, that could do all those things. It's the last barrier to almost full time Linux use.
View 4 Replies
View Related
Feb 5, 2010
I am vijaya, glad to meet you all via this forum and my question is I set a crontab for automatic downloading of files from internet by using wget but when I kept it for execution several process are running for the same at the back ground. My concern is to get only one copy, not many copies of the same file and not abled to find out where it's actually downloading.
View 1 Replies
View Related
Jul 3, 2010
As root, I use crontab to run mirrordir to backup directories. Everything gets copied over properly, but owner information isn't preserved and root is the owner of all the backed up files. I can deal with that, but crontab reports tons and tons of chown/chgrp errors for mirrordir every time I do back ups--which is every day--and the multiple emails to root of thousands of chown/chgrp errors is very annoying. The error is "Operation not permitted," but that doesn't make sense to me because the job runs as root (right?) and clearly the job is permitted to create the backup files, so why would it fail to chown and chgrp?
I've had the exact same setup on another server for years, and crontab has always run mirrordir without error. Any suggestions how to clear the errors on my new server?
View 14 Replies
View Related
Sep 1, 2010
How to use crontab? i need to set crontab to execute a file every 1 minute
View 2 Replies
View Related
Feb 1, 2010
I want to run a crontab job but it isnt working. I am writing in the crontab file with crontab -e Then I am waiting time but it isnt working. code...
View 6 Replies
View Related
Aug 6, 2010
No matter what I try I just cant get cron working for me on my Squeeze setup I can type /usr/bin/soffice and openoffice will fire up no problem but put into a crontab and nothing for instance just to test if crontab is working I have this/5 * * * * /usr/bin/sofficeIn y user crontab but nothing happens I have run as root crontab -u djt crontab And after editing the crontab with crontab -e it says it is installing crontab but it just does nothing Unfortunately I am connected to my works network so unable to receive internal mail from cron so cant find any reason for it not working
View 4 Replies
View Related
Jan 10, 2010
Let me first start by introducing myself. I'm completely new to Linux. I've always argued Windows was better, even if I secretly thought not. Anyways the time has come to make the transition (I'm moving into computer forensics so I need to learn linux )
SO i'm trying to use crontab -e. I've installed gnome scheduler as I'm not comfortable editing in command line yet.
I've setup blackjack to start everyday at 23.30. The command line I've entered is /usr/games/blackjack and this works perfectly fine in command line.
View 2 Replies
View Related
Jan 21, 2010
Edit: commands like Firefox works after I set it to display properly. I still can't get personal scripts to run, though.I can't seem to get crontab to run my commands. I add
Code:
* * * * * /home/username/script
but it doesn't seem to work. The script works itself in the shell
View 1 Replies
View Related
Mar 2, 2010
I want to schedule a Java program to run at a certain time, which will open a GUI progress monitor while it runs, and then terminate when it's done. I can execute it fine from the command line, but I it doesn't seem to work when I schedule it with crontab. In fact, I can't make any gui by scheduling it, not even something like gedit or firefox.
I know it's pretty rare that someone would want to do this, but is there any way to schedule a GUI app?
View 1 Replies
View Related
Jun 16, 2010
I'm having problems trying to restart gdm from crontab and I'm not sure what I'm doing wrong. Basically what I want to do is a 'logout' every morning before I get to work so that by the time I get to my computer I would just have to log back in and have a fresh gnome session.
The command I'm using to restart gdm is:
Code:
/usr/sbin/service gdm restart
If I run this command from a terminal as root it works.
To edit my crontab file I'm doing:
Code:
sudo crontab -u root -e
And adding the following line to it:
Code:
25 08 * * 1-5 /usr/sbin/service gdm restart
My understanding is that this should restart gdm every day of the work week (Mon-Fri) at 08:25. But for some reason this is not happening.
I also checked that my cron deamon is running by:
Code:
~$ service gdm status
gdm start/running, process 27156
View 5 Replies
View Related
Aug 4, 2010
I have a .sh file which i want to run using crontab at a specific time with root privilege.
I put an entry in root's crontab as the following:
sh /home/vivek/ifconfig/college.sh
But, the file do not get executed at a given time.
View 1 Replies
View Related
Aug 19, 2010
Figure out why this /etc/crontab won't run correctly?
Is it possible that it don't run because the cron deamon is not running? code...
View 1 Replies
View Related