Operating System - HP-UX
1753816 Members
8568 Online
108805 Solutions
New Discussion юеВ

only use shell script to ftp directories and files

 
Catherine_3
Occasional Advisor

only use shell script to ftp directories and files

I have the same question with Shawn,
but I just want to use unix shell script
so how to do that

I am looking for a script which can do:

Working on the unix server side, ftp directories and files from window NT first, and make the same directories with window NT on the server side at the same time.

Your reply will be really appreciated.

Catherine



2 REPLIES 2
A. Clay Stephenson
Acclaimed Contributor

Re: only use shell script to ftp directories and files

Hi:

If you simply use the 'Search' button and enter 'FTP and script' and select a Boolean search; you will find many examples in the Forums.
If it ain't broke, I can fix that.
Ron Kinner
Honored Contributor

Re: only use shell script to ftp directories and files

Think the trick is to use
tar cBf junk .
then ftp to the host and put junk where you want it to start then !tar xBf junk

Never tried it but looks like it should work tho not sure you need the B. The "." after the tar cbf junk is part of the command.

Simpler with rsh if you have that option. See
http://www.nevis.columbia.edu/cgi-bin/man.sh?man=1+tar

Ron