Ubuntu :: Crontab Job Not Executing

Sep 1, 2011

I am a xfce user. I have a list of wallpapers and I wanted to change them every 5 minutes Initially I was using a simple command in crontab entry to change it, Quote: */5 * * * * xfdesktop --reload it was working but it would crash xfdesktop process after few changes and the screen would be all grey. To solve this issues I wrote a simple script which would check if xfdesktop is alive and if yes it would call xfdesktop --reload else start xfdesktop I called this script idesktop & its path is ~/.bin/idesktop

[Code]....

View 8 Replies


ADVERTISEMENT

General :: Crontab Not Executing Specific Script

Jun 15, 2011

I am running to a weird issue: for some reason when I try to run a crontab script which has these two operations:
#!/bin/sh
DATE=`date +%F`

but when I reduce this script to the first sql backup only and I use another cron job to put this dump file to the folder it goes through...weird isn't it?so 1+2 in 1 cronjob don't work but 1 in 1 cronjob and 2 in another cronjob it works perfect. any thoughts?

View 3 Replies View Related

Server :: Stop Squid Before Executing Crontab File?

Mar 14, 2011

I am using squid 2.6 on my cent os 5 .I want to shutdown the system at 7:00 pm for that purpose I write in# crontab -e 0 19 * * * /sbin/shutdown -h nowThe thing which I want to clear that when the system will going to turn off it will also stop squid service? If not then how can I automatically stop squid service and then crontab file execute

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

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

General :: Difference Between /etc/crontab And "crontab -e"

May 29, 2011

What is the difference between the crontab located in /etc/crontab and the crontab that can be edited using crontab -e?

View 2 Replies View Related

Software :: Executing NS 2.34 (NAM) On Ubuntu 9.10

Oct 26, 2010

I successfully installed and validate ns-allinone-2.34 network simulator on ubuntu-9.10. I then tried to run simple tcl code and ended up on the following error. I couldn't move ahead from there. What should I do to make 'nam(version 1.14)' work on my ubuntu 9.10?

ns: finish: couldn't execute "nam": no such file or directory
while executing
"exec nam out.nam &"
(procedure "finish" line 7)
invoked from within
"finish"

Here is the code I tried to run (for reference):
#Create a simulator object
set ns [new Simulator]
#Define different colors for data flows (for NAM)
$ns color 1 Blue
$ns color 2 Red
#Open the NAM trace file
set nf [open out.nam w]
$ns namtrace-all $nf
#Define a 'finish' procedure
proc finish {} {
global ns nf
$ns flush-trace
#Close the NAM trace file
close $nf
#Execute NAM on the trace file
exec nam out.nam &
exit 0
} .....

By the way I googled and got some suggestions like: adding 'nam' directory to environment. I did this as follow but it didn't work. I added:
export PATH=$PATH:/home/elias/ns-allinone-2.34/nam-1.14
to /etc/profile (>sudo gedit /etc/profile)

View 1 Replies View Related

Ubuntu :: Add Repository - Error: Executing

Jan 14, 2010

Is [URL]... down? I try to add the repository:

sudo add-apt-repository ppaorg-edgers/ppa

and I get this error:

[code]...

View 5 Replies View Related

Ubuntu :: Executing EXE Files From A CDRom?

May 11, 2010

I cannot seem to find what I need to in either these forums, Ubuntu help, or various Man pages.Issue:When I insert a CD it automounts correctly, but I cannot Use the "Open with Wine" option (even after configuring wine to recognize the executable) due to a "trust" issue within Ubuntu. I have learned that this "trust" is simply the executable bit, but I obviously cannot change that bit on a read only medium. he software requires the CD at both install and run time, so I cannot use a separately mounted ISO.Somewhere there must be a setting where I can turn off the "require trust flag" which I assume must exist.

View 5 Replies View Related

Ubuntu :: No Terminal After Executing Byobu

May 20, 2010

I just closed my terminal after checkin out byobu . Now when i click terminal , nothing happens . how can i get back my terminal ???

View 1 Replies View Related

Ubuntu :: Rc.local Is Not Executing On Boot?

Jul 5, 2010

using ubuntu-10.04/gnome

i have my printer and localhost startup written in rc.local but it does not execute on boot/reboot

that is the report i could make (yet learning about how to use linux)

Code:
r@r-desktop:~$ ls /etc/rc.local -l
-rwxr-xr-x 1 root root 540 2010-07-05 14:26 /etc/rc.local
r@r-desktop:~$ cat /etc/rc.local
#!/bin/sh -e

[Code].....

View 4 Replies View Related

Ubuntu :: Executing Any Program After Download?

Sep 4, 2010

After downloading any program thats in ubuntu or uses wine to run before i can run it i've got to allow it to execute, is there a workaround for this? Im using 10.04 ubuntu desktop

View 1 Replies View Related

Ubuntu :: Startup Script Not Executing?

Oct 26, 2010

Code:
ryan@TehLaptop:~$ uname -a
Linux TehLaptop 2.6.35-22-generic #35-Ubuntu SMP Sat Oct 16 20:36:48 UTC 2010 i686 GNU/Linux
ryan@TehLaptop:~$ lsb_release -a

[Code].....

