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?
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.
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!
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:
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
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
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:
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.
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.
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.
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.
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
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.
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.)
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.
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 !!!!
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.
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.
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
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?
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
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.