![]() |
|
|
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 |
| Ignoring already copied files | nvandyke | UNIX for Dummies Questions & Answers | 0 | 04-30-2008 05:39 PM |
| monitoring files copied onto hard disk | abhi_abhijith | High Level Programming | 2 | 02-15-2006 10:51 AM |
| Script to check for a file, check for 2hrs. then quit | mmarsh | UNIX for Dummies Questions & Answers | 2 | 09-16-2005 03:46 PM |
| How to find File copied completely or else ... | videsh77 | UNIX for Dummies Questions & Answers | 2 | 07-07-2005 05:23 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
Or maybe more like Code:
set -- `ls -l "$file"` size=$5 while true; do sleep 60 set -- `ls -l "$file"` case $5 in $size) break;; esac size=$5 done This will loop until the size of the file stays the same for 60 seconds. (You will need to set the variable file to the name of the file you want to monitor, of course.) |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|