General :: Cron Doesn't Start A Script

Jun 1, 2011

I'm trying to start a script through crond. The record in crontab is: 30 16 * * * /home/alex/razhodilim.pl 1>/dev/null. The script razhodilim.pl works perfectly if I start it manually. But cron fails to start it.
What could be the reason?

View 9 Replies


ADVERTISEMENT

General :: Cron Job For Testing First System But It Doesn't Work?

Oct 5, 2010

I created a very simple cron job for testing my first Linux system but It doesn't work. After open the crobtab file by typing crontab -e, I put a line like this to send email in every 2 minutes to report disk usage:MAILTO=dan@gmail.com*/2 * * * * du -s /homeI tried to restart cron several times but I still got nothing worked. /etc/init.d/crond restart

View 14 Replies View Related

General :: Log The Start/completion - Time&date - Of My Cron Job Script?

Jan 11, 2010

How do i log the start/completion (time&date) of my cron job script? i want to be able to see what time it started and what time it finished? and if there where any errors while running my script.

View 3 Replies View Related

CentOS 5 Server :: Cron Job Doesn't Run, But Doesn't Error. "shutdown -r Now"

Aug 28, 2009

Is there something that blocks cron from running a shutdown command? I'm doing a daily bounce to break an attack (I have thread about that in security forum), but I always end up doing it manually. The cron log shows it being fired off at the right time...but the server never bounces. I thought maybe I just missed it, but there is nothing in messages that shows the server restarting (unlike when i do it manually, you see the start-up logging).

View 2 Replies View Related

Debian :: Start A Cron Job From Runlevels?

Jun 3, 2010

I have made a shell script that is ran every 5 minutes (using crontab) that does the following:(please disregard the '.' in ht.tp .. I'm under 15 post...can't post URLs yet ) Code: #!/bin/bashwget -q --read-timeout=0.0 --wait=5 --tries=5 -O /var/log/dynamicDNS.data ht.tp://someURLecho "[$(date)] $(cat /var/log/dynamicDNS.data)" >>/var/log/dynamicDNS.logrm /var/log/dynamicDNS.data >/dev/nullexit 0 (this script might look pretty bad but hey, it's my first one!)hat works perfectly! Though, I need to have this "cron" run from startup (boot) without the need to open a terminal and leave it open.I understand I can use runlevels to start a program from boot but that will have it run only once.

View 5 Replies View Related

Server :: My Cron Job Doesn't Work

Jun 1, 2010

I have a simple cron job that runs every night & I tested this manually by just running the command as root in bash and all worked fine. It took some time but the crob job finished and I got my results emailed to me perfect / as expected.

Here is root's cron job listing:

Code:

Now I noticed that I never ever got anything emailed to me the following day so I am wondering if perhaps the Cron daemon doesn't have permissions or has an issue running / executing the command rather than when I test the command as 'root'? When I view my logs, I can see the command being executed and don't see any errors however I don't get email results when Cron runs the job rather than me taking the command and running it manually in Bash...then it works. What am I missing?

Code:

View 9 Replies View Related

Software :: Cron Doesn't Run A Certain Script

Apr 4, 2011

I've tried to get cron to run a script, but it does not work. At first I put it into /etc/cron.hourly, with no succsess. Then i added the line

Code:

To the crontab, with the same result.

I'm sure cron runs fine besides that Problem, because commands like

Get executed.

View 12 Replies View Related

General :: KDE Doesn't Start Up Anything Else

Dec 30, 2010

I just installed KDE under Arch Linux. Problem is, nothing is starting up right with it - no window manager, no panels, nothing. All I get is a small terminal window in the bottom right corner of the screen, which I'm assuming is konsole. From that single window I can do things like start kwin or launch programs whose names I happen to know (like chromium or firefox), but I don't have a panel for starting programs or switching between programs. Even Alt+F2 doesn't bring up the normal dialog.

It doesn't matter whether I start kdm through inittab or manually by typing # /etc/rc.d/kdm start. KDM looks great, but once I log in as my normal user I just get a console window with no decoration.Is there a startup script for KDE somewhere that needs to run, and usually has a bunch of programs by default - like a window manager, panels, widgets, and all the normal background programs that run in an ordinary GUI? If so, can someone show me the default script so I can work from there with a window manager, decorator, launchers, etc.?

View 2 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 :: Mp3blaster Doesn't Work With Cron

Mar 2, 2010

I have a problem with mp3blaster.

I want cron to act as an alarm clock: first, it plays an mp3 file and then it runs the speech synthesizer festival which tells me to get up and do stuff.

Now, mp3blaster doesn't do anything when I run it from cron, but festival works without problems.

I've found some possible causes for mp3blaster not working through cron. Someone suggested that pulseaudio is not started. This shouldn't be the problem for me, since I don't even have pulseaudio installed, and festival is playing sound without problems...

I don't know what I should do to make it work.

Here is my script - runalarm.sh:

Code:

I don't want to include the wakeup text here since it contains profanity.

The mp3 player could be another one too. mp3blaster happens to be the only player I know that is easy to run from console, like this "mp3blaster goodsong.mp3", without and playlist creation or other stuff like that.

I can run the runalarm.sh from SSH console and it works fine, the mp3 starts playing and festival speaks after that. When run from cron, festival starts speaking right away and no mp3 is heard.

View 7 Replies View Related

Ubuntu :: Grep Doesn't Work In A Simple Cron Job

Jan 22, 2011

I have a problem with grep in my cron job:

A simple command like this doesn't work

Code:

Of corse I have tried with full path like this

Code:

Both of this scripts work fine when started from my shell. Unfortunately they don't work when executed from cron job, and I get an empty p.txt file.

Here is my crontab file:

