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


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

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 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 :: 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 :: Hangs For 1-2 Secs While In Use?

May 12, 2011

i installed ubuntu 11.04 on my new desktop recently. however the system hangs for 1-2 secs while in use. this problem occurs about once every 30secs. i have re-installed the os twice now but the problem is not getting resolved. the mouse and kb stop working and the problem is driving me nuts.

View 3 Replies View Related

Server :: IP-Config: No Response After 60 Secs?

Apr 18, 2011

I have followed this guide [URL] to setup a diskless cluster based on ubuntu server. Every thing is fine in the boot process except this:

After the client boots vmlinuz and init.rd, I see some information and after a minute I see:

Code:
IP-Config: no response after 60 secs - giving up
/init: .: line 3: can't open /tmp/net-eth0.conf
kernel panic - not syncing: Attempted to kill init!

It is strange since it gets an ip address when it want to boot. I don't know what is wrong with it.

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

OpenSUSE Hardware :: 11.3 - USB Keyboard Error (Cannot Type For Few Secs)

Sep 13, 2010

I am using an external USB keyboard to my laptop. Suddenly (after using this keyboard for 6 months), some randomly times I need to press the button 6-7 times before something appears on screen. This happens randomly, I may be able to type a whole paragraph without problem, and suddenly I can't type anymore for few seconds. My system is opensuse 11.3 and it happened last friday 9/10 ( if it is related to any update). I tested the keyboard to another pc and it is working. I tested another keyboard to my laptop and I still have the same problem.

View 1 Replies View Related

Ubuntu :: Desktop Freezes For 30 Secs When SD Card Plugged In

Jan 22, 2010

I am attempting to copy files to a 1GB SD card using my built-in SD card reader on my notebook computer. This function worked great on Hardy Heron. However, I switched to Karmic Koala about a week ago. Upon insertion of the SD card, the entire desktop (including mouse cursor) will freeze for about 30 seconds. Then, the SD card apparently mounts with an icon showing on the desktop. I can then open Nautilus and view the files and folders on the card. When I attempt to copy a file over to the SD card, the transaction looks as though it completes because the file icon shows up. However, Nautilus suddenly unmounts the card. When I check the file, I find that only half or less has copied over the the SD card.

View 3 Replies View Related

Ubuntu :: Voip Call Cuts In 25 Secs Through Netgear Router?

Aug 16, 2010

I have a Compaq Presario V2000 running Ubuntu 10.04. I use voip to call international mobile numbers. I'm currently using a Netgear router (at a friend's place) and now, my calls cut in 25 seconds. The call time keeps running, but neither can hear each other after 25 seconds. I've tried using service providers like Actionvoip and Jumblo (as they are cheaper than Skype) and clients like Ekiga and Twinkle. Same It happens on both Wi-Fi and ethernet. There is enough credit I tried using my friends Dell Latitude running Windows 7 with my Jumblo account. Surprisingly, it worked perfect!Previously I used a D-Link router and it worked flawlessly with my system.I fail to understand if it is some settings issue or a bug with Netgear's firmware. If anyone else has come across this issue and has been successful in getting around it

View 1 Replies View Related

Ubuntu :: Blinking Cursor For 12 Secs Before Login Screen Appears

Oct 20, 2010

I installed Ubuntu 10.10 alongside my Windows 7 os in a dual boot config. I used an installation disk and allowed the ubuntu installer to do all the resizing of partitions, installing of grub, etc. The install is working great and I haven't needed to boot my windows os since which is great. The only complaint I have is that it takes it takes a bit longer to boot than windows did for some reason. The culprit is a blinking cursor that comes up and remains for about 12-15 seconds before the grub menu appears. I already altered the boot option for the grub menu so that ubuntu is default and the option to select another os only appears for 3 seconds but I don't think this is related since the delay occurs before those options appear. I'm not really sure what is causing the delay. Is it looking for the loader? If so, is there a way to edit the configuration so doesn't have to search? As I mentioned, the install is running great otherwise.

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

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

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

