Ubuntu :: Crontab - None Of Job Apparently Running

Jun 1, 2011

I have the following set up in my crontab:

Code:
# crontab -l
# m h dom mon dow command
*/5 * * * * /usr/bin/perl /usr/local/bin/perl/managed_arp_data.pl >> /var/log/arpdb.log
*/5 * * * * /usr/bin/perl /usr/local/bin/perl/infoblox_fixed_sync.pl >> /var/log/crossref.log
00 23 * * * /usr/bin/perl /usr/local/bin/perl/infoblox_host_sync.pl >> /var/log/host_sync.log
0 * * * * /usr/bin/perl /usr/local/bin/perl/infoblox_excl_sync.pl >> /var/log/excl_sync.log

None of these jobs is apparently running, however they did run on the 31st (yesterday), but not on the 30th or any other day during the last 10 days that I have logs for. I think I've set cron to run at log level 1, but I don't know where that log goes, I don't see anything like /var/log/cron

So, couple questions:
* If I do something like "sudo -s" to get a root prompt and then do a "crontab -e", which user does that crontab get executed as?
* Where should I look for cron logs?
* Anyone know why a job would run on the 31st, but not any other day?

View 1 Replies


ADVERTISEMENT

General :: Crontab Not Working \ Edited Crontab File Using Crontab -e?

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

Ubuntu :: Crontab Script Not Running / What To Do?

Dec 8, 2010

Code...

I opened "crontab -e" in the Terminal and in nano I copied and pasted the first line of this copied script, leaving all the notated lines out. Each time I manually run changer by clicking and selecting "Run" it changes my Wallpaper but this does not happen automatically no matter how many times I reboot.

View 3 Replies View Related

Ubuntu :: Crontab Script Not Running / Fix This?

Dec 8, 2010

Crontab Script Not Running?

View 4 Replies View Related

Ubuntu Servers :: Crontab Not Running Script?

Jan 27, 2011

Cron seems to be running the script below (According to /var/log/syslog) but I'm not receiving the email it should send. This does work when I invoke it manually. checkraid (-rwxr-xr-x 1 root root)

Code:
#!/bin/bash
echo `/sbin/dmraid -s > /etc/check-raid/check_state`
index=0
while read line; do

[Code]...

View 3 Replies View Related

Fedora :: Running Script Using Crontab?

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

General :: Running Scripts From Crontab

Nov 1, 2010

Im new to linux, using ubuntu 10.04. I have been playing around with crontab and have no problems scheduling a job which runs a script file containing the following command:

However, when I try to do the following in the script file nothing happens..

Similarly the following doesnt do anything either:

Is there something im missing?

View 5 Replies View Related

General :: Crontab Not Running Php Script?

Apr 18, 2011

I have a crontab that is supposed to run 2 PHP scripts but they never run.

30 */3 * * * php /var/www/html/mkimages.php
0 */3 * * * php /var/www/html/import_historic_data.php

Both of these files are owned by root, is it a permissions thing? How can I get get cron to run the files?

View 13 Replies View Related

General :: Crontab Not Running Script?

May 17, 2010

I put below line in a sh file

#!/bin/bash
HOSTS=172.16.14.1
COUNT=4

[code]...

View 5 Replies View Related

General :: Crontab Is Not Running Script

Dec 20, 2010

I'm trying to get myself familiar with bash scripting.I created a script to delete all files and folders in a specific directory, and made an entry in crontab.Crontab will not run the script, but I can run it manually.

View 2 Replies View Related

General :: Perl Jobs Are Not Running From Crontab?

Nov 30, 2010

I am having a shell script which runs perl jobs.The script is starting the perl jobs when it is executed manually from the command line , but when the same script runs from crontab it is not starting the perl jobs.I have these things in the begining of the script

. /etc/profile
export MDX_HOME=/home/entsms
source $MDX_HOME/.bash_profile

[code]....

View 1 Replies View Related

Software :: Crontab Entries Running On Even And Odd Weeks

Sep 24, 2010

I'm using crontab to start and stop music playback (its like start and end of a brake in school). The problem is that some of the entries should be run on even weeks and some on odd.
exp:

This should be played on even weeks
00 08 * * * audacious -p
10 08 * * * audacious -u
and this on odd
05 08 * * * audacious -p
15 08 * * * audacious -u

There are about 20 entries for even and 20 for odd. I found here on the forum that maybe this should work but for it is not working for me
00 08 * * * [[ $(expr `date +\%W` \% 2) = 0 ]] && audacious -p
If I put it like that its not working at all

View 7 Replies View Related

General :: Crontab Syntax - Running Script Once Every Five Minutes

Jan 25, 2010

I am planning on running a script once every five minutes, and the syntax that comes to mind in doing this is the following:

