![]() |
|
|
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 |
| file moving based on file content | melvyn.cochrane | Shell Programming and Scripting | 12 | 02-15-2008 06:10 AM |
| How can I tell when an SFTP has finished copying a file? | goodmis | UNIX for Advanced & Expert Users | 3 | 02-04-2007 12:53 AM |
| Using Public key in Shell scirpt | LochanM | Shell Programming and Scripting | 1 | 07-11-2006 09:33 AM |
| Perl scirpt for automatic file transfer | sveera | Shell Programming and Scripting | 8 | 08-19-2005 03:39 PM |
| moving a file? | Holistic | UNIX for Dummies Questions & Answers | 1 | 02-20-2003 07:47 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
Scirpt moving file before it is finished writing
I have a very simple script that uses FTP mv command to move a file from my AIX box to a network server. Is there any flag or something that I can use to ensure that the file is not being written to when the move command goes to move it? I have it set up in cron so it triggers to run automatically and it appears to occasionally move the file while it is being written to so the data is incomplete. Any suggestions would be appreciated.
|
|
||||
|
The process which writes into the file can create one more trigger file once it is done with writing data, your ftp job can check for the trigger file, if you find the trigger file it means the file is ready for ftp.... is this works out for you ?
|
|
|||||
|
Quote:
|
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|