Hi!
I've found script in this forum about using ftp script to transfer file from UX server to NT server.I have modify it to my needs,but have problems to transfer file when using stars in file.(AS******.ASN) Pls.note that I have to use it like that,because file to transfer is changing everyday and has different name.Can somebody help me?Pls.see script below.....
#!/bin/ksh
# ftp server/login info
FTP_HOST=edi
FTP_USER=3700
FTP_PASSWD=3700
# local directory
LOCAL_DIR=/IN/03700
# remote directory
REMOTE_DIR=/home/xfer/out/03380
# file
XMT_FILE=AS******.ASN
# command
COMMAND=put #put or get
ftp -n $FTP_HOST<<END_SCRIPT
quote USER $FTP_USER
quote PASS $FTP_PASSWD
$COMMAND $REMOTE_DIR/$XMT_FILE $LOCAL_DIR/$XMT_FILE
quit
END_SCRIPT
I've found script in this forum about using ftp script to transfer file from UX server to NT server.I have modify it to my needs,but have problems to transfer file when using stars in file.(AS******.ASN) Pls.note that I have to use it like that,because file to transfer is changing everyday and has different name.Can somebody help me?Pls.see script below.....
#!/bin/ksh
# ftp server/login info
FTP_HOST=edi
FTP_USER=3700
FTP_PASSWD=3700
# local directory
LOCAL_DIR=/IN/03700
# remote directory
REMOTE_DIR=/home/xfer/out/03380
# file
XMT_FILE=AS******.ASN
# command
COMMAND=put #put or get
ftp -n $FTP_HOST<<END_SCRIPT
quote USER $FTP_USER
quote PASS $FTP_PASSWD
$COMMAND $REMOTE_DIR/$XMT_FILE $LOCAL_DIR/$XMT_FILE
quit
END_SCRIPT