CentOS 5 :: Setup A Cron In /var/spool/cron/root

Feb 16, 2010

I 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.

View 3 Replies


ADVERTISEMENT

Ubuntu Servers :: Cron Sending Email From Address / Change The Default Domain Name For Cron?

Apr 29, 2011

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.

View 1 Replies View Related

Fedora :: No Output From Cron Jobs In /etc/cron.daily

Jan 29, 2011

I 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.)

View 3 Replies View Related

Ubuntu Installation :: Cron's /etc/cron.daily/apt Not Upgrading?

Feb 25, 2010

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].....

View 2 Replies View Related

Ubuntu :: Do Cron Updates Erase Cron Entries

Sep 19, 2010

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 Related

Software :: Vixie-Cron Not Running /etc/cron.d/

Feb 9, 2011

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:

View 2 Replies View Related

Ubuntu :: Setup A Cron Job To Run Every Day At 13:00?

Jun 15, 2011

I've setup a cron job to run every day at 13:00. When I run it manually it works but with the cron it doesn't

this is the log:

Code:
Jun 14 13:00:01 testserver CRON[5662]: (scialom) CMD (lynx http://www.something.com/sms_reminder.php # JOB_ID_4)
Jun 14 13:00:02 testserver CRON[5661]: (CRON) info (No MTA installed, discarding output)
Jun 14 13:00:08 testserver dhclient: DHCPREQUEST of 10.0.0.6 on eth0 to 10.0.0.138 port 67
Jun 14 13:01:14 testserver dhclient: last message repeated 4 times

View 2 Replies View Related

Fedora :: Setup Cron Job To Update ?

Oct 30, 2009

Just installed Fedora 11. Like to setup cron job to update everthing on a regular basis. any examples?.

View 4 Replies View Related

Ubuntu Servers :: Setup A Cron With Screen?

Jun 7, 2010

I'm trying to setup a cron with screen. the purpose of running screen is because i want to resume to see the status of the job while it is running. anyone can enlighten me how i should setup my cron. I've tested with

00 14 * * * screen [command]

but the cron doesn't create a new screen.

View 4 Replies View Related

Ubuntu :: Setup A Simple Backup Cron Job

Jun 10, 2010

I'm trying to set up a simple backup script with cron.

In "crontab -e" (and sudo crontab-e - I tried both) I enter "0 22 * * * /home/USERNAME/.backup.sh", with the hope that it will run the script at 10pm each day. The srcipt work fine if I run in a terminal. why it won't work? It's bound to be something obvious....

View 5 Replies View Related

General :: Cron Jobs Setup For Each 15 Seconds

May 8, 2010

How can I cron jobs for less than a minute for example configuring cron job to do something for each 15 seconds.

View 4 Replies View Related

Slackware :: Setup A Cron Job Using Crontab Entry

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

Ubuntu Servers :: Cron For Root Does Not Run

Jan 28, 2010

Cron for root does not run,it's 8.04LTS ubuntu server,however Cron runs for other users,Can anyone help?i've checked many times that i have the right syntax.

View 9 Replies View Related

Ubuntu :: Running Cron As Root?

Jun 25, 2011

I have an external usb hard drive that spins down every 10 min. The commands in 'hdparm' do nothing to override the internal settings. So, I wrote a script to touch a file every 5 minutes, and it will run as root because of the mount command, and I want it to run for every user. The script is executable, owned by root, and root is the group, with 755 permissions.

no_sleep.sh in /usr/sbin:

Code:
#!/bin/bash
# Script to keep external drive from spinning down
diskmounted=$(mount | grep Backup | wc -c)

[Code]....

View 4 Replies View Related

Ubuntu :: Use Streamer To Setup A Cron Job To Take A Picture With Webcam?

Nov 17, 2010

I am trying to use streamer to set up a cron job to take a picture with my webcam once/minute. The image that it is capturing is too dark - does anyone know a way to lighten it? I am capturing the image as JPEG.

View 3 Replies View Related

Ubuntu :: Scheduling Perl Script - Cron Job Setup

Sep 1, 2011

If I wanted to schedule a perl script to run every weekday at 1800 hours, should I setup a cron job. once I do so, if I want to cancel it, how do I undo it. Do I have to just type this at the shell prompt to set up:

Code:
0 18 * * 1-5 root /home/test.pl

View 9 Replies View Related

Ubuntu Servers :: Cron Job Doesn't Run Without Root

Feb 10, 2010

I am unable to run my cron tab job without root password.I made a little research on the forums and appearantly it should be changed.Must I change "passwd" part with my root password?

View 9 Replies View Related

Ubuntu :: Cron Job As Root Priveleged Access?

Sep 22, 2010

I have two users in my system. Admin(Root) , and "student". I am making a bootable USB with Ubuntu 10.04 with two partitions. What i need is a cron-job who copies some files that the student has made(from the first partition) onto a partition which he is not allowed to access. The way i thought it should be done was making a root cron-job which mounts the drive and then copies the documents, and maybe unmounts it again.

The problem with this is that, when i mount it, wouldnt it be accessible to the "student" as well then? Since i give him sudo-rights and mounts the drive in the background for him? Alternatively i could unount it straight after the copying is done, but then it would do this too often I guess.

View 2 Replies View Related

General :: Cron Job Configuration - Log In As The Root User

Apr 15, 2010

I have done these steps. still its not working.

1. Log in as the root user.
2. I have created a file with name "reminder" in /root directory.
3. Create a /etc/cron.daily directory. Add a file called "taxrem", which reads a text file from home directory, so write a command in the "taxrem" : "cat ~/reminder"
4. Add command to /etc/crontab file. Based on the conditions I want, such as : 5 13 * * * root run-parts /etc/cron.daily

There is no entry in the cron.deny file. Still I have not get any response on that scheduled time.

View 1 Replies View Related

Ubuntu :: Run Rsnapshot From Cron Via Root's Crontab File

Nov 21, 2010

I am trying to run rsnapshot from cron via root's crontab file (crontab -e). If I run rsnapshot from the command line with sudo it works perfectly, however, if I run it from cron:

Code:
* * * * * /usr/bin/rsnapshot hourly >/tmp/crontab.out 2>/tmp/crontab.err
This does not work. The crontab.err file shows:

[Code]....

View 2 Replies View Related

Security :: Lots Of CRON Spam From Root. Normal?

Jan 25, 2010

Take a peek at this:

Code:
Jan 23 20:15:01 localhost CRON[22629]: pam_unix(cron:session): session opened for user root by (uid=0)
Jan 23 20:15:01 localhost CRON[22629]: pam_unix(cron:session): session closed for user root

[code]....

View 3 Replies View Related

Debian Configuration :: Get Cron To Send Messages In First Place Instead Of Root?

Mar 25, 2010

The system crontab (/etc/crontab) uses the same format, except that the username for the command is specified after the time and date fields and before the command.

[code]...

Every hour, I get an e-mail complaining about the first line of the crontab:

[code]...

I get the same complaint from the other entries: It looks to me as if cron, or anacron, is trying to execute the user (root) as a command. Predictably, the shell doesn't like it, so barfs and triggers an e-mail about it. Why is this not doing what the man page says it should do? The 2nd problem I believe is related to exim, not cron. The e-mails I'm getting above are being bounced from my ISP because they are directed to root@myisp.com, rather than my regular e-mail address. When the message bounces, it bounces to my regular e-mail address. In /etc/aliases, I have root: [URL]... and in etc/email-addresses I have root: [URL]... Adding the entry to /etc/email-addresses allowed the bounce to find me because the sender's address is [URL]... but how can I get cron to send these messages to me in the first place, instead of root?

View 11 Replies View Related

Ubuntu Servers :: Root Mailbox Filling With Cron Messages?

Feb 3, 2010

I'm getting the following messages sent to my root account mailbox. It appears to be reporting an issue finding ntpdate, however when running the following command:

aptitude show ntpdate | grep State

It shows as installed and any ntpdate commands work with no issues, so I have no idea why this is getting regularly reported?

From root@mydomain.co.uk Wed Feb 03 18:20:01 2010
Return-path: <root@mydomain.co.uk>
Envelope-to: root@mydomain.co.uk
Delivery-date: Wed, 03 Feb 2010 18:20:01 +0000

[Code]....

View 9 Replies View Related

Ubuntu :: Unable To Install The 10.10 - [9354]: (root) CMD (cd/run-patsreport/etc/cron.hourly)

Apr 16, 2011

I have Compaq Presario CQ62-215DX notebook (laptop) computer with built in image of Windows 7. I use partitioning tool to create partition of 250GB hard drive. I created these partitions as NTFS partition. My issue is after creating partition of 75GB whereby I want to install Ubuntu using ubuntu-10.10-desktop-i386.iso file from dvd drive; I cant install.

I use ext4 file system to install ubuntu and mountpoint is root After user setup it stops at this point:

UBUNTU CRON [9354]: (root) CMD (cd/run-patsreport/etc/cron.hourly)

It doesnt install ubuntu on separate partition. how to install ubuntu on separate logical partition? Windows 7 is in primary partition.

View 1 Replies View Related

CentOS 5 :: Cron Job Is Not Running

Jan 7, 2010

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.

View 5 Replies View Related

CentOS 5 :: Looking For Cron Alternative?

Oct 27, 2010

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?

View 1 Replies View Related

CentOS 5 :: Get Rid Of Awstats Cron Output

May 27, 2009

I' running awstats via

/etc/logrotate.d/httpd
prerotate
/usr/bin/awstats_updateall.pl -awstatsprog=/var/www/awstats/awstats.pl now
endscript

View 1 Replies View Related

CentOS 5 :: No Items From /etc/cron.daily Run On 5.3

Oct 26, 2009

I'm having a very strange issue with cron on centos 5.3 64-bit. I have 3 cron scripts in /etc/cron.daily which run backups. They are as follows:

script1:

#!/bin/bash
/usr/local/bin/backup-script1

script2:

#!/bin/bash
/usr/local/bin/backup-script2

script3:

#!/bin/bash
/usr/local/bin/backup-script3

The contents of the 3 /usr/local/bin scripts are ...

/usr/local/bin/backup-script1:
#!/bin/bash
synbak -s srv1 -m rsync
rsync -av --delete /data/backup/srv1/* root@::share/srv1/

To explain this, the 1st active line does a synbak backup and the 2nd active line rsyncs the backup data to a remote server.

/usr/local/bin/backup-script2:
#!/bin/bash
synbak -s srv2 -m rsync
rsync -av --delete /data/backup/srv2/* root@::share/srv2/

[code]....

View 7 Replies View Related

CentOS 5 :: Cron Entries Not Executing?

Jun 2, 2010

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

*/3 * * * * /usr/bin/run-parts /etc/cron.myapp/3minute/
*/3 * * * * /usr/bin/run-parts /etc/cron.myapp/3minute
*/3 * * * * root /usr/bin/run-parts /etc/cron.myapp/3minute/

[code]....

View 3 Replies View Related

CentOS 5 Server :: How To See Cron Log File

Mar 15, 2011

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

View 1 Replies View Related







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