Ubuntu :: Cron Or Scheduled Tasks Not Working Properly

May 23, 2011

I am running a series of operations on executable matlab scripts which are connecting python and fortran scripts. I schedule the executables in cron. The problem:

- My original matlab scripts work perfectly.
- My executables work perfectly if I run them from the terminal. - Using the gui scheduled tasks and running the scripts once from a button, everything also works fine.
- But when I leave the scheduled tasks run on their own, I get an error! The error can be that the script hangs in general (I have some text logs exported every step to track the progress), or I get an error which never appears when I run the script with any of the other mentioned ways.
- I tried both cron command prompt or the GUI scheduled tasks
- I am running on Ubuntu 64 bit

View 3 Replies


ADVERTISEMENT

General :: Scheduled Tasks / Cron Not Working Right?

May 23, 2011

Got a small problem, I'm trying to schedule a script to run every Thursday at midday and the scheduled tasks application on Ubuntu doesn't seem to work. The script is fine when I run it from a terminal.I have zero experience using cron at the command line, can anyone tell me what I should do?

View 2 Replies View Related

Ubuntu :: Status Of Cron Scheduled Tasks While Computer Off?

Apr 29, 2011

Basically what I wanted to know is, if we turn the computer off (or hibernate/standby) - what will cron do with the tasks that were suppose to be scheduled during that time period the moment u turn it back on? Reason I ask is because i have a backup scheduled for every single hour. And another one I want to schedule for every 15mins. If I turn my comp in standby overnite, I certainly don't want to turn it on in the morning to find cron doing like 30 back up jobs!

View 2 Replies View Related

General :: Scheduled Cron Job Stpped Working

Aug 22, 2011

I run a Fedora 9 server at home, to host an "old school" MOO.To back up the database, I scheduled a cron job - and got some help with the script.I don't fiddle with stuff on the server much, because I don't really have a clue - leave well enough alone.But now I'm without backups. (I'd prefer to get this working, as it seemed pretty simple, and worked well for so long).

View 14 Replies View Related

General :: Page 2 - Scheduled Cron Job Stepped Working

Sep 8, 2011

The back.sh script is being run as user basil, whcih means that when it comes to copying the backup file to the target location you do not have the correct permissions to access the contents of the directory (it is rwx by root only).So, what do we do? Hoping it is ONLY the directory permissions which are fouling things up we have a range of options which, in not particular order of 'good', include:

a) change ownership/permission on target directory.
b) have the back.sh script run by the root user
c) set up sudo to permit the file copy to be done by root
d) use setuid on the back.sh to have it run, effectively, as root

A lot of the answer will depend upon what else the Dropbox directory is for. If it's JUST for your backups for this then I'd be inclined to:

Code:

chown basil /root/Dropbox
chmod g+rwx /root/Dropbox

which will permit the basil user full access and thus allow the file operations being done and give root access via the group permissions (not that the root user really needs this).Also, I'd be inclined to:

Code:

chown basil /home/xxxx/moo3/bin/back.sh
chmod u=rwx,g=rx,o= /home/xxxx/moo3/bin/back.sh

which will make things 'look' better, it just reinforces the point that the script is run (and owned) by the basil user.

View 3 Replies View Related

Ubuntu :: Run A Script With Scheduled Tasks?

Jun 27, 2011

i have made a search on this subject and i always find the cron to be the solution for me. But i am asking because i think what i want can be done differently. i have a command line to grab stream and save it. i want this command to be run at different time (hours) on specific days. i should use the "at", as far as i saw here on the forum. But are there other way to do it? can i have a simple script that i run the day of the event, before this occur?

View 1 Replies View Related

Ubuntu :: Unable To Launch Scheduled Tasks Application

Nov 7, 2010

When I try to launch it from the System Tools sub folder, I see it appear for a second and then it disappears. What should I do? This is the code displayed when I try running it from the Terminal.

View 1 Replies View Related

Server :: Webmin - Scheduled Cron Job (Password)

Jan 20, 2010

I have webmin on my linux server, I've made a cron job which requires a password to be entered after the command has been run.. all good. I noticed the cron job has the option "Input to command", where after many hours googling a can assume this is where you type input after the cron job has run (for example, a password?). I have tired putting the password needed for the job (the cron job is an ssh root@address) into this field however the output when running the cronjob is saying "permision denied" still.

Is there some sort of character I have to enter in this field, like
-p mypassword:
or
*mypassword?
or
"mypassword"

View 5 Replies View Related

Slackware :: Cron Jobs Scheduled To Run But PC Suspended?

Apr 7, 2011

By default, cron jobs are scheduled to run at 4:40 IIRC. I have my computer set to suspend after half an hour of inactivity so, except for some all-nighters, pretty much every day at that time my PC is suspended. What happens to the cron jobs? I don't suppose they run while the suspension is in effect. Do they get run when the computer wakes up or does cron wait until the next day at 4:40 to run the jobs?

View 5 Replies View Related

Applications :: Correct Syntax For Scheduled Cron Jobs

May 25, 2010

I need to create the following cron jobs:

job #1: runs Mon, Tue, Wed, Thu, Fri, Sun at 9PM every month except for 15th
job#2: runs on 15th of each month at 9PM
job #3: runs every Saturday at 6PM every month

What is the correct syntax for this kind of scheduled cron jobs?

View 7 Replies View Related

Ubuntu :: Add Two Separate Tasks/jobs To Cron?

Jul 13, 2010

I want to add two separate tasks/jobs to Cron that needs to run every 10 minutes, but I would like the second job to kick off only 5 minutes after the first job. Is there any way this could be done within Cron?

View 2 Replies View Related

Ubuntu :: Cron Script Not Properly Executing?

Jun 5, 2010

so sorry about this seemingly silly cron question. I know a lot are asked, and are usually just environment related.Anyway, I wrote a very simple PHP script to mount my external drive to a specific location as soon as it's switched on.The script works great when run.What's strange, is that it runs in cron and generates a log file, but for someone reason doesn't mount the drive when cron runs itI added in the full path to EVERYTHING in the script, and I'm calling it with the full path from crontab, but it doesn't mount my drive when run from cron.I've tried running the individual commands on the cmd, and it all works.

View 9 Replies View Related

Slackware :: Scheduled Recording In Kaffeine Not Working?

Mar 16, 2010

my favourite media player is Kaffeine. One reason is, that no other application has better support for DVB-T including channel tuner. Version 1.0-pre2 from SBo works great, with one limitation, though: Scheduled recording doesn't work. When I open the programme guide and select a programme to be recorded, Kaffeine reports that the recording has been scheduled. Then, at the scheduled start time, a zero byte file with the name of the programme is created, but it remains empty forever. Instant recording, on the other hand, works just fine. I am on Slackware64-current with all updates up to now.

View 2 Replies View Related

Ubuntu Servers :: Auto Run Tasks On System Start With Rc.local Not Working / Fix It?

Mar 30, 2011

I am currently running a VPS with Ubuntu Server 10.10. I have been trying for a few days now to get some programs to run when the system starts, but with no luck. I am trying to use rc.local to do this, there is an:
/etc/init.d/rc.local - http://paste.monsterprojects.org/mpbjhwhbjzhbjrr (Was already on the system, I have not edited this)
and:
/etc/rc.local - http://paste.monsterprojects.org/mpbjhwhbkkkhwez

If i run the /etc/rc.local script manually all the programs start fine, and if i run /etc/init.d/rc.local start, all the programs start fine. But for some reason they just don't seem to be starting when the system boots.

View 3 Replies View Related

Ubuntu Servers :: .htaccess Working, Rewrite Not Working Properly?

Apr 25, 2011

I had a problem with apache2 and getting .htaccess working. I have done some things and i believe its working the ErrorDocument command is anyway. I believe there may be some problems with the rewrites though.Im trying to take a urlhttp://localhost/showthread/123and make it display whats on http://localhost/index.php?showthread=123The rewrite rule is Quote:

Options +FollowSymLinks
RewriteEngine on
RewriteRule ^showthread/([^/.]+)/?$ index.php?showthread=$1 [L]

[code]....

View 8 Replies View Related

Ubuntu :: Login Password Ok, But Password To Perform Admin Tasks Not Working?

