Skip cron job for a few hours [closed] - linux

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this question
I was wondering if it was possible to tell cron to not execute any cron jobs for a couple hours ?

As shannonman mentioned, you can just stop the service and start it again when required.
Stop cron service
$ sudo /etc/init.d/cron stop
Start cron service
$ sudo /etc/init.d/cron start
Reference

Related

writing file periodically through windows service [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 9 years ago.
Improve this question
I was planning to use a windows service to write a file periodically with c# 4.0. Are there any other options to do this?
You could use a console application, and the Windows Task Scheduler to execute your application on a periodic schedule. This would allow you to change your schedule easily, after deployment.

I accidentally did ulimit -r1 and I want to go back to ulimit -r90+, how do I do this? [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this question
I then get that the hard limit has become 1..is there an easy way to "reset what i did"? This is a server I have logged onto via ssh.
Log out and log back in again.

Take too long time to connect to server through ssh if IP not specified in /etc/hosts [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 11 years ago.
Improve this question
My Ubuntu 10.10 computer is in an intranet. If I don't specify server's IP in /etc/hosts, it takes a long time to connect and sometimes fails.
Do you know why?
As root edit “/etc/ssh/sshd_config” and add the line “UseDNS no“.
executing the command
sudo echo "UseDNS no" >> /etc/ssh/sshd_config
This might help you if this is the reason for your slow connection issue.

How to install Cron on EC2 Instance [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 11 years ago.
Improve this question
Does Cron come preinstalled on the EC2 linux instances, or do I have to install it separately from yum or anything?
This depends completely on the instance you start from. Most if not all the ones I have used tend to have it, but if you are using one that doesn't have it, just install it ;-)

Linux "top": how to tell which process is what? [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 11 years ago.
Improve this question
I have several cron jobs (calling my PHP scripts via curl) in the background that are running. I'm trying to monitor their performance. Using top, I see a bunch of httpd commands -- but I have a feeling these do not represent the cron jobs (e.g. too many httpd exit for the cron tasks being called).
How can I know what the httpd processes are for sure? Are there any other tools I should be looking at to monitor my system?
What you want is to look in /proc/[pid]/status.
You can get a hierarchically overview about your running processes with ps efaux or pstree -A -p
Maybe that helps.

Resources