Fedora :: Configuring Cron Job
Apr 21, 2010I create a shell file with different commands . I am able to execute it manually . Now I want to schedule this file hourly . For this where I place this file and where I configure for time .
View 6 RepliesI create a shell file with different commands . I am able to execute it manually . Now I want to schedule this file hourly . For this where I place this file and where I configure for time .
View 6 RepliesI have added some executable scripts to /etc/cron.daily but don't get the stdout/stderr output from them as mail (or anywhere else I have found). At least one of them is running (because I can see that it has added a file to the disk).
The peculiar thing is that I do get the output from /etc/cron.daily/0logwatch (part of the logwatch package) as an email each day.
The MAILTO line in /etc/crontab is "MAILTO=root" (unchanged from default). Same for /etc/anacrontab.
I do have an alias at the end of /etc/aliases which redirects root's mail to my own account, but this alias works fine for mail I send manually. (It also appears to work fine for the output from the file /etc/cron.daily/0logwatch.)
Can anyone tell me how i change the default domain name for cron?everything i cron runs it emails from and to user@com.com
this leaves me with a massive list of failed mails in postfix.i have mailto on my main crontab but i cant do it on all of them.
It seems that cron is not upgrading my Ubuntu 8.04 LTS Server, no GUI installed. I changed /etc/crontab and watched apt running:
Code:
ps -A | grep apt
showed it for a long time,
Code:
sudo tcpdump tcp
showed communication with canonical sites,
but:
Code:
top
did not show any apt using CPU
[code].....
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.
View 2 Replies View RelatedI have set up a cron in /var/spool/cron/root
*/15 * * * * /usr/bin/phplist.sh
I can see in /var/log/cron that it is running every 15 minutes but it has no effect. It is not doing the commands in the bash script.
If I run /usr/bin/phplist.sh right in the shell it works great.
Is my vixie-cron broken? i have "0-59 * * * * root /usr/sbin/logrotate /etc/logrotate.conf" but it is not running in /etc/cron.d.
Code:
I can't seem to get a cron job to work on my Fedora 11 box. When I check the logs, cron is actually working. In my /etc/crontab I have an entry to run the cron job on my Moodle installation:
30 * * * * wget -q -O /dev/null http://moodle.name.name/moodle/admin/cron.php
when I run crontab -l it is not showing me anything, I am confused
I'm playing with CRON to perform an automated shutdown. While I'm testing I want CRON to shutdown the PC every 10 min. Here is the crontab.
# crontab -l
0,10,20,30,40,50 * * * * root /sbin/shutdown -h now
I see the command being run in the CRON log, but the PC doesn't shutdown.
Feb 11 11:06:17 localhost crontab[4808]: (root) LIST (root)
Feb 11 11:07:31 localhost crontab[4813]: (root) BEGIN EDIT (root)
Feb 11 11:07:58 localhost crontab[4813]: (root) END EDIT (root)
Feb 11 11:10:01 localhost CROND[4821]: (root) CMD (root /sbin/shutdown -h now)
How would I debug this to figure why my shutdown command is being ignored?
I would like to schedule a cron job to run on every first saturday of the month, so far all documentation that I have looked at, mentions only a weekly cron or a monthly cron based on the date. Is it possible to run a monthly cron based on the day of the week?
View 1 Replies View RelatedHow to schedule a job using cron that shouldn't run between working hrs 9am-5pm, while run in non working hrs every hour, every day of the month, month & week. I tried the following way, not sure I can use logical not operator(!).
crontab -e
0 !9-17 * * * /path/to/script/file
I guess other way is
0 17-8 * * * /path/to/script/file
i have couple of question first when i m running my php script file named myindex.php and while its running in browser i add this code in putty to see if it shows my php script is running or not but i see nothing ps aux |grep myindex.php | grep -v grep
why i cant se if myindex.php is running or not with above command.
second how can i add a cron job to my php script, i know only through kloxo or cpanel.
I have installed fedora-ds-1.0.4-1.FC6.x86_64.opt.rpm on RHEL 5 Enterprise, which I use for Oracle BIEE. Now I need to install the FDS in another RHEL 5 and mirror only the FDS.
configure the mirroring part for the Fedora Directory Server.
where to customize the modules thing? I've always used Ubuntu and there was an asoundconf file where I could change these settings.Haven't been able to find the same sort of thing on Fedora. A lot of people say I should either edit the /etc/modprobe.conf file which is now deprecated and does not exist on my computer, or edit some alsa file under /etc/modprobe.d/ which i don't have either.I've installed all of the alsa packages through yum.
View 1 Replies View RelatedI am using Fedora 14 x86_64 (KDE 4.5.5) OS on my home desktop. I tried installing KVM (default virtual machine available in the anaconda installer). I find the performance of virtual machine too slow. For instance - installation of windows XP 32 bit took around 4 hours to complete and booting windows xp takes somewhere around 3 minutes. PCBSD installation took around 14 hours and booting PCBSD is taking around 5 minutes. The base operating system i.e.Fedora is blazingly fast. After spending some time in google search , I found few posts saying such sluggishness could be due to not enabling virtualization option in BIOS. I searched my BIOS menu, my level best, but could not find any such option available.I use intel E7400 core 2 duo processor with 4 GB DDR2 RAM. I use nvidia GEForce 7100/nForce 630i/PCI mother board and graphics card. I have installed nvidia proprietary video drivers from rpmfusion. Following is the output from hardware lister (lshw) for the CPU -
CPU
/0/4
product: Intel(R) Core(TM)2 CPU E7400 @ 2.80GHz
vendor: Intel Corp.
[code].....
I also tried visiting the BIOS manufacturers website, and found that there are no firmware upgrades available. So I wanted to know is there any way I can speed up my virtualisation or should try some other solution like virtualbox etc.
I was trying to configure squid 3.1 on fedora linux 13. It's working perfectly fine from the local host but unable to browse from local network even after configuring acl for local network.
Connectivity diagram is given below
Local Network (windowsXP clients) --> Squid Server --> Firewall--> Internet
(192.168.102.0/24) (192.168.102.25)
Linux server has only one network card which is configured with internal IP. Configured client browser with proxy address (192.168.102.24 and port 312.
I have managed to install java, flash and acrobat plugins but haven't been able to make Firefox play wmv, wmp files. I am following instructions from myguides.net website and when I search for test player on google at the webpage PluginDoc: Windows Media Player Plugin Test Player (XP/Vista) and it doesn't work.
View 1 Replies View RelatedIn configuring nfs automount. following must be in consideration. command and tools for NFS automount?changes in configuration file.
View 3 Replies View RelatedJust installed Fedora 11. Like to setup cron job to update everthing on a regular basis. any examples?.
View 4 Replies View RelatedI wish to run a cron job every half hour, where exactly do I put the job? The reason I am asking is that I am used to entering jobs into crontab, I am not used to using fedora and its cron layout.
View 2 Replies View RelatedJust read through some cron manuals. (man -k cron).Didnt understood that much though.I'm a gamer and loosing control over time at nights.
So what i want is that my computer shuts down itself at latest 1:30 am. Do i need to set up the command for each day (monday, tuesday.. and so on) or is there an option simliar to my 'example' below?
€dit: Both examples should do the trick.
Code:
# m h dom mon dow command
30 1 * * 1,2,3,4,5 shutdown -h +5 Get some sleep dude!
30 1 * * 1-5 shutdown -h +5 Get some sleep dude!
Where as 1 to 5 would be all weekdays, but not saturday or sunday morning at 1:30am.If i can shorten it to 1 line instead of 7 lines (one per day of week) that would be great.
I have a Fedora 11 box and I am confused about cron, where exactly do I enter the cron jobs? For example, I have a job that needs to run every half hour.
View 8 Replies View RelatedIn my windows machine I have some txt files. I want run a script or command daily to get those file to my linux box using cron job.
Windows (192.168.1.5)
d:
ecords est.txt
to
Linux (192.168.1.
/data
I want to run that script in my linux box every day at 10.30 AM using cron job to get those files from windows to linux.
I found (Red Hat Fedora Core 6 Server) a CRON entry for "backupmng" that has repeats at 1,16,31 and 46 minutes every hour of every day, 24/7.It is located at:/usr/local/psa/admin/sbin/backupmng >/dev/null 2>&1.
View 1 Replies View RelatedIn windows i set up ip address , subnet mask , default gateway , Preferred DNS server and alternate DNS server , how do i do that in linux and where.. I have fedora 7 secondary OS that i sue for work...
View 3 Replies View RelatedI am trying to install Homebank, a money manager. No problems untarring it. But I'm stuck on ./configure. When I run that command, I get this output:
Quote:
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
/home/Tom/Downloads/homebank-4.3/missing: Unknown `--run' option
[code]....
I'm guessing it's a simple matter of installing gtk and glib, but I just want to double check before I go any further.
Have recently entered the world of fedora.
I wanted to add my user in the sudoers group but when I give:
Tells me that I am not authorized.
I also tried to put before asking for the sudo password and then tells me that I am not part of the sudoers group ....
I have to go through an ERP projects. "README" file to setup the software gives following instruction which I have attached with this thread.So, according to first step I copied the entire "dolibarr-2.6.1" folder in "/usr/local/apache2". But whenever I call the browser with address given in "README" file my browser gives the following error message : Code: Firefox can't establish a connection to the server at localhost.Please let me know how can I configure the Web Server so that I can use the software.
View 1 Replies View RelatedI have Redhat 5.5 and want to configure my TP-LINK TL-WN321G 54Mbps USB Wireless Lan card with it. when i plugged my TP-LINK TL-WN321G 54Mbps USB Wireless Lan card into my system my /sbin/lspci is
Where i should start configuring with? when i plugges this in my windows machine. it works fine
I have a Apache web server and a separate tomcat 5 server. I can run the jsp-exaples just fine using HTTP. However using HTTPS fails. For some reason it appears HTTPS is not forwarding to the connector, I get 404 not found, returned.If I simply try https://apache_server_ip I successfully connect to the default Apache page.According to this page it should just work. Apache should do the ssl encryption/decryption and tomcat operate as normal.
View 1 Replies View Related