[BusyBox-cvs] [BusyBox 0000026]: poor man's "scriptable" telnet

bugs at busybox.net bugs at busybox.net
Sun Jul 31 22:34:47 UTC 2005


The following issue has been CLOSED 
====================================================================== 
http://busybox.net/bugs/view.php?id=26 
====================================================================== 
Reported By:                pgf
Assigned To:                BusyBox
====================================================================== 
Project:                    BusyBox
Issue ID:                   26
Category:                   Standards Compliance
Reproducibility:            always
Severity:                   trivial
Priority:                   normal
Status:                     closed
Resolution:                 fixed
Fixed in Version:           
====================================================================== 
Date Submitted:             01-17-2005 18:02 PST
Last Modified:              07-31-2005 15:34 PDT
====================================================================== 
Summary:                    poor man's "scriptable" telnet
Description: 
with most telnet programs you can do something like this:

    (
     sleep 2
     echo username
     sleep 2
     echo somepassword
     sleep 2
     echo date
     sleep 2
    ) | telnet somehost > session.log

there's no error checking, and no synchronization.  but for a quick and
dirty solution it can be handy.  

this doesn't work in busybox because busybox telnet exits if stdio is not
a terminal.  the following patch (only quickly tested) makes this work.


====================================================================== 

---------------------------------------------------------------------- 
 pgf - 07-20-05 12:55  
---------------------------------------------------------------------- 
Committed revision 10886. 

Issue History 
Date Modified   Username       Field                    Change               
====================================================================== 
01-17-05 18:02  pgf            New Issue                                    
01-17-05 18:02  pgf            File Added: scriptable_telnet.pat                
   
03-16-05 12:26  andersen       Assigned To              andersen => BusyBox 
07-20-05 12:55  pgf            Status                   assigned => resolved
07-20-05 12:55  pgf            Resolution               open => fixed       
07-20-05 12:55  pgf            Note Added: 0000329                          
07-31-05 15:34  vapier         Status                   resolved => closed  
======================================================================




More information about the busybox-cvs mailing list