General :: Script File Fails When Run From Crontab / Sort It?
Dec 29, 2010
Is been a while since I was last here requesting help. Now I need some of that LQ magic. I have a script file that extracts data for a date range, create a zip file for the data and then ftp it to a remote server.
Now the script is working perfectly if it is run manually, but now I want it to execute automatically. So I use the crontab, but for some reason the script fails when run from the crontab.code...
View 3 Replies
ADVERTISEMENT
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
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
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
Feb 11, 2011
i want to do scheduling using /etc/crontab file instead of using crontab -e that is crontab command on the terminal.i am appending to the crontab file in the /etc directory but the scheduling is not happening
View 7 Replies
View Related
Jun 7, 2010
I attempted to run various cron jobs as root - just general server make-tidy stuff. But if I edit the /etc/crontab file directly, these tasks don't get run. However, if I use crontab -e as root, these jobs appear to work. Any idea why this might be the case? Also, I understand that user cron jobs are stored in /var/spool/cron/<user> (including root). If this is the case, what's the purpose of the /etc/crontab file?
View 5 Replies
View Related
Oct 8, 2010
I've tried to create a crontab that renames a fil extension every minute. This is what I've tried:*/1 * * * * / rename /home/bodil/Avräkningsfiler/'s/.txt/dat/' *.txtBut it doesn't seem to work.I've also tried to create a .sh file in the catalog itself with the command executing directly in the catalog but even though running the command by typing it in, it doesn't run automatically by cron
View 10 Replies
View Related
May 3, 2011
I have this code that is 'bashed' regularly with crontab and basically it will send me an E-Mail of most of the output but it misses out some of it!
Here is the crontab code to automatically run the script:
Code:
So that sends me an E-mail with most of the output of the following code:
Code:
It sends me everything up to echo "*******" "Begin compressing and transferring files" "*******" but it wont output the tar bit.. so it should give me a list of files that have been tarred.
View 1 Replies
View Related
Mar 19, 2011
I am trying to have the files from /user/directory copy every hour to /backup/user/directory. It would seem that cron or crontab is what I need to use. Looking at previous posts and other documentation only shows how much I don't know. When I type crontab -e I get a blank file I can type into, seemingly using vi as the editor. I have no problem with that but when I type cron -l, I get my text after a message about "Do Not Edit this File". What I am reading just makes no sense, I am not understanding even the most fundamental aspects of cron or crontab. Where I can get the most basic of basic instructions to try to understand this function?
View 4 Replies
View Related
Feb 19, 2011
Having an odd problem running a mysqldump via crontab. I have the script running on other servers and they work fine, so not sure how to actually troubleshoot, but the script looks like the following;
If I run it as a cronjob as root, it finishes in a second and a 20k file is there. If I run it from the command line as root it does the backup (takes a few minutes) but does complete the backup and can be unzipped and read successfully.
View 3 Replies
View Related
Feb 10, 2011
when a script in /etc/cron.d directory will be executed?. I know that scripts in cron.daily will be executed daily [ set in /etc/crontab file]? Cant able to find this directory listed in /etc/crontab file?
View 2 Replies
View Related
May 1, 2011
I am trying to upgrade from Ubuntu 10.10 to 11.04.
When it gets to the end of the upgrade I get a dialog with the following error:
Quote:
Could not install the upgrades the upgrade has aborted. your system could be in an unusable state. A recovery will run now (dpkg __configure -a). code...
View 2 Replies
View Related
Oct 6, 2010
Upon running miro (openSUSE 11.3 and arch) I get the following error code...
View 6 Replies
View Related
May 22, 2009
Trying to install yum-installonlyn, yumex reports a dependency error because libgif.so.4 is needed. However, that library is in /usr/lib and I also have copied it to /lib - with no success. Could anybody tell me which piece of information I am failing to give yum?
View 4 Replies
View Related
Mar 22, 2010
I have this .txt file
3183630 R
3574216 W
5264994 M
2656889 A
I want to sort it by the numerical order of column. After sort, I wish to get output like
2656889 A
3183630 R
3574216 W
5264994 M
anyone knows how to use sort to do that? or any other command?
View 6 Replies
View Related
May 14, 2010
What is the command to sort a text file by the second word?
View 4 Replies
View Related
Feb 17, 2010
In Jaunty (9.04) I've setup a small (eleven-terminal) ltsp network at the local school. It handled around 6600 working hours with ease.
Now I've upgrade the server to Karmic Koala (9.10) and it just stopped working.
1) The clients have PXE NICs
2) They get the proper IPs from the DHCP server and respond appropriately to changes in the DHCP configuration files.
3) DHCP server also points the clients to
filename=/ltsp/i386/pxelinux.0
4) When the clients try to download the pxelinux.0 over tftp they just timeout
5) /etc/inetd.conf has an entry like
tftp dgram udp wait root /usr/sbin/in.tftpd /usr/sbin/in.tftpd -s /var/lib/tftpboot
6) The file /var/lib/tftpboot/ltsp/i386/pxelinux.0 exists on the server
I'm lost at all these configuration files and protocols.
View 7 Replies
View Related
Mar 27, 2010
I have following error when trying to lauch Icecast:
Starting icecast2: start-stop-daemon: Unable to set gid to 121 (Operation not permitted)
View 1 Replies
View Related
Nov 13, 2010
I have an ASUS G51J notebook with Windows 7 installed. I was following This Guide. I set aside about 100GB for the Unallocated partition. When I started my laptop, I chose to boot from CD (which has an Ubuntu 10.10 ISO on it). I saw a purple background with two icons at the bottom of the screen, and eventually "Ubuntu" appeared in the center with a few dots underneath it. These dots would change color from left to right like a loading bar.
This is where my issue comes up. My friend was using this same CD on his Dell laptop and his desktop which has a XFX motherboard, Q6600 processor, and Invidia 470 graphics card. After this "loading bar" was done, he would be asked if he wanted to boot or install Ubuntu.
This didn't happen for me. What happened instead was that I saw what looked like my Windows desktop after having gone through a meat grinder. There were various icons randomly in pieces all over the place. The only icon that was in one piece (by chance) was my shortcut to Skype.
Has anyone seen this before? Am I doing something wrong? My friend was saying that maybe I should try with a fresh reinstall of Windows and try again. I wasn't even given the choice to just boot from disc. It got to the point where I expected it to give me the options to do so, but instead the Kansas version of my desktop shows up after being hit by an F5
View 9 Replies
View Related
Jun 17, 2010
To whom it may concern.
If your acroread chokes with this error
Code:
"The print process returned an error. Please check whether the printer is connected to the machine."
check if "lpr" is available in your penguin.
Some distros may not have 'lpr' in cups package.
View 1 Replies
View Related
Dec 1, 2010
I can't play mp3 from Rhythmbox music player, it says MPEG-1 Layer 3 (MP3) decoder plugin required, and also I can't play mp4 from movie player it says h.264 decoder and MPEG-4 AAC decoder plugin required. what a joke!!! can you imagine for a newbie and for the first time like me use linux operating system find something like that.
View 2 Replies
View Related
May 2, 2010
I'm new to Linux world. I'm using Ubuntu 9.04. I'm unable to go online using Ubuntu because I'm unable to run an executable client application provided by my ISP. I called them and they are not able to help me instlling this client applicatoin for me on my Ubuntu. "I cannot go online untill I install this ISP client application on my Ubuntu." I'm entering my ISPs weblink in this blogpost so that it would be easy for you guys to help me resolving this issue. http://www.spacenetindia.net/download.php This is the weblink where I downloaded that ISP client application from. I clicked on this link and clicked on 24online clients.exe tab located on the left and downloaded linuxclient.gz. Please help me if you find any resolution for this issue. Though I tried downloading Wine but I could not as I cannot go onlnie in Ubuntu. In windows I don't know how to install wine to make it work offline in ubuntu.b
View 14 Replies
View Related
Dec 4, 2010
I have a 1.0 ghz G4 eMac running Tiger. Using Ubuntu 10.04's Live-CD I installed 10.04 on a 8-gig USB flash drive and it worked very well despite spending nearly five hours to download its files via DSL and a pokey USB 1.1 port. The flash drive's 10.04 installation worked just fine on my eMac and 900mhz G3 iBook except for Airport wireless non-connecting issues.(I like Ubuntu 10.04 because unlike Mint for PPC, you're not hassled or barred from accessing your Mac HD and its files.) THEN, to resolve my wireless issues, I decided to upgrade to 10.10 which took nearly 12 hours, and it seemed to've installed well until I tried booting the flash drive and it doesn't work. I get the Ubuntu icon in the Startup Disk screen but it keeps returning to it even after I select Ubuntu. The error screen I get reads code...
View 5 Replies
View Related
Aug 4, 2010
I have a .sh file which i want to run using crontab at a specific time with root privilege.
I put an entry in root's crontab as the following:
sh /home/vivek/ifconfig/college.sh
But, the file do not get executed at a given time.
View 1 Replies
View Related
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
Apr 15, 2010
A couple days ago I noticed cron stopped working and now I can't create a new file using crontab -e. When I hit crontab -e I get the editor but after saving nothing comes up under crontab -l and the file is blank when I reopen it. I don't have a cron.allow or a cron.deny.
View 4 Replies
View Related
May 6, 2010
I want to get mail from the crontab log file....
How to set log file in crontab and the second and how can i get mail from the crontablog file.
View 1 Replies
View Related
Jun 6, 2010
I used crontab to set a file playing at a certain time, this works fine; however I want this to run even if no-one is logged in (but the computer is on). I can't get it to do this
Line is: 30 06 * * * env DISPLAY=:0.0 /usr/bin/totem /home/adunaic/Playlist.pls
Okay I think the problem was with needing a GUI.
Using this instead works, but i only hear the sound when I log in. I think something needs to be doen to start the audio perhaps?
14 17 * * * export DISPLAY=:0.0 && /usr/bin/mpg123 /home/adunaic/alarm.mp3
View 8 Replies
View Related
Jul 14, 2010
I want to append a text string onto an existing file from crontab. These do not work:
0 1 * * * cp "test" >> /home/xys/myfile.txt
0 1 * * * mv "test" >> /home/xys/myfile.txt
0 1 * * * cp 'test' >> /home/xys/myfile.txt
0 1 * * * mv 'test' >> /home/nys/myfile.txt
How can this be done?
View 9 Replies
View Related
May 30, 2010
The setup ( although dont trust anything I say ):
I'm working on an embedded system device using a NFS mounted rootfs ( as shared by my host ) , but I store large video content directly on the device's hdd in /data.
Device's hdd partition /dev/sda3 is ext3 fs mounted at /tmp/mnt/diska3 (rw), then I have a script create dirs like /tmp/mnt/diska3/data and /tmp/mnt/diska3/data/incoming, then symlink :
ln -s /tmp/mnt/diska3/data /data so that the /data appears like any other directory.
I can see /tmp/mnt/diska3/data/incoming. I did chmod -R a+w tmp to rule out permissions.
Running a subsequent script calls mkdir: mkdir -p /data/incoming/gui
BUT fails: mkdir: cannot create directory '/data/': No such file or directory
View 5 Replies
View Related