Run the shell script for every 15 minutes?


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Run the shell script for every 15 minutes?
# 1  
Old 10-06-2010
Run the shell script for every 15 minutes?

I want to run my shell script for every 15 minutes starting from 12:20AM. I am passing parameter GA to shell script.

Does this work? Any one please comment on this?

20 0-23/15 * * * xyz.sh 'GA' > xyz.log 2>&1
# 2  
Old 10-06-2010
It depends on the platform, 23/15 will not work on standard UNIX...
# 3  
Old 10-06-2010
Syntax is not valid.

What Operating System are you using?
# 4  
Old 10-06-2010
Here is the os version...

Linux 2.6.18-128.7.1.el5
# 5  
Old 10-06-2010
Question Run for (??)

Please clarify the "for".
(a) your want the program to run for 15 minutes, or 900 seconds
or
(b) you want the script to run at 15 minute intervals; example 12:20, 12:35, 12:50, ...
# 6  
Old 10-06-2010
I want to run the script at the below schedule..

example 12:20, 12:35, 12:50, ... 23:50, 12:05
# 7  
Old 10-06-2010
Question why start at 12:20

It looks like you want it to run every 15 minutes, around the clock. So, why start at 12:20am with last execution at 12:05am (next day)?
Why not every :05, :20, :35, :50 ???
 
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Shell script run in a case statement call to run a php file, also Perl

Linux System having all Perl, Python, PHP (and Ruby) installed From a Shell script, can call a Perl, Python, PHP (or Ruby ?) file eg eg a Shell script run in a case statement call to run a php file, also Perl or/and Python file??? Like #!/usr/bin/bash .... .... case $INPUT_STRING... (1 Reply)
Discussion started by: hoyanet
1 Replies

2. Shell Programming and Scripting

Script Shell: Diplay date of two minutes (period)

Hi all, Here is my script: #!/bin/sh while :; do sleep 1 date done Please, how can i change this script, i'd like to display the time only of two minutes (period) and exit ? Is that possible ? Thank you so much for help. Bests... (3 Replies)
Discussion started by: chercheur111
3 Replies

3. Shell Programming and Scripting

Modify Sleeper script to run every 30 minutes

I would like to modify the below sleeper script to run every 30 minutes at the 29th and 59th minute of the hour. The below script is designed to run every 10 minutes and send an argument to the other script at a particular hour but i want it to run every 30 mins at the 29th and 59th minute of... (6 Replies)
Discussion started by: senormarquez
6 Replies

4. Shell Programming and Scripting

Run cronjob for every 10 minutes

Hi Friends, I have a requirement to run the cronjob for every 10 minutes from 2:00 AM to 6:00 AM. Does the below code works? If not, please advise. * * * * * command to be executed ┬ ┬ ┬ ┬ ┬ │ │ │ │ │ │ │ │ │ │ │ │ │ │ └---------------------------------- day of week (0 - 6) (0 is... (5 Replies)
Discussion started by: srikanthbiradar
5 Replies

5. Shell Programming and Scripting

Run a script continuously for 10 minutes

Hi all!! Im using ksh and my OS is Linux. I want to run a script for ten minutes, starting from my current system time. How to acheive this? Any help appreciated. Thanks in advance (5 Replies)
Discussion started by: Jayaraman
5 Replies

6. Shell Programming and Scripting

How to run a script everyday between 7 and 8 pm with the time interval of 5 minutes?

Hi, Can someone help me in running a cronjob everyday between 7 and 8 pm with the time interval of 5 minutes in between to repeat that script. The script is so small and I need that to run daily between this time. Please if possible provide me the syntax for this logic. Thanks. (4 Replies)
Discussion started by: cya
4 Replies

7. Shell Programming and Scripting

Script to run every 5 minutes

Hello all, I want to run a script every 5 minutes. How to accomplish this task? Thanks in advance Mrudula (12 Replies)
Discussion started by: mrudula009
12 Replies

8. Shell Programming and Scripting

Need help howto make a script for Set SNOOP run for 5 minutes

Hi all, I want to monitoring my interface every 6 hours where i want to run snoop command to capture all packet through the interface, so i want running snoop then snoop will run for 5 minutes after that snoop stop then will start again after 6 hours than run for 5 minutes again. thereis any... (9 Replies)
Discussion started by: tindasz
9 Replies

9. Shell Programming and Scripting

C Shell Script to convert a number into minutes

Could anyone tell me how to write a C shell script according to the following requirement. Write a C shell script convertmin which will read in a number, thought of as representing minutes, and print out the number of hours/minutes it represents so: Note: you are required to check exception... (1 Reply)
Discussion started by: Ringo
1 Replies
Login or Register to Ask a Question