I'm trying to add several cron jobs. I have a folder (/etc/cron.myapp) with several subfolders in it (30minute, 3minute, daily, hourly). Each of these folders contains a script.Runnng/usr/bin/run-parts /etc/cron.myapp/3minute/will execute the contents of that folder.I have tried adding the following entries to /etc/crontab with no luck, and nothing is showing up in /var/log/cron
I put in my cron entries to run my backup script which rsyncs my data to my 2nd drive, however on a hunch I checked my backup drive which mounts automatically via fstab and I realize it had not ran in a while. I checked cron and there were no entries for it. I got to wondering if I should ever be worried about a cron update coming down and over-writing my existing cron file with the backup entries in it to run.
I am adding the following scripts to cron via crontab -e (as user)
Quote:
The first one is to record tv. I've added dev/null 2>&1 at the end. No too clear why but without it, it records only a few seconds.
The second script is (as you should already noticed) to turn off my computer at 6:25 am. It doesn't work (with or without dev/null 2>&1). I am surely forgetting something important. Could you please tell me what is it?
so sorry about this seemingly silly cron question. I know a lot are asked, and are usually just environment related.Anyway, I wrote a very simple PHP script to mount my external drive to a specific location as soon as it's switched on.The script works great when run.What's strange, is that it runs in cron and generates a log file, but for someone reason doesn't mount the drive when cron runs itI added in the full path to EVERYTHING in the script, and I'm calling it with the full path from crontab, but it doesn't mount my drive when run from cron.I've tried running the individual commands on the cmd, and it all works.
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. The contents of my crontab is:
I'm setting up a logging script to track utilization on our deployed systems. I'm running it every minute using cron. Each time it runs, I get an entry in /var/log/messages telling me it ran. That is a lot of useless information. Is there a way to prevent the creation of these log entries?
I have installed Centos 5 for Oracle on my PC. I observe that everytime I have to execute .bash_profile. Otherwise I get command not found message.How to change this behaviour so that it executes automatically everytime I open a new terminal or a tab.The bash_profile is as follows. I notice that the same entry is in another Centos 5 installation in another PC, But I don't have to executeeverytime the bash_profile .
# .bash_profile # Get the aliases and functions if [ -f ~/.bashrc ]; then
I have a php script that i made to check if the internet is working and if not, it should execute a command that starts a service on my server (service jistarter start), and i want to run it every 3 minutes, so i added it to the crontab, this is how it looks:
The problem is that cron isn't executing it or something.. i don't know but the service it was intended to start, doesn't start.
The thing is that the script runs fine when i run it myself, in all the 3 methods it woks fine: "/usr/bin/php /srv/checkping.php" or "php /srv/checkping.php" or "/srv/checkping,php" (it has chmod 755):
I have a CentOS system totally devoted to a 500GB disk. I have an additional disk mounted via an external device that will not execute scripts that are located on that device.
Current hardware configuration: Quote: t [root@localhost ~]# fdisk -l Disk /dev/sda: 500.1 GB, 500107862016 bytes 255 heads, 63 sectors/track, 60801 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System /dev/sda1 * 1 13 104391 83 Linux /dev/sda2 14 60801 488279610 8e Linux LVM
Disk /dev/sdd: 500.1 GB, 500107862016 bytes 255 heads, 63 sectors/track, 60801 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System /dev/sdd1 * 1 42261 339457466+ 83 Linux /dev/sdd2 42261 60801 148925985+ 5 Extended /dev/sdd5 59372 60801 11486443+ 82 Linux swap / Solaris /dev/sdd6 42261 58671 131814400 83 Linux /dev/sdd7 58671 59371 5623808 82 Linux swap / Solaris
Partition table entries are not in disk order [root@localhost ~]# uname -a Linux localhost 2.6.18-194.3.1.el5 #1 SMP Thu May 13 13:08:30 EDT 2010 x86_64 x86_64 x86_64 GNU/Linux [root@localhost ~]#
simple installs of CentOS5.2 i386 on 2x Dell C640's and x86-64 on a Dell dimension 9150 resulted in the System/Administration menu offering two entries each with the name 'hardware' and the icon showing a little chip hovering over a PC. I did "add this launcher to panel" on both as an easy way of checking their properties:
The higher entry issues the command 'hwbrowser' The lower entry issues the command 'hal-device-manager'
Both have the comment "view information on the hardware on this computer". I feel the hal-device-manager entry has the wrong name, comment, and icon. I think /etc/xdg/menus/system-settings.menu is relevant.
I have created a conjob via ssh by going to crontab -e and adding my scripts like 05 10 * * * /scripts/old-files-delete.sh.The file has 755 permissions and if I run the script manualy it works fine. I have checked the cron log and it does not show up as running at all.
I want to create some scheduled jobs in a CentOS server. These jobs are simple and repeatable, but the scheduling is complicated. I want a series of jobs to start every day but Monday, and not on the last day of the month. These jobs depend on software execution outside the server ( a Windows application) so if the Windows app fails, I need to temporarily suspend the cron jobs so I can straighten out the Windows server.
I've looked over some cron alternatives and nothing seems suitable. Am I stuck with cron and the limitations of crontab, or are there some programmatic things I can do in cron that I don't know about?
I was running CentOs 5.3 and did a "yum upgrade" and got the following problem: Transaction Check Error: file /usr/share/man/man1/xdelta.1.gz from install of xdelta-1.1.4-1.el5.rf.x86_64 conflicts with file from package xdelta-1.1.3-20.i386
[code]....
It seems that somehow multiple entries were made for the xdelta package - how do I clean this up?
When i am trying to access the any directory other on port *80, its not being accessible from the static ip which is routed through a DMZ server. http://122.165.35.9:8085 something like this returns the error "could not connect to web browser"
I am using cent os 5. I My server daily shutdown at 7:00 PM.I want to see the log file of my cron activity what the process is successfully started or not
I am working on Red Hat Linux since last six months and learning it steps by steps. like configurating ftp server,NSF ,DNS and then email server. I want to learn squid server but technically before going into it what you suggest me that may I first learn to configure Linux as a router,Firewall machine or do IP masquerading on a server. Because all these things are directly or indirectly involve in squid.So guide me because going to start squid i may understand Linux IP table ,how to add entries in it,how to delete entries ,I think you understand my point which i want to ask for guidence.
I have an script called conection located in /etc/ppp ( /etc/ppp/conection)The content of the scrips is:
pppd call isp Running it by hand, it dials out to my ISP and fetch all my email from different accounts and turn-off the link. It works great. I decided to automate the process using the cron.
The problem is when cron execute it at the specified time, nothing happens. It doesn't even dials out. I checked /var/log/cron and cron says It was executed. But it doesn't. I try again running the script by hand and works fine.
My focus is on the three WGET commands. The problem is the first one works fine, runs at 4:20 p.m., but the other two never run! If I visit [URL] it works fine but cron never runs it.
I made a big rookie mistake in a script in cron.daily, which emptied the directory when I tested it... now I'm left with an empty cron.daily directory, and from what I know there definitely were more scripts there than only my own. Does anybody know what scripts CentOS 5.4 (Final) needs in the cron.daily?
Within a VMWare ESX virtual machine, I am running CentOS 5.2. (Actually, it is kind of a virtual appliance to run CollabNet's Teamforge - which I have installed for a trial). I've been dabling with Linux for a year or so, but I know I have much to learn.
I'm attempting to run a cron job that runs a backup script at 11pm. It works great, but unfortunately it runs at 11:30 am.
I created the cron job using 'crontab -e', while logged in as root. My cron job line is : 0 23 * * 1,2,3,4,5 /etc/tjt_backup/collabnet_backup.sh
If I type 'date', I get the correct date/time in my timezone: Tue Mar 9 16:27:12 CST 2010
If I type 'clock', I also get the correct date/time: Tue 09 Mar 2010 04:26:57 PM CST -0.463330 seconds
I recently install CentOS 5.5 on my small server. Unfortunately, I have problems with my mail configuration. I don't know anything about sendmail and dns configuration so I am just looking for something easy to set up. I use cron to perform automatic task. I set up the variable $MAILTO in cron to my regular mail. Cron send the mail but it is stuck in the queue.
I have script which does file locking via flock and then writing it's pid into that file. It perfectly works being run by hand in terminal, running under cron on Debian, but somehow fails being run under cron on Centos 5.6. Script part and straced outputs are below.