The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
Google UNIX.COM



Thread: FTP question
View Single Post in UNIX Forums - Click on the Thread or Permalink to View Entire Thread -->
  #1 (permalink)  
Old 01-29-2002
tzp2ft tzp2ft is offline
Registered User
 

Join Date: Jan 2002
Posts: 1
FTP question

Hi all,
I have a simple script that runs each night and transfers a number of files to a remote server. Before files are transferred existing files on the remote box are deleted. All works OK except the deletion part on the remote box returning no such file or directory. As work around Ihave seperate cron job that does the cleanup but would liketo resolve why delete does not work each though the DIr lists relevant files to the output file ftplog.

FTP parameter file

open remote_server
user username password
ascii
cd /location
dir Audit*.csv
delete /location/Audit*.csv
lcd /dev/scripts
put Audit*.csv
bye


calling script

ftp -vn <ftpfile >ftplog


Thanks in advance.

Sunos 5.6
Remove advertisements
!!
Forum Sponsor