Hi all,
I am a beginner in this stuff. i always telnet to this one server and then connect to ftp server to do downloading (server-client case). i usually running prepared script saved in ftp client. script is in .sh file (eg: script.sh). my Q is why suddently this error msg saying "permission denied" popped out when i tried to run the script as usual? Please help. thanks so much.
Anyway, my command line is sumthing like below:
telnet xxx.xxx.xxx.xxx
script.sh
and the script is sumthing like below:
#!/bin/ksh
USER='xxxx'
PASSWD='xxxx'
NOW=$(date '+%Y%m%d%H')
GRABDATE=$(date '+%Y%m%d')
YDAY=$(TZ=CST+24 date +%Y%m%d)
mkdir aaaa$GRABDATE
ftp -n xxx.xxx.xxx.xxx <<SCRIPT
user $USER $PASSWD
binary
lcd aaaa$GRABDATE
cd xx/xx/xx
prompt
mget *$NOW*.zip
bye
SCRIPT