![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
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 |
| Monitor open file handles used by a process | jakSun8 | Shell Programming and Scripting | 3 | 07-15-2008 10:25 AM |
| getting error 0403-016 Cannot find or open the file while reading a long line | karthee | Shell Programming and Scripting | 2 | 06-05-2005 12:00 AM |
| Max No of Open File Descriptors in a process | lakshmankumar12 | UNIX for Advanced & Expert Users | 2 | 12-29-2004 11:54 PM |
| Reading a process control block | hmurali | High Level Programming | 2 | 06-03-2002 01:53 AM |
| transfer an open file description between two process | xu_wen_dong | High Level Programming | 1 | 01-17-2002 03:00 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
Reading a file that is already open by another process
hi,
I'm using HP unix tru64 & Win XP. i'm download a file from winxp to unix using ftp. how to know whether a remote file is currently being used by the process or not? (my loaction unix server) |
|
||||
|
i have try explain below:
1. application1 create A1 file and write some text to A1 file. application1 running windows server 2. application2 download A1 file from windows server to unix server. application2 running unix server problem is application1 writing text to A1 file(not finish) and this time try download application2 file A1. application2 did download not complete A1 file. |
|
|||||
|
Ah ok, understood. We solved such issues usually by sending an ok-flag file, just an empty file, with some special name, that you check on the UNIX side and if it arrived as 2nd file, you know that the 1st file (your datafile) has completely arrived. At least if no error occured.
Don't forget to remove the ok-flag file when everything is done, so the next ftp can come ^^ |
|
|||||
|
Nope:
1. ftp data file windows -> unix 2. after that ftp empty ok-file windows -> unix 3. check if ok file has been received on unix which signals that the data file transfer has already been made 4. start your processing of the data file ok? ![]() |
|
||||
|
sorry, i don't understand.
what's mean "empty ok-file" ? |
| Sponsored Links | ||
|
|
![]() |
| Bookmarks |
| Tags |
| unix download |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|