Solved

Scheduling 2 cron jobs

Posted on 2006-06-19
8
1,315 Views
Last Modified: 2013-12-27
I am planning to schedule 2 cron jobs. one starting at around 9.00 PM and the other starting at 10 AM the next day on a solaris machine version 5.7, are there any limitations of cron job on this machine..
0
Comment
Question by:mahjag
  • 2
  • 2
8 Comments
 
LVL 38

Accepted Solution

by:
yuzh earned 43 total points
ID: 16939554
There is no problem if you are running the job as "root"

man crontab
to learn the details about the setup details.

If you are running it as a normal user, you need to as your sys adm to
set ip up for you.

or use "at" command to run it
man at
to learn more details.
0
 
LVL 3

Assisted Solution

by:anumalas
anumalas earned 41 total points
ID: 17029871
Hi

You can run as many jobs as you want at requried intervells. There is no limitation to run no.of jobs. you can add jobs by editing cron file.

Use crontab -e as a "root" user. There are 7 parameters you have to pass like at what time what day, month, year etc...

see corntab man pages and  add ur jobs to Cron.

Hope this will help :)

0
 
LVL 3

Expert Comment

by:anumalas
ID: 17059986
Hi

hope you have solved your problem :)
0
 
LVL 2

Assisted Solution

by:advega
advega earned 41 total points
ID: 17204681
The only limitation could be done only by root by 2 ways:
if he creates /etc/cron.d/cron.deny and adding there your login name, or
if he creates /etc/cron.d/cron.allow and NOT adding there your login name
or
if he disables de cron service and the cron daemon
i.e :
    root   272     1   0   Jul 21 ?           0:25 /usr/sbin/cron
is not running on your Solaris box.

as for how many jobs are scheduled, virtuallly there is no limit on the number of jobs or its number of recurrence ( see max_proc_per_user /etc/system )

hope this helps.
0
 
LVL 38

Expert Comment

by:yuzh
ID: 17557534
We have given the correct answer to the question, there is no problem for Solaris to run multiple cron jobs.

Split is ok for me.
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Attention: This article will no longer be maintained. If you have any questions, please feel free to mail me. jgh@FreeBSD.org Please see http://www.freebsd.org/doc/en_US.ISO8859-1/articles/freebsd-update-server/ for the updated article. It is avail…
Installing FreeBSD… FreeBSD is a darling of an operating system. The stability and usability make it a clear choice for servers and desktops (for the cunning). Savvy?  The Ports collection makes available every popular FOSS application and packag…
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.
In a previous video, we went over how to export a DynamoDB table into Amazon S3.  In this video, we show how to load the export from S3 into a DynamoDB table.

829 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question