Operating System - OpenVMS
1829752 Members
1608 Online
109992 Solutions
New Discussion

How to transfer directories through an automated ftp job

 
Becke
Super Advisor

How to transfer directories through an automated ftp job

Hi everyone,

I have written a korn shell automated script which only transfer files, but how do I transfer all the subdirectories in the filesystem.

Any help would be greatly appreciated. Below is my script.
#!/usr/bin/ksh
cd /FILESYSTEM_NAME
USER=root
PASS=1234
MACHINE=hostname
FTP=/usr/bin/ftp
$FTP -n $MACHINE </dev/null 2>$1
user $USER $PASS
ascii
cd /FILESYSTEM_NAME
mput *

The above script works fine, but what do i need to do in the script so it transfer all the files in the subdirectories of /FILESYSTEM_NAME. Please advise.
1 REPLY 1
Karl Rohwedder
Honored Contributor

Re: How to transfer directories through an automated ftp job

May be you question is better suited for the HP-UX or Tru64 forum?

This is the OpenVMS forum...

regards Kalle