"rcp" from client to server

Don Hargroves dhargrov at tds.net
Tue Apr 24 03:35:13 GMT 2001


I have samba running on both Linux Redhat 6.2 and Solaris. I need to
have a cron job on the Linux box wake up at about 2 minute intervals and
"rcp" files from a known location on several NT client boxes. It seems
to me that smbclient is something that runs on the client NOT the
server. I need to have the SERVER initiate the copy and bring some files
back to the server. In the (command line) cron job I would imagine
something like "rcp //clientmachine/share/*.type
//servermachine/share/*" where rcp is the mystery command, analogous to
smbclient. Ideally, I would like to delete the files on the client after
the copy is successful. Even better would be some way to know when the
client process has finished writing to the file (doesn't have it opened
for writing).

Thanks in advance
Don Hargroves





More information about the samba mailing list