Code:
5 10 15 20 25 30 35 40 45 50 55 * * * * /apps/<script>.pl
Is there a better syntax to use to accomplish this task, or is the above example the way to go?

View 2 Replies View Related

General :: Restart The Crontab, If Change The Script Which Was Running?

Aug 24, 2010

that If I am fire a crontab which is running myScriptThe crontab is runningNow if I change the source code of myScriptDo I need to restart the crontab, to take into effect mychanges Ie I want in the existing crontab to take my updated script

View 2 Replies View Related

Software :: Script Not Running Via Crontab, Run's Fine Manually?

Feb 8, 2010

Yes I have tried exporting my paths and variables aab still will not run my script. 'm sure I am doing something wrong.I have a shell script which runs a jar file. This is not working correctly. After reading around I have read this is commonly due to incorrect paths due to cron running via it's own shell instance and therefore does not have the same preferences setup as my profile does.here is what my script looks like today after several modifications:

Code:
#!/bin/bash --
. /root/.bash_profile

[code]...

View 10 Replies View Related

SUSE / Novell :: Shell Script Not Running From Crontab?

Jan 11, 2010

I have a shell script which is configured for the user. The main task of the shell script is to email certain user with a particular result.

The shell script runs perfectly when run from a Konsole terminal and configured through a crontab generates empty entries.

Below is my crontab for my user.

Code:
# DO NOT EDIT THIS FILE - edit the master and reinstall.
# (/tmp/crontab.XXXXSyNyp1 installed on Wed Jan 6 09:14:14 2010)
# (Cron version V5.0 -- $Id: crontab.c,v 1.12 2004/01/23 18:56:42 vixie Exp $)
#!/bin/bash

[Code].....

View 3 Replies View Related

General :: Possible Disabling Crontab Job Without Deleting Crontab Description Entry

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

Ubuntu Servers :: After Using Crontab With /etc/crontab / Giving Error "can't Find Command Root"?

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

Software :: Scheduling Backup In Crontab When Put This File In Crontab To Schedule The Backup Program It Wont Run?

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

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 View Related

Ubuntu :: Custom.conf Apparently Don't Work

May 3, 2010

I have just installed the new version 10.04 of xubuntu but I cannot enable xdmcp.

1) the gdm.conf (usualy in /etc/gdm/) is missing (where is now this file?);
2) the custom.conf apparently don't work;
3) the remote tab in login windows are missing

View 9 Replies View Related

Ubuntu :: URL Bar/Location Bar - Apparently Chooses The Biggest Width

Feb 28, 2010

I merged my toolbars into one toolbar. This results in having my bookmarks toolbar next to my URL bar.

The problems is that the URL bar apparently chooses the biggest width available with priority over the bookmarks bar, being merged into simply an arrow, which I have to click in order to see my bookmarks.

I would like to give my URL bar a fixed width so that I can see my bookmarks toolbar or to leave the URL bar with a flexible width as long as it doesnt have priority over the bookmarks bar.

View 1 Replies View Related

Ubuntu :: Computer Janitor Broke Synaptic Apparently?

Jul 15, 2010

I just ran Computer Janitor on my computer and I think it broke Synaptic. The program was cleaning up some files, but then it froze halfway through and I had to force it to quit. Since then, I can't open Synaptic package manager, the Ubuntu Software Center, nor Computer Janitor itself. When I do they either freeze and I have to force them to quite or they just don't show up on the screen, but they're stuck running in the background because System Monitor reports the processor is running at 100% and so I have to go in manually and kill the bad processes running in the background. Restarting doesn't change anything.Running Lucid Lynx on a HP dc7100, P4 3.2 Ghz, 2gb RAM.

View 2 Replies View Related

Ubuntu Multimedia :: My Sound (apparently) Randomly Mutes?

Jul 22, 2010

I'm using Ubuntu 10.04 up-to-date in my laptop HP Pavilion dv4-1290br.My sound seems to randomly get muted, after a few hours the laptop is on. I've checked the volumes, I've compiled and installed the very latest ALSA driver, tested it trying to play music and changing the volume in hardware and software. Nothing works. The sound simply gets muted until I reboot.

View 1 Replies View Related

Ubuntu Installation :: Java JRE 6.0 And Firefox 3.6 Apparently Incompatible?

Aug 28, 2010

I installed Ubuntu 5 days ago....looked great....seemed to offer everything I want. Then I clicked on the firefox icon and it brought up Google ...Great!....Then I said ..this is easy..I'll have a look at my share-trading dynamic platform. Searched for Commsec and clicked 'launch Webiress'...and then it hiccupped! I got a message saying I needed Java "Now downloading".....Okay I've had this happen in windows...no problemo.. Then I tried to follow the instructions contained on the download page from Java....thats what started my five days (30 hours now and counting) of misery.

