Thanks,
Rodgers Hemer
206.523.2329
r.h...@w-link.net
>I will be transferring files from a Windows server to a SCO server and want
>to create a single transfer file. I don't believe that I can do that in
>the interactive mode, and there are too large a number of files to fit them
>all onto one command line. Can anyone tell me if the file names can be
>put into a text file and have the command line use the text file as the
>source of the file names to be transferred? If the text file can be used
>in this manner, what is the exact syntax to be used?
You could use the zip command to pack multiple files into a
single file on *nix machines, and I presume that there are
similar capabilities available under the Microsoft virus,
Windows. ``zip -r foo foo'' would put everything under directory
foo into foo.zip.
Another thing I have done on *nix boxes that support CIFS (Samba)
mounts is to set the Windows machine to share the ``drive'' with
the data I want to transfer then use smbmount to mount it on the
*nix system, then use normal tools like cp, cpio, or rsync to do
the copy to the *nix system. While rsync is available for
Windows, sharing the Windows drive does not require any software
support on Windows, just its normal network sharing support.
Bill
--
INTERNET: bi...@celestial.com Bill Campbell; Celestial Software LLC
URL: http://www.celestial.com/ PO Box 820; 6641 E. Mercer Way
Voice: (206) 236-1676 Mercer Island, WA 98040-0820
Fax: (206) 232-9186 Skype: jwccsllc (206) 855-5792
Basic Definitions of Science:
If it's green or wiggles, it's biology.
If it stinks, it's chemistry.
If it doesn't work, it's physics.
There are many ways to do this. One way is to make a tar "archive" file.
you'll need a copy of tar for Windows to archive the files. I use the
tar from http://unxutils.sourceforge.net/ but many others exist.
c:
cd \sourcefolder
tar cvf transfer.tar thisfolder otherfolder
Will create an archive in transfer.tar of all the files and
subdirectories within both c:\sourcefolder\thisfolder and
c:\sourcefolder\otherfolder. You can add whatever other directories you
need to the end of the command. You don't need to list files individually.
If you really want to include files using a text file containing
filenames, use tar's -I option
tar cvf transfer.tar -I filenames.txt
After transferring the archive file to Unix (for which I'd use FTP)
cd /destination
tar xvf /path/to/transfer.tar
Which will extract the files into /destination/thisfolder and
/destination/otherfolder
--
RGB