03-10-2011
@vbe , thank you so much .. but adding a chmod line is not working fine . moreover if I am really not sure of the output file name created , how this method will be helpful.
@Zaxxon, things are not working fine , as you have mentioned. I did things as you mentioned, but again the files are created with priveleges for root only
balajiuthira
10 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
Hello:
If I want to run a crontab every hour between 9 am to 9pm, will this work
00 09-19 * * * /.../.../../program.sh
If the above does not work, what should it be ??
Thanks, ST2000 (4 Replies)
Discussion started by: ST2000
4 Replies
2. UNIX for Dummies Questions & Answers
I have a script that is being called from cron job .
This script further call 3 scripts which runs in the background .
main script ( called from cron )
{
script1 &
script2 &
script3 &
}
How to know when the main script is over ?? (3 Replies)
Discussion started by: rahul123_libra
3 Replies
3. Shell Programming and Scripting
need help to write crontab
my crontabe file every minute to rsh and check that it is running or not
i want to change it on every 1o minute please help me
example of my crontab
#check if system is running
* * * * * rsh metal3 /users/test/run.server
i want to check that every 10... (2 Replies)
Discussion started by: deepa20
2 Replies
4. Shell Programming and Scripting
I have a script for pinging the switches and giving me the report:-
#!/usr/local/bin/perl
#!/bin/ksh
#!/usr/bin
#etc
`source /export/home/chinnigd/.profile`;
@names = `cat switches|cut -f1 -d' '`;
@ip = `cat switches|cut -f2 -d' '`;
$num = @names;
$re ="Empty";
$i = 0;
$flag = 0;
while... (3 Replies)
Discussion started by: chinnigd
3 Replies
5. Solaris
hi guys , i need some help
i want to set cron job for every sunday , of each month so any body plz help or this proble :confused: (1 Reply)
Discussion started by: Kbharat20
1 Replies
6. UNIX for Dummies Questions & Answers
Hi All
I have a requirement to schedule my script through cron tab.
I have 2 scripts to schedule.
Case1:My script should run every day in the server.It should be triggered in every 2 mins interval.i.e suppose i implemented the script now my script should run every 2 mins.How can i... (6 Replies)
Discussion started by: dr46014
6 Replies
7. Shell Programming and Scripting
Hi All,
I am required to make a crontab entry, I have the below requirement:
1. It should execute at 06:15 12:00 and 18:30
2. It should execute every day of the month for all the 30 days
I am going to add the below entry in the crontab file.
15,0,30 6,12,18 * * 0-6 cd... (3 Replies)
Discussion started by: Shazin
3 Replies
8. Shell Programming and Scripting
Hi
In my Unix server more than 500 cron jobs are scheduled daily and weekly basics.
Now,I would like to know only list of JOBs,which are running only on 14th of every month?
How can i find only which are all jobs will be scheduled only on 14th.
Please tell me the script. (4 Replies)
Discussion started by: koti_rama
4 Replies
9. Shell Programming and Scripting
Hi,
We have a couple of jobs are scheduled in CRONTAB.
Now. I want generate a report for each job how many times ran successful and failed in a 1 month of time period.
is there any way to find in CRONTAB.
Please advise on this. (1 Reply)
Discussion started by: koti_rama
1 Replies
10. UNIX for Dummies Questions & Answers
Hi,
I need to install the crontab utility in Ubuntu.
Can any one one tell me what exactly is the steps to do it?
Thanks in Advanced (2 Replies)
Discussion started by: diehard
2 Replies
CRON(8) System Manager's Manual CRON(8)
NAME
cron - clock daemon
SYNOPSIS
auth/cron [-c]
DESCRIPTION
Cron executes commands at specified dates and times according to instructions in the files /cron/user/cron. It runs only on an authentica-
tion server. Option -c causes cron to create /cron/user and /cron/user/cron for the current user; it can be run from any Plan 9 machine.
Blank lines and lines beginning with # in these files are ignored. Entries are lines with fields
minute hour day month weekday host command
Command is a string, which may contain spaces, that is passed to an rc(1) running on host for execution. The first five fields are integer
patterns for
minute 0-59
hour 0-23
day of month 1-31
month of year 1-12
day of week 0-6; 0=Sunday
The syntax for these patterns is
time : '*'
| range
range : number
| number '-' number
| range ',' range
Each number must be in the appropriate range. Hyphens specify inclusive ranges of valid times; commas specify lists of valid time ranges.
To run the job, cron calls host and authenticates remote execution, equivalent to running rx host command (see con(1)). The user's profile
is run with $service set to rx.
Cron is not a reliable service. It skips commands if it cannot reach host within two minutes, or if the cron daemon is not running at the
appropriate time.
EXAMPLES
Here is the job that mails system news.
% cat /cron/upas/cron
# send system news
15 8-17, 21 *** helix /mail/lib/mailnews
%
SOURCE
/sys/src/cmd/auth/cron.c
SEE ALSO
con(1), rc(1)
CRON(8)