Apr 23, 2010

I thought these were the same password?In-fact, they WERE the same password on the set-up I currently have.But now, weirdly, I can log in fine but I the exact same password is not using in order to perform admin tasks.I've tried a recovery mode, console, and then "password (username)" in order to reset the password.This does reset the password I need to use to log in, but the password still does not work for performing admin tasks

View 4 Replies View Related

Ubuntu :: Cron Job Not Working?

Oct 30, 2010

After I create a cron job to shred some documents it seems to start and then immediately stop. What am I doing wrong? For instance, here is my cron:

#!/bin/sh
DISPLAY=:0.0
PATH = /usr/local/bin:/usr/bin:/usr/sbin:/bin:/sbin:

[code]....

View 2 Replies View Related

Ubuntu Servers :: Cron Isn't Working

Jun 18, 2011

I'm trying to remotely schedule a shutdown using cron but I can't get it to work. I did setup the following 'sudo crontab -e'

Code:

For some reason doesn't this work, since I was able to login and get this output when using 'date'

Code:

View 7 Replies View Related

Ubuntu :: Shell Script Not Working In Cron

Jan 20, 2010

I'm creating a script all worked fine in the command line. But not work in the cron. Below you could see the script

[Code]...

So far I found when I use corn following part not working, nothing goes to the processedfiles file. ls -l /var/lct/mou2/processed | grep $TODAY | awk '{print " " $8}' > /home/trans/mou/processedfiles ls -l /var/lct/mou2/processed | grep $YESTERDAY | awk '{print " " $8}' >> /home/trans/mou/processedfiles This work perfect in command line. Corn job and command line use by the same user.

View 6 Replies View Related

Ubuntu :: Setting Up Cron For The First Time Not Working?

Aug 17, 2010

I've read a lot on how to setup a task in crontab. I think I understand how to edit the file, but when I try to save the changes, it says "no crontab for xxx." Then it says that it cannot create a new crontab. I have ubuntu desktop 9 running as a webserver. I've read the details in these posts and it isn't helping.

[URL]

View 3 Replies View Related

Server :: Cron Job Not Working?

Jun 1, 2011

I have a cron job to run every 15 minutes. The cron job is running per /var/log/cron. It lists the job every 15 minutes.

[Code]...

I do not see any errors. I also looked in /var/log/messages for any errors and it does not list any. I added a line to the script that is running to send an email to me to see if it is running or not. When I run the script from the command line, the script runs without error and I get an email. I have searched and can not find what it going on. Is there some where else errors might be? Could there be a permission issue? The cron job is not being added by the root user.

View 14 Replies View Related

Slackware :: Cron Job Not Working?

Nov 13, 2010

I set up a job in my crontab file to clear the /tmp file on bootup with the following line:

