FTP prompt

Thread Tools Search this Thread
Top Forums Shell Programming and Scripting FTP prompt
# 1  
Old 04-04-2011
Tools FTP prompt


I am connectin to a remote server using:
ftp -n -i <server>
user <username> <password>
lcd ~/YAFFA

after i execute lcd command ther is a prompt:
"Local directory now /home/YAFFA"

How can is make it disappear?

Moderator's Comments:
Mod Comment Please use [code] and [/code] tags when posting code, data or logs etc. to preserve formatting and enhance readability, thanks.

Last edited by zaxxon; 04-04-2011 at 08:46 AM.. Reason: code tags
# 2  
Old 04-04-2011
Check if your ftp client has a switch for being less talkative maybe. Else I guess you'll have to rewrite the ftp client Smilie In an output (log) file you could just do a
grep -v "Local directory now" logfile

Or switch to scp/sftp. scp will be much less talkative and sftp you'll have to test.
This User Gave Thanks to zaxxon For This Post:
# 3  
Old 04-04-2011
Originally Posted by LiorAmitai
"Local directory now /home/YAFFA"

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.

I hope this helps.

This User Gave Thanks to bakunin For This Post:
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Solaris

Unable to move from rsc prompt to ok prompt

Hi, on sunfire v890 unable to move from rsc prompt to ok prompt, i have executed the command break. (9 Replies)
Discussion started by: manoj.solaris
9 Replies

2. UNIX for Dummies Questions & Answers

How to Change the % prompt to - prompt in UNIX?

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)
Discussion started by: manjiri sawant
2 Replies

3. Shell Programming and Scripting

[Solved] Prompt problem while using mget to ftp

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)
Discussion started by: shashidhar
0 Replies

4. HP-UX

[Solved] Unable to rename file in ftp server .Net:FTP perl

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)
Discussion started by: krsnadasa
2 Replies

5. UNIX for Dummies Questions & Answers

FTP that works correctly in command prompt and shows issue in UNIX server

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)
Discussion started by: vijayalakshmi.r
1 Replies

6. Linux

Lock User in home directory in ftp prompt

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)
Discussion started by: kallol
4 Replies

7. Shell Programming and Scripting

How to list files in FTP prompt pagewise in solaris?

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)
Discussion started by: rakesh_noronha
2 Replies

8. Shell Programming and Scripting

Automated FTP script using .netrc to multiple FTP servers

Hi all, I'm using the following script to automated ftp files to 1 ftp servers host= /usr/bin/ftp -vi >> $bkplog 2>&1 <<ftp open $host bin cd ${directory} put $files quit ftp and the .netrc file contain machine login abc... (4 Replies)
Discussion started by: varu0612
4 Replies

9. UNIX for Advanced & Expert Users

Using FTP to check whether file is completely FTP... plz find the description below

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)
Discussion started by: nmsrao
1 Replies

10. UNIX for Advanced & Expert Users

FTP Prompt Error

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)
Discussion started by: adurga
1 Replies
Login or Register to Ask a Question

Featured Tech Videos