Finally on one of the hundreds of Ubuntu pages I've read I found that there is a bug in java....that prevents it from working with the Firefox that Ubuntu provides. So I cleverly removed firefox ....and went to Mozilla and downloaded a new version 3.6 of Firefox.....followed the instructions at Sourceforge.net (and other places I can't remember). Now I have Firefox in a folder in 'Documents' with libjavaplugin_oji.so linked to ///java/jre.6.0_21/plugin/i386/ns7... But when I try to fire up Webiress I still get the messsage "Java not installed ...now downloading".

View 9 Replies View Related

Ubuntu :: Evolution (apparently) Timing Out With Exchange Server?

Oct 6, 2010

I'm experiencing an occasional frustration using Evolution with my work email which is on an MS Exchange 2003 server.Everything usually works well enough, but from time to time I'll try to retrieve a message,Is there a setting I've missed in Evolution that might take care of this, or some other workaround?Let me re-emphasize that the server is a 2003 Exchange server (and a source of endless frustration for a non-windows user). It's not a 2007 or 2010 Exchange server, which is what most companies use these days.

View 2 Replies View Related

Networking :: Getaddrinfo() Apparently Not Working ?

Jan 18, 2010

I have an issue with cfservd, from the cfengine package not listening on both ipv4 and ipv6. Tracing through the source indicated that the issue was with the getaddrinfo() call. I have used the example code on the man page and can confirm that it doesn't work as expected on either Fedora 12, Fedora 10 or CentOS 5.3

The servers I am testing on have both ipv4 and ipv6 enabled and working. i.e. I can ssh to them using either -4 or -6 and netstat -a shows 0.0.0.0:22 and :::22

Running the example code on the Fedora servers results in only a single IPv4 address structure being returned by the getaddrinfo call and hence only listening on the one protocol. Strangely, on the CentOS server only the IPv6 address structure is returned.

I need both IPv4 and IPv6 for cfengine but am at a complete loss as to how to get it to work when the issue appears to be something fundamentally wrong at the OS level.

View 1 Replies View Related

Fedora :: Install The 32 Bit Version And Apparently Succeeded?

Jul 13, 2010

I have done some searching around and now know that the 64 bit version of Wine is useless. I tried to install the 32 bit version and apparently succeeded. The problem is that when I open Wine File the .wine-x86_64 folder reappears. I don't even know where the 32 bit folder is.

I have tried
Code:
yum erase *wine*
but it does not seem to work. However this does.

[Code]...

View 3 Replies View Related

Hardware :: Dvd/cdrom Keeps Spooling Up When Polled (apparently)

May 7, 2011

I'm using Slackware 13.1 on a new laptop (MSI 1481). Everything has worked great except when I put a DVD in the drive (like the Slackware DVD) the drive spools up and down constantly - you know, how it goes from slow speed to fast speed. I figured it was hal polling it every 2 seconds and that for some reason it was causing it to actually kick in and read the DVD, but disabling that didn't help. I've also tried not starting X or xfce (going to runlevel 3) but that didn't make any difference - as soon as I put the dvd in, it starts up.

It's not just the Slackware dvd either, it's any DVD. Movie DVDs however don't seem to spool up to higher speeds but you can still hear the drive running constantly, so there is some different. I'm not mounting the drive or anything, just close the tray and listen to the rhythmic annoyance of the drive at full speed, then not, then full speed, then not.

I don't see any other suspect processes with top or ps either. Anyone have any idea why this would be if it's not the polling doing it? I'm starting to think a kernel or hardware thing. The drive I have is reported by cdrecord -scanbus as "Optiarc DVD RW AD-7580S FX20".

I'm at a loss. I'm thinking next I'll have to install another distro to at least rule that out, but with so many variables (packages installed, kernel version, driver versions) I don't know that this approach would tell me much.

View 2 Replies View Related

Server :: 8-bit-mime Apparently Not Being Advertised By SMTP?

Jan 5, 2010

I have a user that is reporting the following error on a bounced message:

Quote:

smtp;554 5.6.1 Body type not supported by Remote Host

He is forwarding emails from his exchange server to a recipient in Germany relaying through our smtp server using Surgemail as the MTA.

He called a senior tech specialist at Microsoft to get help thinking the problem was on his end (exchange server). According to this "specialist", he said the problem was that our smtp server was not advertising 8BitMIME in its 250 statement. I tested this myself by log in on to the smtp server and doing typing the following:

Code:
EHLO localhost
250-smtp.<mycompanyname>.com. Hello localhost (127.0.0.1)
250-AUTH PLAIN LOGIN
250-DSN

[Code]....

As you can see, 250-8BITMIME is not listed here. From the bit of research I made, I found that most MTAs send this by default. Is it possible that the characters from the German language are causing this problem?

NOTE: This problem did not exist or was never reported until now. No one has made any changes on any settings on the server.

View 2 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved