Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Mailing Lists -> Oracle-L -> Unix - copyscript

Unix - copyscript

From: <Roland.Skoldblom_at_ica.se>
Date: Thu, 10 Jan 2002 06:36:17 -0800
Message-ID: <F001.003EC2C7.20020110055026@fatcity.com>

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).
Received on Thu Jan 10 2002 - 08:36:17 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US