BusyBox Bug and Patch Tracking
BusyBox
  

Viewing Issue Simple Details Jump to Notes ] View Advanced ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0000026 [BusyBox] Standards Compliance trivial always 01-17-05 18:02 07-31-05 15:34
Reporter pgf View Status public  
Assigned To BusyBox
Priority normal Resolution fixed  
Status closed   Product Version 1.00
Summary 0000026: 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.

Additional Information it's clear that there are better tools for this job -- both expect and nc are probably more suited. but expect is probably too big for an embedded system, and nc isn't always configured. and this is a pretty cheap fix.
Attached Files  scriptable_telnet.pat [^] (1,068 bytes) 01-17-05 18:02

- Relationships

- Notes
(0000329)
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


Copyright © 2000 - 2006 Mantis Group
Powered by Mantis Bugtracker