![]() |
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| High Level Programming Post questions about C, C++, Java, SQL, and other programming languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Deleting lines inside a file without opening the file | toms | Shell Programming and Scripting | 3 | 09-24-2007 08:58 AM |
| Making Changes without opening file | irehman | Shell Programming and Scripting | 9 | 03-16-2006 10:13 AM |
| delete file without opening vi | lweegp | UNIX for Dummies Questions & Answers | 7 | 01-25-2006 02:23 PM |
| opening a file | hiei | UNIX for Dummies Questions & Answers | 4 | 04-01-2004 01:24 AM |
| File Opening in C++ in Unix Env | skannan | High Level Programming | 0 | 06-15-2002 09:10 AM |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
Opening a file during FTP
I need to process a file in real time as it is being FTPed from a remote server. In my test environment, I wrote a process that would:
1) Open the file - fopen(filename, "r") 2) Go to the offset where I left off on the previous itteration (fseek) 3) Read 2K blocks and append each block to a second file till there isn't 2K of data to read (fread) 4) Close the file, sleep(3) and repeat. In my development environment, this works like a charm. But when I move my process over to the production environment, I get ETXTBSY (Text file busy) on the fopen. Anyone have any suggestions on what could be causing the difference? |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|