General :: Stop All Instances Of Cron?
Oct 28, 2010
I have a cron job that executes a rake task in rails. I noticed in the log that it was running the task 4 times everytime it was executed. The problem is that there are 4 instances of cron running.
I ran code...
So my question is how do I stop the other instances. When I run the stop command now I get this:
Stopping crond: cannot stop crond: crond is not running. [FAILED]
Any ideas? Do the other instances have different names? Is there a way to kill all instances as once?
View 2 Replies
ADVERTISEMENT
Jun 15, 2011
I have bees assigned a problem which states that :
sendmail-2: Wrong number of instances of process sendmail:, expected instances equal 1 but found 0
THats it...what exactly this means and how should i proceed for solving this problem...
View 1 Replies
View Related
Nov 18, 2010
Is it possible to set a cron to run for so long and then end it automatically?
View 4 Replies
View Related
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
Jan 23, 2011
I am using
# uname -rmi
2.6.18-194.26.1.el5PAE i686 i386
# cat /etc/*release*
cat: /etc/lsb-release.d: Is a directory
Red Hat Enterprise Linux Server release 5 (Tikanga)
CentOS release 5.5 (Final)
I have noticed that after few days of ideal system it will stop its network interface. To resolve this I have to login to the machine it self and then issue
# service network start
Is this a feature. If this is not a feature then what is this. As an workaround I am thinking of adding service network restart in cron tab for everyday in night when I am not using it.
View 6 Replies
View Related
Feb 23, 2011
In windows xp, i created another user account. Now i can run a second instance of any program by right clicking on it and selecting Run as. Is such a thing possible in linux (centos or ubuntu) in graphical environment ?
View 4 Replies
View Related
Mar 31, 2010
How can I have multiple independent instances of Mozilla Firefox 3.5 on the same X server, but started from different user accounts (consequently, different profiles)?
Limited success was only with Xephyr :1, DISPLAY=:1 /usr/local/bin/firefox, but Xephyr has no Cygwin/X's "rootless" mode so it's not comfortable (see other question).
The idea is to have one Firefox instance for various "Serious Business" things and the other for regular browsing with dozens of add-ons securely isolated.
View 2 Replies
View Related
May 4, 2010
On Windows If I run Firefox as user jack, and then try to start another instance of firefox I will be unable to, as one is already running.If I choose to run firefox as administrator,then I can have two instances of firefox, separate from each other side by side, because they are under different user accounts.This does not seem to be true on Linux.As user jack if I start firefox, like on windows I am unable to start a new instance.If I open a terminal and change to root, set XAUTHORITY to jacks .Xauthority and try to start firefox as root....I get the error that firefox is already running.
View 1 Replies
View Related
Jul 23, 2010
Okay, this issue is kinda difficult to understand without context: When we run Evince, it checks if there is any other instance running. If there is one, the evince command exits immediately, right after passing the parameter to the running instance If no other instance is running, a new one will be started, and the evince command will wait until this new instance exits. While that behavior is quite nice, it is not helpful for shell scripts. Why? Because I have a script that writes a temporary .ps file, calls a PS/PDF viewer, and automatically deletes the temporary .ps file after the viewer exits. Unfortunately, this script only works if evince was not previously running (if evince was running, then the file is deleted too fast).
I don't want to add extra complexity to this script. It should be kept simple, because I may want to replace evince with xpdf, gv, or anything else. I was expecting some kind of command-line parameter to evince (similar to -f to vim and gvim), but I fear there is no such option. Writing a wrapper script around evince might be a good solution, but this script should work correctly in all cases (if evince was running and if it wasn't).
View 1 Replies
View Related
Jun 22, 2011
I'm using Ubuntu 11.04. What command can I run that will shut down all Firefox instances?Here's what I get when I scan for processes with "firefox" included in them
Code:
$ ps -elf | grep firefox
0 R selenium 31849 1253 32 80 0 - 186593 - 14:08 ? 00:00:05 /usr/lib/firefox-4.0.1/firefox-bin -profile /tmp/customProfileDir85da96184657425da4ec1b05d75e7523
0 S selenium 31892 31849 0 80 0 - 53633 poll_s 14:08 ? 00:00:00 /usr/lib/firefox-4.0.1/plugin-container /var/lib/flashplugin-installer/npwrapper.libflashplayer.so -omnijar /usr/lib/firefox-4.0.1/omni.jar 31849 true plugin
View 3 Replies
View Related
Feb 1, 2010
I have a line of text with multiple web links in the line. I'd like to replace the actual links with the text "<web-link>" so I don't accidentally hit them while reading on my iphone. I've tried many versions of the following sed command, sed 's/(http.*)/<web_link>/g', but it simply replaces everything between the first instance of "(http" and the last instance of ")" with <web_link>, or does nothing at all.
Ex: This line has a link to a web page (http://www.webpage.com/file.html) then some more text (extra text) and then another link (http://www.nextwebpage.com.index.html) to a website.
$ echo "This line has a link to a web page (http://www.webpage.com/file.html) then some more text (extra text) and then another link (http://www.nextwebpage.com.index.html) to a website." | sed 's/(http.*)/<web_link>/g'
What I get is: This line has a link to a web page <web_link> to a website.
What I'd like is: This line has a link to a web page <web_link> then some more text (extra text) and then another link <web_link> to a website.
What am I doing wrong with my sed command?
View 4 Replies
View Related
Sep 20, 2010
I need to run multiple squid instances on my server , I am running squid version squid-2.7.STABLE5-1.el4 on RHEL 4.7 , kindly tell me how to do so. by the way , I need to run two instance because i need to configure my proxy to act as a reverse proxy and a forward proxy, and people told me that you cannot run a forward and reverse proxy on the same instance.
View 4 Replies
View Related
Apr 2, 2011
I have to run multiple instances of apache on the same physical machine, as we have different OAM policies for different domains.is in the httpd.conf file can I have ServerName same in two instances of apache, like
ServerName: prod_machine (actual machine name)
In the vhconf files I do have different servernames for virtual hosts. Apache instances are running on same IP but different ports. I am including various vhost files in the main httpd.conf file. Can I skip servername in the main httpd.conf file and include different servernames in the virutal hosts configs. OS: Solaris10
View 1 Replies
View Related
Feb 17, 2010
If i have, say, ..... tab opened and if a click on some of the related videos (while it's still playing) firefox terminates. The same if I open ..... on one tab and myspace on another - firefox just shuts down.
I want to know why this happens, is it a bug and how can i fix it ?
View 2 Replies
View Related
Sep 27, 2010
I have a machine with 8 cores. I have a directory of input files that I need to process using a non-parallelized program. I would like to write a script that works its way through a list of commands executing 8 commans (i.e., instances of this program; each with specific flags having to do with the current input file) until the list of commands has been exhausted. Is there an easy way to do this?
Code:
hamstrsearch_local-hmmer3.pl -protein -refspec=lotgi_2713 -hmmset=lophotrochozoa_hmmer3 -sequence_file=Aplysia_californica.fas -taxon=ACAL
View 3 Replies
View Related
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
Oct 11, 2010
whats the difference between restarting/stopping apache using 'service httpd restart/stop' and apachectl restart/stop. I know that using 'service httpd restart' is actually a script in /etc/init.d/httpd but what about apachectl?
View 1 Replies
View Related
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
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
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
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
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
Oct 28, 2009
I have a php script that checks versions of a remote stock file every 15 minutes. When it discovers that a new version is available it downloads the new file and runs it through a series of scripts that prepare it for an e-commerce application. It takes about an hour to import the file and process it. Otherwise, it echos "file on remote host not newer than local file". The stock file is updated every 3 or four hours and it's never at the same time. So we would like to run this script every 5, 10, or 15 minutes to make sure we have updated files.
So what happens when my php script finds a new file and takes an hour to do its work? Will the cron be activated three more times during this span? In other words, will it keep starting over even if its still running from a previous cron? Is there a way to stop the cron from running while the file download and processing occur, and then resume when its finished?
View 6 Replies
View Related
Mar 17, 2010
How can I run a scheduled job in a specific hour minute second (hh:mm:ss) I tried "at" but I do not know how to send it "seconds".
View 5 Replies
View Related
Jun 24, 2011
i want to run my cron every day at 4:30am
304***php /home/lfncltee/public_html/Center/all_in.php >/dev/null 2>&1
View 2 Replies
View Related
Feb 17, 2010
I'm trying to run a php script from a cronjob and can't seem to get it working.
When I run the script from the shell command prompt:
The scripts works fine
I then inserted a cron job using:
And inserted the following:
And nothing seems to happen.
I left off the -q and have a few echo commands within the script but I don't get an email of the output either.
View 3 Replies
View Related
Apr 6, 2010
I am trying to set up a script that uses SCP and will run via cron to go out 3 nights a week and pull down the zip files that are created of my website on my hosting server. I am having trouble setting up the SCP script that will automate this. I don't want to have to enter a password each time. I know this can be done with public/private keys but need help with the syntax. Below is an example of what I have.
scp -i /.ssh/authorized_keys.pub usernameremotehost:/public/backups/*.t.gz /public/backups/
View 3 Replies
View Related
Jan 9, 2011
I have a cron job to schedule the task on the third sunday of the month.I saw the previous threads but didn't find any solution.
How the cron syntax can be written.
View 14 Replies
View Related
Dec 8, 2010
I have two shell scripts, one has to run after the other has finished running.I know that in cron.monthly they run in alphabetical order, but does each one run after the other has completed, or is it possible that the first may still be processing when the second is run?
View 1 Replies
View Related
Mar 14, 2010
I know that Redhat have a log in /var/log/cron , I can check the cron job log here , I would like to ask where is the log in Debian ?
View 1 Replies
View Related