Debian Multimedia :: Lock Screen Turns Off Display After 15 Secs In Gnome3.14-18

May 15, 2015

I am using gnome-shell (3.14.4-1) desktop environment and i have a problem that i can not find any config to solve it, Lock screen turn off and on again display every 15 seconds with out any reasonable reason !!!!

(Same in ubuntu : [URL] ...)

View 5 Replies View Related

Debian Hardware :: USB Serial Adapter Spontaneously Emitting Data Every 20 Secs

Jul 13, 2015

I tried connecting my Debian laptop to a vintage Apple //e using a Super Serial Card on the Apple side and a USB to serial adapter on the laptop side. It kind of works -- I can send data over to the Apple using e.g. echo "foobar" > /dev/ttyUSB0 or via minicom --, but every 20 seconds (quite exactly!) some 4 random characters appear on the Apple's screen (mostly tildes, sometimes a pipe). This does *not* happen when booting the laptop into Debian rescue mode; so I guess it must be some (daemon?) process messing around with the usb serial device in regular intervals.

I tried to disable quite some services, but the problem remains.I don't have any clue how I might catch the evil-doer in the act -- virtually all serial monitors I've so far read about allow only monitoring the interaction of a known program/process with a serial port. But in this case I first have to actually find out which process is talking to the serial port in the first place.

View 4 Replies View Related

Ubuntu :: Set The Grub Startup Manager's Time To 0 Secs And Windows Xp As The Default OS

Jun 7, 2011

I accidentally set the grub startup manager's time to 0 secs and windows xp as the default OS. (I have windows xp and ubuntu on this laptop.)

Now when I turn on or restart my computer, it boots up straight to windows, I can no longer access the grub boot selection screen or my ubuntu OS.

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

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

OpenSUSE :: Wrote A Script To Make Machine Suspend For 30 Secs And Then Wakeup Automatically?

Mar 17, 2010

#!/bin/bash
echo 0 > /sys/class/rtc/rtc0/wakealarm
echo `date '+%s' -d '+ 30 seconds'` > /sys/class/rtc/rtc0/wakealarm

[code]....

View 3 Replies View Related

Ubuntu :: Letters In Brackets In Bookmarks In Opera - Not Visible - Shut-down In 60 Secs Message

Jan 24, 2010

The letters in brackets in bookmarks in Opera? and how can i delete them because they are not visible in manage bookmarks?

Also how can i get rid of the "Shut-down in 60 secs" message when i shut it down? Or at least can i alter the time till shutdown? Ubuntu 9.10 64 bit by the way

View 3 Replies View Related

General :: Name Of Memory Filesystem Runs In?

Feb 7, 2011

Once I deleted a log file and recreated it. After I did so the new log file was not being written to. I was told that it is because the file I deleted is still running and being used in memory. What is the memory portion called(such as user space) that the filesystem run in?

View 5 Replies View Related

General :: Grep The .img, But When Do It Runs Out Of Memory?

Feb 22, 2010

I am attempting to recover a deleted text file. I used dd to make an image of the sectors on the hard drive which contained the data. Now, since I am not getting good results with foremost, and know all of the lines I'm looking for contain "Style", I want to grep the .img, but when I do it runs out of memory. I have tried the grep option -D, set to skip, and tried adding a 3GB swap to account for the 2.7G image. It still "exhausts" it's memory, and it seems to happen really quick now.this is the output of ulimit -a

Code:
root: $ ulimit -a
core file size (blocks, -c) 0

[code]....

View 12 Replies View Related

General :: Why Is Vim Not Remembering Position In File Between Runs?

Dec 3, 2010

I'm using vim 7.2.330 on 64 bit ubuntu 10.04, sometime in the last week every time I reopen a file it places the cursor at the top of the file. I can see in ~/.viminfo where it's saving the last position used, but it doesn't seem to be honoring it.

View 1 Replies View Related

General :: Diary Program That Runs In The Terminal?

May 1, 2011

Is there a diary program for Linux that runs in the terminal?

View 1 Replies View Related







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