Ubuntu Servers :: Crontab "randomly" Doesn't Execute

Aug 23, 2010

I am running ubuntu 10.04 as a web/file server. I have set up several cron jobs in the past which until recently were executing normally. However, a few days ago, cron jobs stopped executing after a restart. I was able to fix the problem by deleting and reentering the cron jobs, but only until the next restart. ps -ef lists cron.

Summary:
1.) Cron was working --jobs executed without error and restarts worked fine
2.) Cron jobs stopped executing after a restart about a week ago --ps -e still lists cron
3.) Removing all cron jobs and reentering them by copying and pasting fixes until next restart
4.) Cron job syntax is known to be correct since they were executing before this problem arose.

View 5 Replies


ADVERTISEMENT

General :: Crontab Path When Execute Job

Apr 1, 2010

I have and entry in a crontab for my user (appadmin) that when it executes it does not start with the proper path. It needs to start as the appadmin user as appadmin owns all the directories for glassfish. However, once glassfish restarts, the hudson application cannot find the default JDK. I get an error. If I initiate the restart via command line, all works as it should. I believe it has something to do with PATH in the crontab but am not sure what I need to set the PATH to in crontab.

View 1 Replies View Related

General :: Get Crontab To Execute Process Every 10 Minutes?

Jan 31, 2011

I am trying to get a process ( SARG access log report tool ) to run every 10 minutes but I cannot get it to work.
Here is the content of the crontab file
______________________________
SHELL=/bin/sh
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
# m h dom mon dow user command

[code]....

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

General :: Script Don't Execute Itself Using Crontab Although It Works Manually?

May 26, 2010

One of my script don't execute itself using crontab although it works manually.

=> /var/log/cron
/var/log/cron show these 2 lignes at sheduled time
May 26 09:59:01 COMPUTER crond[26439]: (root) CMD (/usr/local/bin/script)

[code]....

View 6 Replies View Related

Debian Configuration :: When Root Crontab Is Edited The Execute Flag Is Removed?

Mar 3, 2011

I have been having trouble setting up a daily backup script with cron. It would basically never worked. Searched the net for answers but didn't find anything. I finally figured it out !! When root crontab is edited the execute flag is removed from #/var/spool/cron/crontabs/root. I change it with #chmod a+x /var/spool/cron/crontabs/root and all is good.

View 5 Replies View Related

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

General :: Crontab Either No Error Doesn't Run

Feb 16, 2010

Either no error and it doesn't run (The scripts all run fine manually and in the cron.daily, cron.hourly, etc. directories.) If it does try to run it, it shows this: Feb 16 12:59:01 buddha crond[3638]: (*system*) BAD FILE MODE (/etc/crontab). Here's my crontab:

[code]...

View 11 Replies View Related

CentOS 5 :: Crontab - Doesn't Run Script

Mar 25, 2010

i'm using a script to delete files in a specific folder which are older then x days. The script looks like this:

#!/bin/bash
find /usr/share/directory -mtime +6 -print0 | xargs -0 rm
find /usr/share/another_directory/ -mtime +6 -print0 | xargs -0 rm

View 7 Replies View Related

General :: RHEL6 Crontab Doesn't Work Properly?

Apr 26, 2011

In RHEL6 root's account I have crontab job: 30 6 18 4 1 /sbin/init 6 It worked fine on the 18th of April and properly restarted my system, BUT it also restarted my OS at 6:30 on next Monday - 25th of April.

View 2 Replies View Related

Ubuntu Servers :: How To Start Xampp From Crontab

Apr 5, 2010

i want to Xampp run and start all time when i start pc. i don know correct command for use crontab when i want to use it i must delete ># m h dom mon dow commandor not ?

View 2 Replies View Related

Ubuntu Servers :: Crontab Omission Of One Every Month?

May 25, 2010

I set a backup copy of your home computer. I have a problem. A copy of the full exercise once a month

Code:

