Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Mailing Lists -> Oracle-L -> Unix - copyscript
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 "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: Roland.Skoldblom_at_ica.se 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: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-LReceived on Thu Jan 10 2002 - 08:36:17 CST
(or the name of mailing list you want to be removed from). You may
also send the HELP command for other information (like subscribing).