"rcp" from client to server

MCCALL,DON (HP-USA,ex1) don_mccall at hp.com
Tue Apr 24 15:41:29 GMT 2001


Hi Don,
Nope, smbclient IS what you're looking for - read the man page on it.  you
can find it in the samba/bin subdirectory; and it will allow a ftplike get
from a windows share to a local (on your samba server) linux directory.  For
instance if the nt client was named fishlips, and the share was named data,
and the file is named something.txt, to pull it over into your linux
directory /tmp, you would use the command:

smbclient \\\\fishlips\\data <password> -U <valid user on fishlips> -c "get
something.txt /tmp/something.txt"

Hope this helps,
Don

-----Original Message-----
From: Don Hargroves [mailto:dhargrov at tds.net]
Sent: Monday, April 23, 2001 11:35 PM
To: Samba mail list
Subject: "rcp" from client to server


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


-- 
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba




More information about the samba mailing list