15 22 1 * * / root / scripts / bcsys.sh full

incremental and would like to do on a daily basis since 22, but aside 1 day each month when it comes to full

Code:

00 22 * * * / root / scripts / bcsys.sh incremental

How can this be set and whether there is a possibility?

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

Ubuntu Servers :: Make A Crontab To Email Log Files?

Jul 28, 2010

I would like to make a crontab task to email a log file to me every night.

How would i do this? I know how to make crontab jobs (and sett the time on them), i just dont know the command i would write for this particular job.

View 1 Replies View Related

Ubuntu Multimedia :: CD / DVD Drive Doesn't Work Randomly

Jul 20, 2011

i'm new to ubuntu, i've only had it for about a month and i've had no problem putting audio or blank cds in, and suddenly, the icon stopped showing up and banshee music player wont show that there is a cd inserted. and i've looked around every where for a way to solve this to no luck so thats why i'm asking now.

View 1 Replies View Related

Ubuntu Servers :: Crontab Or Other (script) To Automatically Replace File?

May 18, 2011

I have been searching for a few hours now trying to figure out the best way to have Ubuntu Server 8.10 copy and replace a file every week.

So for example:

File A (original file)
File B (replacement file)

I would want to copy File B from its location and replace File A each week automatically with out removing or destroying File B.

I've thought of doing a cron since I already have a job set for email piping. but I'm unsure of the best way to complete this task.

View 5 Replies View Related

Ubuntu :: Firefox Crashes Randomly Doesn't Appear To Be Connetcted To Flash?

Feb 11, 2011

I'm running ubuntu 10.10 and firefox crashes randomly. I t doesn't appear to be connetcted to flash or anything in particular. I attached a screenshot of the crash report abd here is what it said when I clicked the details button:

Add-ons: langpack-en-AU@firefox-3.6.ubuntu.co... pushnote.com:0.6.18,{972ce4c6-7e08-4474-a285-3208198ce6fd}:3.6.13
BuildID: 20101206121845

[code]...

View 2 Replies View Related

Ubuntu Servers :: CronTab Not Executing Script Works Fine Manually?

May 9, 2011

I have written a simple backup script, and added it to CronTab, but it doesnt execute at all. Here is my script: [URL]...And my CronTab entry: 0 */2 * * * root /home/server/Scripts/backup.sh

View 6 Replies View Related

Ubuntu Servers :: Setting Crontab Not Send Mail Notification To Owner?

Jul 2, 2011

How to set crontab not send mail notification to the owner script if the script success running? because I'm monitoring mail server, and notification from cron is not necessary for me. I'm using ubuntu 10.04 server

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

Server :: PHP Doesn't Execute The Modules

Jul 12, 2009

I'm under CentOS 5.2 with PHP 5.2.10 I compiled PHP from Source with ./configure --with-config-file-scan-dir=/etc/php.d but PHP doesn't start modules A PHPInfo says:

Scan this dir for additional .ini files (none)
additional .ini files parsed (none)

routes are correctly setted and the user have permissions for read the directory, just to be sure i changed the CHMOD to 777 but nothing.

View 1 Replies View Related

Ubuntu Servers :: Server Restarts Randomly?

Jul 2, 2011