Code:

Have any one of you faced this kind of problem before ?

View 3 Replies View Related

Ubuntu Servers :: Cron Doesn't Echo To File?

Mar 27, 2011

I have a script, echoSmart.sh:

Code:
#!/bin/bash
smartctl -a /dev/sda > /smartlogs/sda-$(date).txt

[code]....

View 3 Replies View Related

General :: Eth0 Wlan0 - Net.lo Doesn't Start

Jun 25, 2010

In an attempt to set up wireless so I could connect to the university network, which I think I probably should have just downloaded network manager or something but I didn't, I tried to put things in /etc/conf.d/net and some other places and I am afraid I'm not sure exactly what (and I have learned my lesson! I will pay attention to what I am doing so I can undo it next time I mess around with stuff!)

Anyway, the long and the short of it is now, when the computer is starting up and its doing the init stuff net.lo doesn't start. Later try and start net.lo or net.eth0 you get told "not enough arguments"

View 3 Replies View Related

General :: At Command Doesn't Start Firefox

May 18, 2011

why firefox is not started if I use scheduler command 'at'. I can start firefox from terminal. But when I use 'at hours:min' it doesn't start. I tried 'firefox &' but it doesn't start too. If instead of 'firefox' I use 'mv fileName1 fileName2' the file is renamed as expected.

Code: at now
warning: commands will be executed using /bin/sh
at> firefox &
at> <EOT> (it works with other commands)

View 2 Replies View Related

General :: Wamp Server Doesn't Start

Apr 18, 2010

I installed wamp server and it doesn't start. port 80 test successfully,

View 1 Replies View Related

Ubuntu Installation :: Cron Requires Manual Start After 10.04 Upgrade

Jun 24, 2010

After upgrading Ubuntu from 9.10 to 10.04, the cron daemon no longer runs automatically upon starting up the machine; I need to enter "sudo service cron start" to get it running. Is there a way to get it to start up by itself?

View 3 Replies View Related

OpenSUSE :: Cron Doesn't Load User Path Variable

Oct 15, 2010

I set up some scripts n crontab and I found that the scripts are failing because cron seems not to load my user PATH variable. Is there any way to tell cron to load my PATH variable?

View 2 Replies View Related

General :: Reboot The Server The Process Doesn't Start?

Mar 5, 2011

I need help adding a nohup command in this command line: su - rhx12 -c "/rhythx/rhythx/bin start /rhythx/rhyth" When I execute the script using root on the command line it works fine. But, when I reboot the server the process doesn't start. This script will go into the etc/init.d and rc2.d directory.

#!/bin/bash
case $i in
start)
su - rhx12 -c "/rhythx/rhythx/bin start /rhythx/rhythx"
;;

[Code]...

View 2 Replies View Related

Ubuntu :: Cron Entry - Doesn't Seem To Be Running - Don't See Any File Gets Written To The Log Directory

Oct 4, 2010

I have the following cron entry but it doesn't seem to be running:

Code:

The script does exist. And so does the directory /home/usr/log and writable. /var/log/syslog only has a bunch of these:

Code:

I don't see any file gets written to the log directory. That suggests to me that cron didn't run the job, as confirmed by /var/log/syslog.

View 9 Replies View Related

General :: Doesn't Start Anymore (kernel Panic) - Repair?

Jun 18, 2011

while I was using a live cd, I accidentally deleted some files on the hard drive, including apparently the init file. The fact is that linux doesn't start anymore (kernel panic).

View 14 Replies View Related

General :: Service Start Script Doesn't Show OK Or FAILED?

Jul 17, 2010

I have written a init.d script but, when do '/sbin/service scriptd start' it does not indicate OK or FAILEDWhat could I be missing?

View 2 Replies View Related

Ubuntu :: 11.04 Slow - Start Up Time Is 30 Minutes But It Usually Doesn't Start Up At All

May 4, 2011

I did a clean install of Ubuntu 11.04 64bit and the start up time is abnormally slow. If I start up the computer and don't press anything, the start up time is 30 minutes but it usually doesn't start up at all. It just boots into a purple screen, no splash, then it sits there and the computer doesn't have any loading lights flashing.

I had a similar problem with 10.10, but I assumed it would go away when I did a clean install of 11.04.

I can't get a read out of what's going wrong because when I press Esc it doesn't display anything, though weirdly it can sometimes get the start up process moving. I have also found that pressing enter really fast can sometimes help and something that seems completely oxymoronic, if I press the power button while it's starting up that can make it work, but nothing works every time.

View 8 Replies View Related

CentOS 5 Server :: DHCPD Doesn't Start - How To Make It Start

Sep 2, 2010

I'm configuring a new Centos 5.5 server in replacement of an old W2K server.The topology of our network is simple : one file/dhcp/dns relay server and workstations (PC's and some MAC's) plus network printers and scanners.All the workstations have dynamic IP addresses (easier because a lot of 'dynamic' changes : new persons with their own laptop, ...) and the server and printers/scanners have fixed IP addresses.I edited the dhcpd.conf (see here underneath), I have the file dhcpd.leases but it doesn't start !

DHCPD.CONF
ddns-update-style interim;
ignore client-updates;

[code].....

View 3 Replies View Related

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

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

Software :: Opera 10.60 Doesn't Know "notrayicon" - Doesn't Start

Jul 4, 2010

The new release of Opera 10.60 doesn't recognize the -notrayicon option anymore. If you had this option in your menu, then Opera doesn't start anymore and dies silently. You won't get an error message, and this error can keep you quite puzzled.

The solution is to remove the -notrayicon option from the menu entry. In opera, go to opera:conf and find the "notrayicon" option and disable it.

View 1 Replies View Related







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