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


ADVERTISEMENT

Software :: Script Not Running Via Crontab, Run's Fine Manually?

Feb 8, 2010

Yes I have tried exporting my paths and variables aab still will not run my script. 'm sure I am doing something wrong.I have a shell script which runs a jar file. This is not working correctly. After reading around I have read this is commonly due to incorrect paths due to cron running via it's own shell instance and therefore does not have the same preferences setup as my profile does.here is what my script looks like today after several modifications:

Code:
#!/bin/bash --
. /root/.bash_profile

[code]...

View 10 Replies View Related

General :: Script Don't Execute Itself Using Crontab Although It Works Manually?

May 26, 2010

One of my script don't execute itself using crontab although it works manually.

=> /var/log/cron
/var/log/cron show these 2 lignes at sheduled time
May 26 09:59:01 COMPUTER crond[26439]: (root) CMD (/usr/local/bin/script)

[code]....

View 6 Replies View Related

General :: Crontab Does Not Run All Lines Of A Script, But Manually It Works Perfect?

May 23, 2011

I use crontab to execute a bash script every minute and the output is redirected to a log file.In that bash script there is a screen command to start a screen session.When I execute the script manually it works perfect, but with crontab, the screen command is not executed, but the echo's are. Because they are written in the log file...Here's my script:Script removed for violation of LQ Ruleso the script runs perfect when I do it manually, but not with cron...Here's my crontab (sudo crontab -e)

# m h dom mon dow command
*/1 * * * * sudo /home/laurent/Games/Cod4/StartCod4.sh | egrep 'running|started' >> /home/laurent/Games/Cod4/Serverlog.log

View 7 Replies View Related

Fedora Servers :: Crontab Backup Job Works / But Gives Chown / Chgrp Errors

Jul 3, 2010

As root, I use crontab to run mirrordir to backup directories. Everything gets copied over properly, but owner information isn't preserved and root is the owner of all the backed up files. I can deal with that, but crontab reports tons and tons of chown/chgrp errors for mirrordir every time I do back ups--which is every day--and the multiple emails to root of thousands of chown/chgrp errors is very annoying. The error is "Operation not permitted," but that doesn't make sense to me because the job runs as root (right?) and clearly the job is permitted to create the backup files, so why would it fail to chown and chgrp?

I've had the exact same setup on another server for years, and crontab has always run mirrordir without error. Any suggestions how to clear the errors on my new server?

View 14 Replies View Related

Ubuntu Servers :: Setup Access Properly From A Public Address To A Monitoring Server That Works Fine Locally?

Apr 19, 2011

I've spent days trying to setup access properly from a public address to a monitoring server that works fine locally. Everything works from public access until I try to link to a CVS repository. The rancid CVS repository is set up as a separate server (virtualhost). It appears the referring link causes a DNS error (105: Server Not Found) when the CVS repository server is accessed from the public address. Things work fine when accessing via localhost.

Localhost link:

[URL]

Public link: (this results in 105 error caused by redirection (bold portion of link))

[URL]

Code:

Virtualhost config:
LoadModule jk_module /usr/lib/apache2/modules/mod_jk.so
JkWorkersFile /etc/apache2/workers.properties
JkLogFile /var/log/apache2/mod_jk.log

[code]....

View 2 Replies View Related

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

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

General :: Script Won't Run In Crontab.... Only Manually?

Mar 11, 2011

I want to start out by saying that I've search for this problem but none of those solutions where of any relevance to me/didn't work.I have this bash script I want to run in crontab that will check my /dev/md0 for failed devices (I dont want sendmail or postfix for this). The script won't run if not run manually. Does anyone see a problem with the script or crontab? Is it even possible?

Here's /etc/crontab:
0 12 * * * /bin/sh /checkRAID.sh
I have also tried

[code]....

View 7 Replies View Related

Software :: Manually Executing Entry In Nagios Checkcommands.cfg

Mar 10, 2011

First I don't know Nagios. I've been left with a fairly large(350 servers, 750 services) Nagios system installed. I've scraped and googled till I'm blue in the face. The Nagios folks have been less than helpful in that they tell me I need to figure it out myself. I've tried for four days to *figure it out myself*.

I have an entry in the checkcommands.cfg file:

# 'check_dns_external' command definition
define command{
command_name check_dns_external
command_line $USER1$/check_dns -H $HOSTNAME$ -t 60 -s 4.2.2.1 -a $HOSTADDRESS$
}

