Change "mget $fileprefix*" to "mget *$fileprefix" - Kirti
-----Original Message----- Sent: Thursday, January 10, 2002 7:50 AM To: Multiple recipients of list ORACLE-L Hallo, Can anyone tell me why I get this errormessage when I run this script. I know that there are files in the directory prod/sas/data/bilbo/indata Files that exists in that directory are for example customer.txt, cars.txt. I want to copy those files. But it doesnt sem to find them. The error message at the bottom when i run the script says the following line: .txt*: No such file or directory: No such file or directory. What is wrong? How can I correct this script? #!/sbin/bash -x dato=`date +%m%d%H%M` fromdir=/prod/sas/data/bilbo/indata todir=/d31/appl/konto/tmp logg=/d31/appl/konto/tmp/filecopy$$.log ftpadr=10.100.10.145 ftpuser=bboadmin ftppw=bboadmin fileprefix=.txt echo "`basename $0` startet : `date`" | tee -a $logg #--------------------------------------------------------------------- echo "Overforer filer : `date`" | tee -a $logg (echo "open $ftpadr" echo "user $ftpuser $ftppw" echo "cd $fromdir" echo "lcd $todir" echo "mget $fileprefix*" #echo "mdelete $fileprefix*" echo "bye") | ftp -n -i Thanks in advance Roland -- Please see the official ORACLE-L FAQ: http://www.orafaq.com -- Author: INET: [EMAIL PROTECTED] Fat City Network Services -- (858) 538-5051 FAX: (858) 538-5051 San Diego, California -- Public Internet access / Mailing Lists -------------------------------------------------------------------- To REMOVE yourself from this mailing list, send an E-Mail message to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing). -- Please see the official ORACLE-L FAQ: http://www.orafaq.com -- Author: Deshpande, Kirti INET: [EMAIL PROTECTED] Fat City Network Services -- (858) 538-5051 FAX: (858) 538-5051 San Diego, California -- Public Internet access / Mailing Lists -------------------------------------------------------------------- To REMOVE yourself from this mailing list, send an E-Mail message to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing).