in reply to select, stat, and waiting for files

To go along with the previous idea, before starting to scp'ing your file, touch a filename.size file which only contains the size of the file you are about to scp. That way, your server could look at the size file and figure out if the actual file is completely there.
  • Comment on Re: select, stat, and waiting for files

Replies are listed 'Best First'.
Re^2: select, stat, and waiting for files
by gargle (Chaplain) on Sep 12, 2005 at 12:59 UTC

    Or even better, if you're going to do it like that: scp the file and at the end ssh and touch a filename.ok. When filename.ok shows up you know that the first file has been send already.

    Or, scp the file and log the scp session in a seperate file. Then, scp this second file. When the second file arrives you know the first one has arrived. Later on you can check the contents of the seperate file to look for transfer errors.

    --
    if ( 1 ) { $postman->ring() for (1..2); }