![]() |
|
|
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 |
| Shell or PERL Logic | maxmave | Shell Programming and Scripting | 1 | 06-04-2008 10:09 AM |
| Restart Script | chapmana | UNIX for Dummies Questions & Answers | 1 | 11-27-2006 11:21 AM |
| Query on a shell script logic | tipsy | Shell Programming and Scripting | 1 | 06-29-2006 06:38 PM |
| suspend/restart a process in shell script | daneensign | Shell Programming and Scripting | 1 | 02-14-2006 12:43 AM |
| How to restart a script from the top | indo1144 | Shell Programming and Scripting | 2 | 07-02-2002 08:40 AM |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
perl script - adding restart logic
Hi all
I have written a perl script which looks at one file and if new entry is made to that file then it runs some scripts depending upon the entry made to file( used File::Tail module ) . This script is running as “root” in nohup mode. Script works fine but I want to add restart logic. If scripts exits in between consider on line 15 and by the time I restart the script 5 more entries are added to file so 15-20 entries are never processed I don’t want that. I am thinking of writing last processed time in one file but I am not getting how can I process those 5 lines how can start tailing of file from line 15 and not 20. Or should I create dummy file? All suggestions are welcome. |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|