Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Mailing Lists -> Oracle-L -> RE: Unix - copyscript
Put your * before the fileprefix variable.
Regards
Lee
-----Original Message-----
Sent: 10 January 2002 13:50
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: 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-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).
The information contained in this communication is
confidential, is intended only for the use of the recipient
named above, and may be legally privileged. If the reader
of this message is not the intended recipient, you are
hereby notified that any dissemination, distribution or
copying of this communication is strictly prohibited.
If you have received this communication in error, please
re-send this communication to the sender and delete the
original message or any copy of it from your computer
system.
--
Please see the official ORACLE-L FAQ: http://www.orafaq.com
--
Author: Robertson Lee - lerobe
INET: lerobe_at_acxiom.co.uk
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-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). Received on Thu Jan 10 2002 - 09:15:09 CST
![]() |
![]() |