I have it in my system -> preferences -> startup applications as the command "/etc/init.d/fixkeys" however it is not being executed at startup (I have to manually run the script every time I login). If I manually run it, it works perfectly. I have tried moving it to a directory in my home folder but that did not solve anything.

View 9 Replies View Related

Ubuntu :: Allow Executing File As Program?

Apr 22, 2011

On the `Install Properties` Menu , I am not allowed to check the: Allow executing file as program...

View 2 Replies View Related

Ubuntu :: 'Allow Executing File' But It Keeps Unchecking

Apr 30, 2011

I installed wine in the new Ubuntu 11, but when i right click and go open with wine it says that its not marked as executable! then i went right click and properties and under the permissions i clicked "Allow executing file" but it keeps unchecking!

View 9 Replies View Related

Ubuntu :: Executing A Script By Keypress?

Aug 6, 2011

Is there any way to map a shell script to run when you press a certain set of keys? For instance, I may want to execute the following by pressing CTRL+ALT+R (if that key combination is not already taken)

Code:

compiz --replace --loose-binding ccp

Or perhaps I want to open the System Monitor by pressing CTRL+ALT+DEL (a la Windows)

View 2 Replies View Related

Ubuntu :: How To Use Crontab

Sep 1, 2010

How to use crontab? i need to set crontab to execute a file every 1 minute

View 2 Replies View Related

Ubuntu :: Executing The Custom Startup Script?

Apr 17, 2010

I created a script, named mount_share.sh (in /etc/init.d), to mount the shared VirtBox dir at boot so I don't have to do it manually every time I load the VM. The script contains the following:

#!/bin/sh
sudo mount -t vboxsf -o uid=1000 osx_shared /home/rob/ubuntu_shared

I made it executable:

sudo chmod +x mount_share.sh

Then I assigned it to run at startup:

sudo update-rc.d mount_share.sh start 51 S .

I'm thinking it may be either:

1) A pathing problem to the ubuntu_shared dir but, if I run "ls -al" from inside /etc/init.d, it does find the ubunt_shared dir

2) Trying to run as sudo from inside the script. But, since all startup scripts run as the root user, I shouldn't even need the "sudo" in there which I have tried to no avail.

View 1 Replies View Related

Ubuntu Servers :: 10.04 Virtual Host Php Not Executing?

Apr 30, 2010

I upgraded karmic to lynx today and I'm stuck with some weird behaviour with one of my virtual hosts. The virtual hosts under /var/www/site work but my virtual host for DAVICAL which points to /usr/share/davical/htdocs/ doesn't.

Navigation to any html pages works but php files just show up blank!

Has there been a configuration change in lynx for virtual hosts outside of /var/www?

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

Ubuntu :: Executing A File In WINE That Was A C++ And Was Compiled Into A .exe?

Dec 15, 2010

when I try executing a file in WINE that was a C++ and was compiled into a .exe I get:

Code:
fixme:actctx:parse_depend_manifests Could not find dependent assembly L"Microsoft.VC90.CRT" (9.0.21022.8)
err:module:import_dll Library MSVCP90.dll (which is needed by L"Z:\home\server\ms\MCServer.exe") not found

[code]...

View 5 Replies View Related

Ubuntu Security :: Executing A Virus With Wine?

Mar 1, 2011

if I executed a Windows Virus in the program "Wine" in Ubuntu.

View 9 Replies View Related

Ubuntu :: One Of My Program Is Not Executing - Fgsd Crashed

Jun 7, 2011

I m using ubuntu 10.04. I have install flightgear Scenery designer(fgsd) and it executed successfully, but during working on it I selected any option of it and fgsd crashed. After that it is not getting execute. Throwing following error on console. buffer overflow detected ***: fgsd terminated

View 1 Replies View Related

Ubuntu Installation :: 11.04 Permission Denied Executing Over NFS?

Jul 20, 2011

We've run into an interesting issue in our environment:

If user joe1 has an executable that is NFS mounted, owned by him and permissions are set such:

--x--x--x a.out

he can't run it:

./a.out: Permission denied.

if he moves it to the local machine, say /tmp, it works fine with the same permissions.

joe can execute the file if he changes the permissions to r-x--x--x

this behavior seems to exist on the 11.04 clients, but not the 10.04 clients.

View 1 Replies View Related

Ubuntu :: Can't Get Crontab To Work / Fix It?

Jan 10, 2010

Let me first start by introducing myself. I'm completely new to Linux. I've always argued Windows was better, even if I secretly thought not. Anyways the time has come to make the transition (I'm moving into computer forensics so I need to learn linux )

SO i'm trying to use crontab -e. I've installed gnome scheduler as I'm not comfortable editing in command line yet.

I've setup blackjack to start everyday at 23.30. The command line I've entered is /usr/games/blackjack and this works perfectly fine in command line.

View 2 Replies View Related

Ubuntu :: Crontab Commands Won't Run?

Jan 21, 2010

Edit: commands like Firefox works after I set it to display properly. I still can't get personal scripts to run, though.I can't seem to get crontab to run my commands. I add

Code:
* * * * * /home/username/script
but it doesn't seem to work. The script works itself in the shell

View 1 Replies View Related







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