![]() |
|
|
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 |
| how to run script? call other script? su to another user? make a cron? | instant000 | Shell Programming and Scripting | 15 | 2 Weeks Ago 05:01 PM |
| I/O timed out | etcpasswd | SUN Solaris | 5 | 08-12-2009 05:34 AM |
| Timed wait? | anjul_thegreat | High Level Programming | 4 | 06-29-2007 10:51 AM |
| in.timed log entries | hcclnoodles | SUN Solaris | 1 | 12-04-2006 01:40 PM |
| timed commands | rayne | UNIX for Dummies Questions & Answers | 2 | 11-10-2005 04:57 PM |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
How do I make a timed script
Hello,
I would like to make a script, ideally in perl since I am most familair with it, that does the following: automatically starts up at 9 pm, searches through a specified directory for any new files, finds those new files and starts to run them through a pipeline. I have most of it worked out, but here are somethings I am not sure how to do: 1) How do I make it start automatically at 9pm? I could put it sleep and tell it to wait for 9pm, but the truth is that sometimes, when a lot of new data comes, it realistically can take 24 hours or more to run an initial instance of script. I feel it might get confused if I just band-aid it with a sleep command, however if that's the only solution then that's what I will have to do. 2) How do I get time stamps for the files in the directory? Ideally I don't want to use to too many non-standard modules, because it can make it less portable since other users will also have to download all those modules to use my little scripts (assuming it works out, other people here would like to use it...). Thanks! |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|