Ubuntu :: Surpress Logging When Cron Job Runs?

Dec 24, 2010

I have a cron job that I'm running once per minute.don't want to have the /var/log/crond.log get updated 60 times per hour. How can I suppress the logging of the job?I've tried adding the following to the cron line but they just get logged right along with it!

Code:
*/1 * * * * /path/to/script > /dev/null
or

[code]....

View 1 Replies


ADVERTISEMENT

Ubuntu :: Cron Command: Runs From CLI, But Not Auto?

Mar 10, 2010

I have a script that is basically a series of rsync commands called bkup_all.sh. This script is located in the /root/ dir.From the command line (su'd as root), I can run the script like this:/root/bkup_all.sh > /var/log/bkup/bkup_$(date +%Y%m%d).logThis excecutes perfectly, and all the rsync adn script output is saved in a log file in the intended destination. However, I want this command to run automatically, so again, su'd as root I enter:crontab -ethen enter the following:00 02 * * * /root/bkup_all.sh > /var/log/bkup/bkup_$(date +%Y%m%d).logI want the script to run each night at 2:00am.But, the script does not run. There is no log file generated and I do not see anything in the syslog or system messages to indicate an error.

View 2 Replies View Related

General :: Cron Job Runs Every 30 Secs?

Jul 24, 2011

The problem is I need the php program to send member email confirmation which contains a confirm link. Run every min may still make the member wait. So I like to make it to run every 20 or 30 secs.

I don't want to put the code to send email on my sign up page as that's no good.

But I don't want to put a sleep 30 sec on my php script and going on loop. If it failed in the middle then it may wait abit to start.

What can be done to achieve my goal and what's the best way?

Making a php script to run as a daemon process? Is that possible and okay?

View 9 Replies View Related

Ubuntu :: Cron - Backup Runs To Have Incremental Number

Apr 3, 2010

I am trying to write as bash script in order to have backup done by cron on the webhosting server. I want all backup runs to have incremental number in front of them. I came up with an idea to store incremental number of a backup in txt file on a server so when next one runs is can check the number in the file. However I am having terrible issues. My script:

[code]....

View 7 Replies View Related

Ubuntu :: Cron Runs Shell Script - But Only First Line Of It?

May 18, 2010

I have a cron job that runs a shell script. But it only runs the first line of that shell script and not the rest of the file. I'm a little stumped as to why. If I run the shell script manually, it runs and executes every single line as it should. I think I must need some additional syntax to make this run correctly?

Here is the crontab ...

Code:
root@kchlinux:~/macs# crontab -l
# m h dom mon dow command

[code]....

View 2 Replies View Related

CentOS 5 :: Cron Job Runs At Incorrect Time - Clocks Seem Ok

Mar 9, 2010

Within a VMWare ESX virtual machine, I am running CentOS 5.2. (Actually, it is kind of a virtual appliance to run CollabNet's Teamforge - which I have installed for a trial). I've been dabling with Linux for a year or so, but I know I have much to learn.

I'm attempting to run a cron job that runs a backup script at 11pm. It works great, but unfortunately it runs at 11:30 am.

I created the cron job using 'crontab -e', while logged in as root. My cron job line is : 0 23 * * 1,2,3,4,5 /etc/tjt_backup/collabnet_backup.sh

If I type 'date', I get the correct date/time in my timezone: Tue Mar 9 16:27:12 CST 2010

If I type 'clock', I also get the correct date/time: Tue 09 Mar 2010 04:26:57 PM CST -0.463330 seconds

(Although, it appears there is a little drift)

View 10 Replies View Related

Ubuntu :: Script Fails In Cron But Runs Fine In Regular Shell?

Jul 11, 2011

I have an Ubuntu server running Couch Potato, Sick Beard and Sabnzbdplus. Everything "works" pretty well in a sense that CP and SB push the NZB's to Sabnzbdplus, but Sab crashes regularly (haven't found the solution or the cause for this problem, so if you have some advice regarding that, it's welcome).To counter this problem (Sab crashing) I have a script written which checks if Sab is runnning and if it isn't start it:

Code:
bart@Pyro:~$ cat CheckSabRunning.sh
#!/bin/sh

[code]....

View 9 Replies View Related

Ubuntu :: How To Stop Logging Cron To Syslog

Mar 2, 2011

There was an useful discussion on "how to stop logging cron to syslog". The useful answer is to update the line targeting syslog in /etc/syslog.conf to say something like:

Code:
*.*;auth,authpriv.none,mail.none,cron.none -/var/log/syslog
the significant part being that cron.none means that cron will not log to syslog.

There was discussion about whether this was a good thing to do, but omitted to suggest that adding/ uncommenting the following line would mean that no information would be lost but that syslog would be less cluttered as a source of monitoring info:

Code:
cron.* -/var/log/cron.log

You've still got all your cron-related log items available in cron.log if and when you need them. To make the new /etc/syslog.conf lines effective you should also, with root privileges:

Code:
touch /var/log/cron.log
chown syslog:adm /var/log/cron.log
and restart syslog. In my case:

Code:
/etc/init.d/sysklogd restart

View 4 Replies View Related

Ubuntu :: Send Emails From Cron Without Logging Into An Account

Oct 4, 2010

I am looking to send emails from cron for backup information. However, all the programs I have found (mail, mutt) require the password in plain text. Does anyone know of a more secure method? In fact, if it is only sending, is there a way to do this without logging into an account? What is the simplest way, without making it check emails too?

View 3 Replies View Related

Ubuntu :: Launcher For Quake That Essentially Runs A Shell Scripts That Runs Quakespasm With Certain Options?

Oct 13, 2010

I have a launcher for Quake that essentially runs a shell scripts that runs quakespasm with certain options. Is there a way to add it to AWN?

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

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

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

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

Ubuntu :: Runs In Vm Fusion?

Jun 4, 2010

if anybody runs linux in vm fusion.

View 1 Replies View Related

General :: Ubuntu Runs At 50-60% CPU?

Jul 16, 2010

I installed Ubuntu Hardy Heron about six months ago, and it has gradually slowed down, and CPU utilization has crept up to the 50-60% range. The DEV folder contains a large number of similar files - TTY0 through TTYZF or PTYA0 through PTYZF. I suspect that something is not configured right, but, I don't know where to look.

I connect to the internet through a G4 Wireless Transceiver connected to my ethernet port on an IBM Think Center 8187.

View 6 Replies View Related

Ubuntu :: Web Browser Runs Very Slow

Jan 9, 2010

I've been having issues with my laptop. It's a Vostro 1700..My web browser runs very slow and every now and then the computer will become unresponsive. Sometimes it will not open application and will get: couldn't exe command GCACTOOL.I decided to go back to Windows XP to see if Ubuntu was the problem but it wasn't.I got error messages regarding the HD, soo I bought a new HD but the problem is still there.

View 6 Replies View Related

Ubuntu :: Flash Runs Root Only?

Apr 23, 2010

Installed Firefox, Installed flashplugin-nonfree using apt-get, run FF as root and flash plays ok. Run FF as user and no flash. It prompts to download plugins and then fails.

$sudo add-apt-repository ppa:mozillateam/firefox-stable
$sudo apt-get install firefox-3.6
$sudo apt-get install flashplugin-nonfree

View 5 Replies View Related

Ubuntu :: AMD CPU Runs At Less Than Half Speed?

Jun 9, 2010

I have a machine currently running Debian Lenny on which I would like to run Ubuntu for the driver support in its newer kernel. However, I did a test boot from the installation CD and it appears to be running at less than half its rated speed. This is the output from the Debian kernel:

brendand@kant:~$ uname -a
Linux kant 2.6.26-2-amd64 #1 SMP Wed May 12 18:03:14 UTC 2010 x86_64 GNU/Linux
brendand@kant:~$ cat /proc/cpuinfo
processor: 0

[Code].....

Maybe this is some sort of power save bug where the CPU speed is incorrectly scaled back. Has anyone else encountered this problem? Should I report it as a bug, and, if so, how do I do that?

View 6 Replies View Related

Ubuntu :: Xorg Uses 96% CPU When Rythmnbox Runs

Jun 23, 2010

When I start rythmnbox, Xorg goes up to 96-98% of CPU and stays there. It goes back down to below 10 when rbox is minimized or closed.

View 2 Replies View Related

Ubuntu :: Compiz No Longer Runs?

Jul 5, 2010

I have been running Lucid since it was in beta, and have never had any problems with Compiz. Now, all of a sudden it will not launch. If I try to run it from a terminal I get the following:

Code:
compiz (core) - Fatal: Software rendering detected.
compiz (core) - Error: Failed to manage screen: 0
compiz (core) - Fatal: No manageable screens found on display :0.0

Launching fallback window manager I am running an Intel 82915G/GV/910GL built in graphics controller, and when I run the compiz-check script everything checks out fine.

View 4 Replies View Related

Ubuntu :: Laptop Fan Runs Continuously?

Nov 18, 2010

I have an IBM ThinkPad T43 on which I run Ubuntu 10.10. Everything works fairly smoothly except that I notice my laptop fan runs continuously. When I turn on the machine it revs up until boot-up is complete, then it shuts off for a few minutes, and then it comes back on and never turns off until I'm through working.Is this strictly a hardware problem, or is there something about Linux that causes the computer to run hot and so causes the fan to work hard? Is there a setting that I could check to see if the fan is working properly? I don't use any exotic programs or run video intensive games, so there's no reason why the computer should run especially hot

View 1 Replies View Related

Ubuntu :: 1.5 Ghz Processor And 512mb Ram Runs Well?

Jan 18, 2011

i am buying a cheap computer for my dad, it will be used for movies, web and maybe some 2d gaming. i wanted to know if a 1.5 ghz processor and 512mb ram runs ubuntu well. i know about xubuntu etc but was after installing full fat gnome ubuntu for him.

View 2 Replies View Related

Ubuntu :: Fsck Runs With Every Boot

Apr 20, 2011

i have the same issue but with a real install, not a vmware.every reboot fsck says that my main partition was not cleanly unmounted and check is forced.during shutdown the ubuntu does not show messages in a clear way but in random places. however, i am able to see the "/ is busy" message 1 second before reboot/off.my distribution is 10.10 upgraded from 9.10, 10.04

View 2 Replies View Related

Ubuntu :: Runs Slow After Update?

Jul 18, 2011

I installed ubuntu 10.04 and then updated my system with gui, now it's running slow like a second or two sometimes for apps to respond? wonder if anyone can tell me what's up?

View 8 Replies View Related

Ubuntu :: Compiz Only Runs If Start It Gradually ?

Feb 24, 2010

A botched ATI proprietary driver upgrade caused a cascade of problems. I've installed this driver many times before, but this time something just went wrong. I may have made a mistake. There don't seem to be many complaints about the ATI 10.2 driver so this seems likely. Anyway things were quite unstable for a while. I had problems with nautilus (lost the desktop) and segfaults from compiz. I had to reinstall a lot of stuff etc etc.

Anyway, this episode has left me with a strange lingering malaise. I can get the machine into a state where everything works perfectly - the cube is fine and quite snappy, the desktop is all there; it looks great; New driver seems to be working OK. But when I log out and log back in there are problems.

Step 1:If compiz is the window manager during login it dies killing the nautilus desktop and leaving me without a window manager running (no window decorations). This is a nasty state to be in because you can't easily get at a terminal (yeah ctl alt F1 - but how to fix the window manager from there). I've got a keyboard shortcut for metacity which lets me recover from this state. But afterwards I can't get the desktop back.

If metacity is the window manager during login - no problem. I've got a desktop. It starts up fine. Everything looks good. But I'm running metacity and I want to run compiz. So now we try to get compiz running.

Step 2: If I enter "compiz -- replace" in a terminal compiz segfaults and doesn't put metacity back leaving me without a window manager again. Just before it segfaults it complains about not finding some expected graphics files. This seems to have something to do with cube caps [Edit=Not - see later]- but I've restored defaults there so ... Fortunately ctrl C gets me out of that and back to metacity. Or I use my shortcut. But gee whiz no compiz.

OK - here is where it gets interesting. If I go to the compiz settings manager and disable the cube, then compiz --replace works just fine. So it looks like something specific to the cube. This lets me get compiz running but without the cube.

Now things get really interesting. Once compiz is running, if I open the compiz settings manager, then I can enable the cube and in fact ... it works!

To sum up, I now have to go through the following procedure every time I log in.

1. Login in with metacity as default window manager
2. Disable the cube in compiz settings manager
3. Start compiz with compiz --replace
4. Enable the cube in compiz settings manager.

After doing that everything works fine ... at least until I log out.

The fact that I can get everything to work indicates that I've got the driver installed OK and it is working. But why should I have to go through this bizarre procedure each time I log in?

Notes:
1. The problem afflicts all users - so it probably isn't a user config file issue.
2. I've reinstalled compiz and a whole lot of xwindows stuff. Didn't help.
3. I will try downgrading the video driver to the previous version as a last resort. But if the problem is something I broke while things were messed up, downgrading the driver may not fix it.
4. I'll post the crash message compiz generates in a followup (I'll have to log out and back in to generate the crash so I can copy the message)

View 9 Replies View Related

Ubuntu :: Finding A Notepad That Runs In Terminal?

Apr 5, 2010

I,m looking for a notepad type that runs in terminal? i,e when I (ctlr alt f1) I have terminal can you run a notepad within that, or is there a way to type something then be able to save etc

View 9 Replies View Related

Ubuntu :: DC Power - Runs At Very Slow Speed

May 25, 2010

I have a HP nx7400 laptop. Now I have a docking station DC power adapter - Works Fine. Ordered another DC so i could travel with it, but when used ubuntu runs at a very slow speed.

View 3 Replies View Related







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