First, I don't understand what this command means and does. Next, I don't understand how to manually execute this command. I do know that the command in automatic mode has stopped working as Nagios tries to execute and I get an error message on the Service Status Types: Nagios alert page. The alert doesn't come with any regularity as to time of day or availability of resources. Apparently, this Nagios command is executing randomly. It is waking me up several times a night and several times a day as we page out alerts via email.

I'm lost. Aside from bouncing the entire Nagios stack, which is not possible right away as this is a Production system, is there any way to manually execute the offending line described above? Again, I've asked the Nagios folks and they have declined to answer.

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

Ubuntu :: Everything Works Fine Until After Reboot?

Mar 30, 2011

Basically i set up a webserver using this tutorial but installed ubuntu 10.10 [URL]

im using charter cable and it has that ubee router. when i tried to set up the static ip the closest thing i saw was an option called static ip lease in which input my servers local address and mac address and checked enable. then i applied dmz to my servers local ip. after that i typed in my public ip and to my excitement it worked. so i began creating the website. i dont know if all that is relevant but just in case i didnt want to leave anything out. this is my first time with linux and servers and ive only been at it for about 5 days. anyways i made the website and everything was going good then i needed to reboot the server so i did. after reboot i logged into the server then went back to the other room where i worked on the server using putty from a pc and flashfxp and tried to navigate to the website in firefox. it didnt work. if i try to go to the website address from a computer on my network i get a problem loading page error from firefox and if im on a different network it shows my router page to login and configure. i dont understand how it was working then after reboot it all of a sudden doesnt.

o also i installed gnump3 today before reboot if that is important

View 1 Replies View Related

Programming :: Cmd Works In Bash, Not Crontab?

Jul 16, 2010

I want to write the date & time and a text string to a file from crontab.The following line works fine in the CL:echo $(/bin/date +"%F %T")" Some text" >> /home/me/foo.txtI installed in crontab and no text appears in the file that it is redirected to.The crontab entry looks like:* * * * * echo $(/bin/date +"%F %T")" Some text" >> /home/me/foo.txtTried a version to just write to stdout....* * * * * echo $(/bin/date +"%F %T")" Some text"No date, time or text appears at the command line

View 5 Replies View Related

Ubuntu Networking :: GRE 47 Not Received While It Works Fine On Xp?

Oct 5, 2010

This has been bugging me for quite a long time. I need to have a pptp connection to my university. I have tried to locate the error, but this has been a real trouble.

A little bit of history: My girlfriend had a laptop with M$ vista on it with a working PPTP connection. I had a laptop with Ubuntu, with which I couldn't get the PPTP working.

When my laptop crashed, I bought a new one on which I run a dual boot XP SP3 and Ubuntu. I also own a desktop (Dual M$ Win 7 / Ubuntu standard Karmic) and my girfriend also upgraded to Win 7.

Currently, the XP version is the only one on which I can get a connection. Both Ubuntu and the Win 7's give me a GRE proc 47 not received error. I know our router (a DAVOLINK DV2020) is notorious for not sending through GRE proc 47, but this either shouldn't be the case or it shouldn't matter, since I can make a perfect connection through the XP OS.

This is quite a handicap, since we both study at the university for which we require working VPN PPTP connections.

Settings:
Gateway: vpn-eur-pptp.eur.nl
Username: 123456ab@eur.nl
Password: password
Authentication: MSCHAP / MSCHAPv2

[Code].....

View 3 Replies View Related

OpenSUSE Wireless :: Network Works Fine On XP / Ubuntu / 11.1 But Not For 11.2

Mar 30, 2010

On my Acer netbook (AOA-150-1635) the wireless works fine with WinXP, Ubuntu, and used to work with Suse 11.1. I replaced the Suse 11.1 with a clean network install of Suse 11.2. I couldn't get the wireless to work and did another network install using the wireless. When the install was completed I could not get the wireless to work with Suse 11.2. When I run the "collectNWData.sh" it shows--

!!! CND0120E: Network card wlan0 has no IP address
wlan0 Interface doesn't support scanning : Network is down

[code].....

I looked up error CD0120E and changed the network devices setup to "traditional". The wireless "scan" picked up the routers and I added the encryption keys. Still no joy. I ran "collectNWData.sh" again and it said it is better to use the Network Manager.

!!! CND0180I: The system can't ping external IP address 195.135.220.3
!!! CND0150E: There might be a problem with the default gateway definition 10.1.1.1 on interface eth0