Code:
@reboot rm-rf /tmp/*
My /tmp folder is not clearing. I've never used cron before;

View 7 Replies View Related

Ubuntu Servers :: Cron Jobs At Reboot Not Working

Jul 13, 2010

Have a headless server running Lucid 64 bit. Everything is working great except for a couple of Cron jos I'm trying to have run at boot.

My user crontab looks like this:
# m h dom mon dow command
01 * * * * /home/ceallred/Scripts/SambaBkup.sh
@reboot /usr/bin/SpiderOak --headless &The SambaBkup script works like clockwork...

The SpiderOak job doesn't start. It works if I type the command in manually.
syslog only shows:Jul 13 22:45:33 RavenWing cron[1010]: (CRON) INFO (pidfile fd = 3)
Jul 13 22:45:33 RavenWing cron[1022]: (CRON) STARTUP (fork ok)
Jul 13 22:45:33 RavenWing cron[1022]: (CRON) INFO (Running @reboot jobs)
Jul 13 22:45:33 RavenWing CRON[1048]: (ceallred) CMD (/usr/bin/SpiderOak --headless &)Yet ps -A doesn't show a running SpiderOak process. It shows after starting manually.

View 7 Replies View Related

Debian :: Cron Task Not Working

Jun 27, 2015

I have a ts3.desktop file in my /usr/share/applications folder that I want to run on system boot. I have typed the following commands which don't work

Code: Select allcrontab -e

Then in the editor, I typed the following line at the bottom of file. I also made the necessary carriage return after this line.

Code: Select all@reboot gtk-launch ts3 /usr/share/applications

Then I pressed ctrl+o to save it.

After I put these commands in, I did the following command to troubleshooting this issue, see below.

Code: Select all$ crontab -l
no crontab for server
$ps -ef | grep cron | grep -v grep
root         532      1   0 21:35 ?                 00:00:00 /usr/sbin/cron -f

But after I reboot and nothing happens, the application doesn't start.

View 1 Replies View Related

Software :: Cron Not Working Under Cygwin ?

Jun 29, 2010

I'm running cygwin 1.7 on a vanilla win2k3 r2 server. I've put together a simple crontab that I'll paste in her in a sec. The crontab entries call several shell scripts that do either scp's or rsync's from linux servers to this win2k3 box under cygwin.

The problem is that the scripts work and run fine from the commandline. Just not when called from the crontab. I'm running from the root equivalent administrator UID. The crontab log files are empty of errors.

crontab is:

Like I said, the scripts execute fine from the command line.

View 3 Replies View Related

Ubuntu :: Cron Not Working - Attempting To Schedule A Task To Run Every Hour?

Oct 1, 2010

I am attempting to schedule a task to run every hour. I have altered the crontabs for my account but the the task still won't run on the hour.

View 1 Replies View Related

General :: Ruby On Rails - Cron Job Not Working

Oct 5, 2010

It is little weird now that cron job is not working as i have set. I have set weekly job to send email but i am receiving multiple emails daily. Below is my code; # sends email every monday at 4:00 am 00 04 * * 1 /usr/bin/ruby /home/mbm/www/current/script/runner /home/mbm/www/current/app/models/add_to_delayed_job.rb -e production

00 -> Minutes
04 -> Hours (0-24)
1 -> Days / 0-6 / Sun - Sat

Sending email is fine but the time is not working so far as set.

View 2 Replies View Related

General :: How To Make Growisofs Working With Cron

Aug 9, 2010

I make a script to automate burning backup files on dvd. It works fine if I start it from root user, but if I start it. From cronjob do noting. I try on growisofs the option -use-the-force-luke=force but nothing happens. I check the env of cron:

HOME=/root
LOGNAME=root
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
PWD=/root
SHELL=/bin/bash
SHLVL=1
XDG_SESSION_COOKIE=3e0d70f7b71074a0b1fff4bb4aa97d13-1281297181.926502-724038309
_=/usr/bin/env
and it seems ok i've got my script in /usr/local/bin and growisofs in /usr/bin

Code of my script below:
#!/bin/bash
bkup_path='/bkrepo/';
prefix='PAR*';
totdimfile=0
for FILE in $(/bin/ls -r $bkup_path$prefix)

do
dimfile=`/bin/ls -l $FILE | /usr/bin/awk -F " " '{print $5}' `
let "totdimfile += dimfile";
if [ "$totdimfile" -lt "4700000000" ]
then
NAMEFILE=`/bin/ls -l $FILE | /usr/bin/awk -F " " '{print $8}' `
ALLNAMEFILE="$ALLNAMEFILE $NAMEFILE";
fi
done

/usr/bin/growisofs -use-the-force-luke=force -Z /dev/scd0 -R -J $ALLNAMEFILE
/usr/bin/growisofs -M /dev/scd0=/dev/zero
/usr/bin/eject
end code of my script

View 1 Replies View Related

General :: How To Schedule Job Using Cron That Shouldn't Run Between Working Hrs?

Aug 12, 2010

How 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(!).

View 3 Replies View Related

General :: Cron Not Working / Updating Opensuse 11.0

May 4, 2010

I am new to Linux and have done an install of Moodle 1.9.8 on Linux OpenSuse 11.0

I have created my cron via the terminal (crontab -e) root crontab - see below:

When going to /var/log/messages my cron entries appear as they should but my backup does not run and every morning when I go to the Notifications tab it tells me my crom maintenance script has not run in 24hours.

I would also like to get this in a log file and emailed to me.

View 2 Replies View Related







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