The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com



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

 
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #1 (permalink)  
Old 4 Weeks Ago
amcrisan amcrisan is offline
Registered User
  
 

Join Date: Nov 2009
Posts: 9
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
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 07:42 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0