[code]....

Going back to Yast, Network Devices, I set Network Manager. The result is that it is back to the beginning with "collectNWData.sh" giving the original error.

View 9 Replies View Related

Ubuntu :: Compiz Works Fine In 9.04 / Doesn't Work In 9.10

Mar 18, 2010

I've got 9.04 and 9.10 both installed on the same machine. The /home directory is on a separate partition, so both OSes use the same /home.I can't get Compiz to work at all in 9.10, even though it's been perfectly fine in 9.04. Is there a backport of some sort that i should install?The fixes I've found all point to editing the xorg.conf file, but of course, Karmic doesn't have an xorg.conf file.I've tried reinstalling the Compiz files, reinstalled the open-source video drivers, installed/uninstalled fglrx drivers a few times, rebooted dozens of times.

View 8 Replies View Related

Ubuntu :: Use HDMI To Connect To Lcd TV It Works Fine In Windows7?

Nov 14, 2010

Though I had solved this but I was premature. Here are the details. When I use HDMI to connect to my lcd TV it works fine in Windows7. (I have dual partitions W7/Ubuntu),but when I boot into Ubuntu and use HDMI, nothing happens.

lori@lori-laptop:~$ aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: SB [HDA ATI SB], device 0: STAC92xx Analog [STAC92xx Analog]
Subdevices: 1/1
Subdevice #0: subdevice #0

[Code]...

also when I open the Gnome Alsa Mixer, under the HDMI tab, there is just a blank screen. I believe I have the latest Alsa releases.

View 4 Replies View Related

Ubuntu Security :: 10.04 With LDAP Cannot Login Through GDM But Works Fine With Su?

Nov 16, 2010

I have a working LDAP-server (I belive!!) I want my laptops to authenticate against the server, when they logon. That works fine as long as the network is present. But I also want the users to be able to log on, when the network is down. When I go to a terminal (without network) I can su to another LDAP-user.I can login via graphical login-screen with the network attached, but not when it is disconnected.

In a terminal id john gives me information about the user john.

My conf. files looks like this:
/etc/ldap.conf
host 172.16.0.138:389
ldap_version 3
bind_policy soft

[Code]...

View 1 Replies View Related

Ubuntu Networking :: Cannot Ping Windows By Name But IP Works Fine

Dec 3, 2010

My Windows machine can ping Ubuntu by name, but Ubuntu can only ping the Windows machine by using it's IP address. This was working fine in both directions until I purged Samba. After purging Samba, I couldn't ping in either direction unless I used the IP address. I did some reading and found that Samba provides NetBIOS functionality that allows the machines to resolve host names without a DNS. Since I'm not running a local DNS, I decided to reinstall Samba. Unfortunately, I've not been able to restore it to full working condition. I don't want to use hosts files as all the IP addresses are assigned automatically by DHCP. I want to be able to access the Windows machine by name.

View 9 Replies View Related

Ubuntu :: Rebooting Works Fine But Machine Won't Shutdown?

Dec 15, 2010

I have Ubuntu 10.10 installed for some time now and I don't boot my Win7 machine in weeks!I love how solid, robust it is... and also how good it looks.Love the features like Ubuntu One (use it a lot!) and the Software Center. I'm 95% converted and I would be 100% if it weren't for 2 issues:

1 - The machine won't shutdown. Rebooting works fine but shutdown it just hangs... Kinda sucks having to press the Power Off button every time...

2 - I'm on a laptop but it doesn't recognize my battery. All I get is a "electric ray" on the panel. Even if I remove AC power it still does the same... No charging information, nothing... I tried

Code:
sudo modprobe pmu_battery
on the terminal but is says that the module could not be found.

Everything else works terrific (better than Windows!) with this two exceptions...

View 9 Replies View Related

Ubuntu :: CellWriter Works Fine On 11.04 In Gnome But Not In Unity?

Jun 28, 2011

I have to report that I am unhappy with the idea of taking away Gnome. I use a tablet, thus I use CellWriter. CellWriter works fine on 11.04 in Gnome but not in Unity. Additionally, CellWriter uses a system tray icon, which doesn't exist in Unity. I don't like my destop experience in Unity. It doesn't agree with the way I interact with my computer.We have Ubuntu, Kubuntu, and Xubuntu. I would like to request that we fork a Unity distro and keep a Gnome desktop for users to choose.

