Cron tab script with parameters


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Cron tab script with parameters
# 1  
Old 11-10-2011
Cron tab script with parameters

hi,

In a cron tab, can the command to be executed contain parametrs for the script too?

E.g:
Code:
******* ./script.sh file fil2 > /dev/null

Is the above valid one?

Thanks

Moderator's Comments:
Mod Comment You have 37 posts - you should know how and when to use code tags. You got a PM with instructions.

Last edited by zaxxon; 11-10-2011 at 03:24 AM.. Reason: code tags
# 2  
Old 11-10-2011
Why dont you try for yourself?
I can already say it may not work...
Now you tell me why!
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Cron tab time generation script

Hi folks, Everyone knows about crontab, what i am looking for a script where i will define hour,minute and day and it will generate crontab complete time entry, i have seen many website generating crontab entry and my question is that is there any shell script that can do same work. 20 09... (4 Replies)
Discussion started by: learnbash
4 Replies

2. Shell Programming and Scripting

Shell Script runs good manually but not through Cron tab

Hello Every one, I have a shell script which is running fine manually, but its giving me hard time when running tru cron job. :wall:. Am using #!/usr/bin/ksh >echo $SHELL /usr/bin/ksh Cron Job is as below, it execues but dosent do what i want it to do. 47 15 * * *... (1 Reply)
Discussion started by: naren.chowdhary
1 Replies

3. Programming

error in running script in cron tab

Hi I am running the following script in cron tab: #!/usr/local/bin/php <?php $handle=fopen('xmlfile.xml',"w"); $xmlfile= file_get_contents('http://diur-plus.2me.co.il/xml.aspx'); fwrite($handle,$xmlfile); fclose($handle); /* * To change this template, choose Tools |... (1 Reply)
Discussion started by: programAngel
1 Replies

4. Shell Programming and Scripting

problem with the cron tab.

Hi, I have a cron tab file , which executes a particular script in a scheduled time and creates a output file. Since the cron tab file was created by the root , there is no access permission( for the output files) for other users irrespective of the default directory permission on which the... (5 Replies)
Discussion started by: BalajiUthira
5 Replies

5. Shell Programming and Scripting

Cron tab

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

6. Shell Programming and Scripting

Cron tab query

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

7. UNIX for Dummies Questions & Answers

Cron Tab help

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

8. Solaris

cron tab setting

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

9. Shell Programming and Scripting

Cron tab help need

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

10. UNIX for Dummies Questions & Answers

Cron Tab problem

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
Login or Register to Ask a Question