OT: using pscp to *move* files

Bill Akers billa at mgmindustries.com
Tue Jul 17 05:04:46 PDT 2007


Jay R. Ashworth wrote:

>I'm looking for the lightest-weight way to use pscp/sftp to *move*
>files from a Linux box to a Windows one.  We tried earlier to use
>Samba, and for unknown reasons, it didn't want to work properly.
>
>I was hoping to find a switch to pscp that said "after you copy the
>file, delete it", but it doesn't appear to have such a switch.
>
>Anyone got any ideas?
>
>(The context is random CSV files dropped out of a filePro invoicing
>app, one per invoice; I want the Windows guy to be able to pull them
>over from my drop directory and not get them twice.)
>
>Cheers,
>-- jra
>  
>
I simply set up a batch file on the windows 2000 computer and used the 
move command to "move" the files to a directory on that computer. Syntax 
such as: "move /y \\192.168.0.249\share\*.ext C:\movedir". This also 
deletes them from the Unix computer. Requires proper permissions on the 
Unix share, and has worked for 6 years on an SCO Unix installation using 
Visionfs. Samba and Visionfs work very much alike from my viewpoint. I 
scheduled the batch file to run every 10 minutes from 7AM to 7PM. .ext 
in the command line above is the extension. I don't know whether move 
will look at more than the standard 3 character dos extension method.


More information about the Filepro-list mailing list