OT: using pscp to *move* files

Fairlight fairlite at fairlite.com
Mon Jul 16 12:11:28 PDT 2007


This public service announcement was brought to you by Jay Ashworth:
> 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 obvious?  If you have control enough to pscp the thing, you must have
control enough to del the thing.  Subsequent command.

What am I missing?  I mean, it's not on the same fs, so it's just as good
as an inter-fs 'mv' since the inode can't be shuffled there.  I'm not
seeing the drawback to deleting it after you pscp it.  If there's a good
reason, say so and I'll rethink it.

m->
-- 
No matter what your problems, modern medicine can help!
http://members.iglou.com/fairlite/fixital/


More information about the Filepro-list mailing list