Solved

Scheduling 2 cron jobs

Posted on 2006-06-19
8
1,318 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Hello fellow BSD lovers, I've created a patch process for patching openjdk6 for BSD (FreeBSD specifically), although I tried to keep all BSD versions in mind when creating my patch. Welcome to OpenJDK6 on BSD First let me start with a little …
Why Shell Scripting? Shell scripting is a powerful method of accessing UNIX systems and it is very flexible. Shell scripts are required when we want to execute a sequence of commands in Unix flavored operating systems. “Shell” is the command line i…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
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.

737 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