The short (and probably unsatisfying) answer is: you can't - at least you can't using a standard ftp client. There might be more powerful ftp-clients out there, but using them will make your solution dependant on these and hence less portable.
You could use a different protocol with better clients as zaxxon already mentioned which would have the additional advantage of avoiding the quite unreliable and intrinsically unsecure ftp-protocol. I'd recomment scp because it uses SSL and you don't have to write passwords in plain text to the disk (neither you don't have to use them over the network). What's more it is even easier to use in scripts too.
Hi,
We are facing this problem in live environment. We send some set of files at the End of Business day. Clients have chosen FTP mode for this.
Of around 50 files we send, for two files we are getting below error in our log files.
Write:
Read:
Read:
Timed out polling FTP process for... (1 Reply)
Hi,
We have some clients who will place huge files in to one of the remote server.
And the shell script written in our local server to retrieve client files (using FTP) placed on one of the remote server of ours by clients.
My question Is there any FTP command/script to check from my local... (1 Reply)
Hi all,
I'm using the following script to automated ftp files to 1 ftp servers
host=192.168.0.1
/usr/bin/ftp -vi >> $bkplog 2>&1 <<ftp
open $host
bin
cd ${directory}
put $files
quit
ftp
and the .netrc file contain
machine 192.168.0.1
login abc... (4 Replies)
Hi,
I have a solaris system with only ftp access.Need to get the list of files page wise display..
Also would like to redirect output of "ls" command to a text file in same directory.
Can anyone suggest me the sollution for this?
Rakesh (2 Replies)
Hi,
I am using Red Hat Enterprise Linux ES release 4 (Nahant Update 5). Here I have created one user with /sbin/nologin shll such that login is not possible only ftp is possible. But I want to do another thing that the user can not roam around after ftp.
I had tried one way.
in... (4 Replies)
Hi All,
FTP ports opens with the given user name and password and allows to download file through COMMAND PROMPT. Code as below:
H:\>ftp ftpxxxxx
Connected to entvc2ft07-pub.xxxxx.com.
220 Microsoft FTP Service
User (entvc2ft07-pub.xxxxx.com:(none)): userxxxxx
331 User name okay, need... (1 Reply)
Hello All,
I am trying to connect to ftp server and get the files. Also i need to rename the file in other ftp dir.
rename method is not allowing me to rename the file in other dir. When i tried copy command by using net::FTP:FILE then perl says it is not installed.
Can some body help me to... (2 Replies)
I am writing a scritp in which first step is to get some files from a server.
I am using mget to do that.
here is my FTP code ...
HOST="XXX.XXX.com"
28 ftp -inv $HOST <<END &> $FTP_LOG
29 quote USER $USER
30 quote PASS $PASWD
31 cd log
32 prompt off
33 binary
34 mget... (0 Replies)
how to Change the % prompt to - prompt in unix
:wall:
---------- Post updated at 07:40 AM ---------- Previous update was at 07:38 AM ----------
How To display the last modification time of any file in unix
---------- Post updated at 07:40 AM ---------- Previous update was at 07:40 AM... (2 Replies)