![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| cron cannot create the file. | surekha268 | UNIX for Advanced & Expert Users | 2 | 09-02-2008 02:36 AM |
| cron cannot create the file.. | surekha268 | Shell Programming and Scripting | 0 | 09-02-2008 01:45 AM |
| create a chmod cron job help please | sirj | Shell Programming and Scripting | 2 | 04-19-2008 08:03 AM |
| How to create a cron job and run in quality system | mahantysk | HP-UX | 2 | 03-26-2008 02:23 AM |
| How to create cron job automatically? | siegfried | Shell Programming and Scripting | 0 | 04-26-2006 01:01 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
Re : How to create this cron job?
Hello All,
Hope this finds you well. I am creating this shell script that will create cron jobs in crontab file. What I am provided with is the start time , intervals and # of trials. Based of Start time ( say 7:15 am ) and interval being 15 minutes, # of trial being 5 , I should create cron job with following time ... 07:15 07:30 07:45 08:00 08:15 now I would create cron job for this time requirement as ... 15,30,45,00 07,08 * * * command..... But above would also run command at 07:00 , 08:30, 08:45 ....which is not required. I am using Bourne Shell (sh) . Would appreciate your help in this regards. Let me know if I missed on some. Thanks, Sam |
|
||||
|
Quote:
So besides spliting them into 2 lines, there is not other solution ....is this correct ? Thanks, Sam |
|
||||
|
Quote:
Code:
15 7 * * * * my_startscript.sh Code:
#!/bin/sh echo "/my/app -options" | at now echo "/my/app -options" | at now + 15 minutes echo "/my/app -options" | at now + 30 minutes echo "/my/app -options" | at now + 45 minutes exit 0 I hope this helps. bakunin |
![]() |
| Bookmarks |
| Tags |
| cron job, crontab, shell script, shell scripting, unix scripting, unix scripting basics |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|