HPE Community read-only access December 15, 2018
This is a maintenance upgrade. You will be able to read articles and posts, but not post or reply.
Hours:
Dec 15, 4:00 am to 10:00 am UTC
Dec 14, 10:00 pm CST to Dec 15, 4:00 am CST
Dec 14, 8:00 pm PST to Dec 15, 2:00 am PST
Operating System - OpenVMS
cancel
Showing results for 
Search instead for 
Did you mean: 

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
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