I`m using Ubuntu Server 10.10. The system randomly restarts each day.Here are the logs: http://paste2.org/p/1499309Everything seems normal except that UDP: short packet thingy but even Google didn`t help me to find what`s thatBy the way, I think reboots started after I configured this PC as a gateway between internet and my local network

View 2 Replies View Related

Fedora Servers :: Crontab Backup Job Works / But Gives Chown / Chgrp Errors

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

General :: When Try To Execute Some App As Root On A Remote PC, It Doesn't Do?

Dec 26, 2010

When I SSH another machine and try to execute some GUI app, it does. But when I try to execute some app as root on a remote PC, it doesn't do and says:Code:X11 connection rejected because of wrong authentication.some-GUI-app]: Cannot open display:How do I make it work?

View 5 Replies View Related

Ubuntu Servers :: Vsftpd Stops Working Randomly?

Nov 29, 2010

On a whim vsftpd seems to stop working randomly and any attempted connection times out while waiting for the welcome message.It'll take a couple reboots and a couple "sudo service vsftpd restart" 's and it'll eventually start working again.AFIIK everything is at the most currant version. It just started doing this a few weeks ago.Here is my config file:

Code:
# Example config file /etc/vsftpd.conf
#

[code]...

View 9 Replies View Related

Ubuntu Servers :: 10.10 Randomly Not Mounting NFS Shares - Race Condition?

Dec 16, 2010

NFS share is up. it's set to r/w. This is Ubuntu 10.10 NFS4 i believe. exports file looks like this;
/data/feeder 10.10.10.1/255.255.255.0(rw,async,no_root_squash,no_subtree_c heck)

on the client,
/etc/fstab looks like this;
10.10.10.1:/data/feeder /opt/feeder nfs rw 0 0
when I ls -la into /opt/feeder I see all the persmissions as:
4294967294:4294967294 instead of root:root

View 8 Replies View Related

Fedora Servers :: Apache Randomly 'timing Out'?

Aug 16, 2009

Running a LAMP server, CentOS as the OS.The sites always been slow, but now that ive optimized it with mysql cache, gzip compression and some other things, its really fast.Except when pages loading seem to randomly 'time out'. The browser sits on 'waiting for x.com'. Closing the browser and/or the tab and opening a new one fixes it, but then it'll happen again eventually. Clicking further links while its 'waiting for x.com' does nothing, basically the site becomes unusable until you close the tab and reopen it.

This happens on all 3 virtual servers we're running within apache. Mainly noticable on the PHPbb forums, probably because they are visited the most.It's not a slow mysql query, i turned on slow query logging over 2 seconds, and the only two hits i got on that i know are unrelated.Ive turned off some optimizations thinking they might be it, but no dice.

View 2 Replies View Related

Ubuntu Servers :: Unable To Execute .sh Script

May 13, 2010

I have a Dell PowerEdge 2850 running Ubuntu 10.04 Server with SSH and Samba. My problem is that I am unable to execute my adduser.sh script which reads from a text file and adds users to the box and Samba. I have ran chmod a+x to make it executable and placed it in /usr/local/bin.

When I run sudo adduser.sh I get "sudo: unable to execute /usr/local/bin/adduser.sh: No such file or directory".

When I run adduser.sh I get "-bash: /usr/local/bin/adduser.sh: /bin/bash^M: bad interpreter: No such file or directory " I have been using Kubuntu as my home workstation for some time now but I have managed Windows servers but since I was given the freedom to setup this server I chose Linux.

View 5 Replies View Related

Ubuntu Servers :: Use F12 To Execute Script Even When Not Logged On

May 28, 2010

how to bind a script to a F key (F12) that will run as root even when not logged in. I have a headless server on client premises where it'd be easier for them to press F12 to run this script that will be rarely needed than to give them SSH instructions etc. I know this must be do-able, but I can't get my Google-fu on for this question. The only way that I can possibly think of doing it is to touch a file whenever that key is pressed and have the script idly checking for that file every few seconds in a loop.

View 2 Replies View Related

Ubuntu Servers :: 10.04 Cannot Execute Binary File

Dec 22, 2010

Trying to install Parallels Plesk Panel 10 x86_64 onto a completely new installation of Ubuntu 10.04.1 LTS

root@server:~# chmod +x parallels_installer_v3.7.1_build101014.17_os_Ubunt u_10.04_x86_64
root@server:~# ./parallels_installer_v3.7.1_build101014.17_os_Ubunt u_10.04_x86_64
-bash: ./p.arallels_installer_v3.7.1_build101014.17_os_Ubun tu_10.04_x86_64: cannot execute binary file

View 5 Replies View Related







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