Home » Infrastructure » Unix » FTP Script (Solaris 10 Sparc)
FTP Script [message #466221] Sun, 18 July 2010 03:12 Go to next message
masifahmed
Messages: 1
Registered: April 2009
Junior Member
Hi Experts,

I coping Binary files to NAS....through FTP script.
I want to put some conditions like if the file already exists so shouldn't be over write on it...how I can add this condition in FTP script.

Thanks in advance....!!!

FTP SCRIPT

LOCALDIR=/ora_temp/arch1
REMOTESERVER=192.0.0.120
REMOTEPATH=/Archivelog1
LOGIN=admin
PASSWORD=xyz
FTPLOG='/tmp/ftplog'
date >> $FTPLOG
cd $LOCALDIR
ftp -n -T 90000 $REMOTESERVER <<INPUT_END
quote user $LOGIN
quote pass $PASSWORD
cd $REMOTEPATH
prompt off
mput *.dbf
exit
INPUT_END
Re: FTP Script [message #466222 is a reply to message #466221] Sun, 18 July 2010 03:39 Go to previous message
Michel Cadot
Messages: 68624
Registered: March 2007
Location: Nanterre, France, http://...
Senior Member
Account Moderator
This question bears no real connection with Oracle.
Please find a more appropriate forum.
The topic is locked.
If I'm wrong, please, PM me (or report this message to a moderator, explain why you think it should be unlocked and it might be done).

Regards
Michel
Previous Topic: extproc and multiple database instances
Next Topic: Problem in FTP script with lcd command
Goto Forum:
  


Current Time: Thu Mar 28 07:40:50 CDT 2024