Answer» 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 <user $USER $PASSWD binary lcd aaaa$GRABDATE cd xx/xx/xx prompt mget *$NOW*.zip bye SCRIPT
then you should check with your sysadmin whether they have done something to your account or the server to restrict your execution of the script.uh..
|