Hash mark printing during ftp sessions
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Unix and Linux reviews > Free Unix support > Unix Programming > Hash mark printing during ftp sessions




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    Hash mark printing during ftp sessions  
Lie-Algebra


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
01-17-07 06:17 PM

Hi,

I have written a script which deals with ftp transfers, both upload and
download.

Here is the main part :

ftp -nv ${HOST} <<EOF > $FTPTMP 2>&1
user ${LOGIN} ${PASSWORD}
prompt
lcd ${LOCAL_DIR}
cd ${REMOTE_DIR}
binary
hash
$COMMAND
bye
EOF

Where FTPTMP is a file from which I can diagnose the ftp session...

In the interactive mode, the ftp command hash displays on the screen the
symbol "#", one per 1024 bytes transfered.

When using the script and the commands above, no "#" appears in the file
used for redirection.

Is hash mark printing use a specific output ?

My initial goal was to redirect exclusively the hash mark printing on
the screen without the rest because my script controls the whole display.


Thanks





[ Post a follow-up to this message ]



    Re: Hash mark printing during ftp sessions  
Robert Harris


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
01-18-07 12:28 AM

Lie-Algebra wrote:
> Hi,
>
> I have written a script which deals with ftp transfers, both upload and
> download.
>
> Here is the main part :
>
> ftp -nv ${HOST} <<EOF > $FTPTMP 2>&1
>     user ${LOGIN} ${PASSWORD}
>     prompt
>     lcd ${LOCAL_DIR}
>     cd ${REMOTE_DIR}
>     binary
>     hash
>     $COMMAND
>     bye
> EOF
>
> Where FTPTMP is a file from which I can diagnose the ftp session...
>
> In the interactive mode, the ftp command hash displays on the screen the
> symbol "#", one per 1024 bytes transfered.
>
> When using the script and the commands above, no "#" appears in the file
> used for redirection.
>
> Is hash mark printing use a specific output ?
>
> My initial goal was to redirect exclusively the hash mark printing on
> the screen without the rest because my script controls the whole display.
>
>
> Thanks

Presumably your standard output, which is line buffered when written to
a terminal, is block buffered when redirected to a file. So all your
hases will appear in the file at the end of your transfer.

Robert





[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 01:40 AM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register