View 9 Replies View Related

Server :: Crontab Fails But Command Line Works ?

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

Fedora :: Sound Distorted In F12 - Works Fine In F11

Nov 19, 2009

New build to F12. Sound was fine in F11. Now, massive distortion. I have tried every possible permutation of settings. With the main volume control in the top taskbar, there are two positions of level setting where the audio drops to a normal level and sounds OK but any application changing the level or starting to use the Pulseaudio changes the level and its loud and massively distorted again.

In the Pulseaudio manager->sink->alsaoutput.pci-0000-00-11.5.analog-stereo -> properties-> show volume meter, the audio is always maxed out in level. I have tried everything, its unworkable right now. Its possible to start alsamixer from terminal and adjust settings for good audio but any future change reverts to distortion. All changes in Pulseaudio Dev mgr or vol control etc change the audio as they should but do not affect the problem.

View 9 Replies View Related

OpenSUSE Hardware :: Everything Works Fine Except No Sound?

Jan 30, 2010

I just installed 11.2 kde desktop everything works fine except no sound when I play ..... and watch movie online worked with my audio and video files in my computer only

View 1 Replies View Related

OpenSUSE Hardware :: Second Screen Fails In 11.4 (but Works Just Fine In Ubuntu)

Apr 11, 2011

System:Tri-head, dual-card: GeForce 9500 GT, GeForce 8400 GS
Dual-boot: openSUSE 11.4, Ubuntu Natty
Driver: nvidia proprietary (260.19.44 in openSUSE, 270.30 in Ubuntu due to kernel version)
xorg.conf: same for both
Results: All three heads work just fine in Natty; secondary screen fails in openSUSE:

Code:
[25.164] (EE) NVIDIA(1): Failed to initialize the NVIDIA GPU at PCI:2:0:0. Please
[25.164] (EE) NVIDIA(1): check your system's kernel log for additional error
[25.164] (EE) NVIDIA(1): messages and refer to Chapter 8: Common Problems in the
[25.164] (EE) NVIDIA(1): README for additional information.
[25.164] (EE) NVIDIA(1): Failed to initialize the NVIDIA graphics device!
[25.164] (II) UnloadModule: "nvidia"
[25.164] (II) UnloadModule: "wfb"
[25.164] (II) UnloadModule: "fb"

But nothing is jumping out at me in the output of dmesg. I also don't see any additional system or kernel logs in /var/log. I'll google some more on that front. One other fun fact: nvidia-settings fails to run in openSUSE. Unless I launch it under gdb. Then it starts up and runs as expected. (And the second screen ain't there, as expected.) Here's (what I think are) the relevant items:
Xorg.0.log - Pastebin.com
dmesg - Pastebin.com
xorg.conf - Pastebin.com
Additional output available upon request.

View 6 Replies View Related

Ubuntu Multimedia :: Tv Tuner Card Works Fine In Windows7 But Not In It

May 18, 2010

Gateway desktop running Ubuntu LL 10.04(64 bit) with Asus/ViXS Combo-210E NTSC/ATSC TV Tuner card: link to card... [URL] Ubuntu lists the card when I do lshw in a terminal but it shows as 'unclaimed'. Is that important? Also what software is neccessary to watch tv? The card works fine in Windows7

View 6 Replies View Related

Ubuntu :: Stop Downloading From Transimission Connection Just Works Fine?

Oct 20, 2010

am using transimission to download torrents but when it start downloading i just can't browse anymore since my connection slows down, but when i stop downloading from transimission my connection just works fine.

View 2 Replies View Related

Ubuntu :: Web Page - The Java Works Fine - Sound Does Not Work

Oct 27, 2010

This web page....the Java works fine...the sound does not work. I am using Ubuntu !0.10...it worked in 10.04 but not now. [url]

View 9 Replies View Related

Ubuntu Multimedia :: Flash Works Fine In All Browsers Except SwitfoX?

Dec 7, 2010

i'm running 10.04 x64, with the latest versions of google chrome, chromium, opera, epiphany, firefox, and swiftfox.

strangely, flashplayer works fine in all of them except swiftfox, where it presents a garbled, unclickable video window (tested in videos).

all my other ff addons and plugins seem to work ok in swiftfox, so i assumed that swiftfox is just reading and using everything in ~/.mozilla, including flash. but perhaps not. anyone have any idea why ff's flashplayer doesn't work in swiftfox?

View 3 Replies View Related







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