Return to Snippet

Revision: 16092
at July 28, 2009 07:20 by deepsoul


Updated Code
function rline () 
{ 
    socat READLINE EXEC:"$*",pty
}

# Usage example:
rline ncftp -u anonymous ftp.kernel.org

Revision: 16091
at July 26, 2009 16:11 by deepsoul


Initial Code
function rline () 
{ 
    socat READLINE EXEC:"$*",pty
}

Initial URL

                                

Initial Description
You can use socat (http://www.dest-unreach.org/socat/) to add readline editing and history capability to command shells which do not themselves support it.  Each command line will be edited in the plain, so beware of password prompts.  Commands are printed again as they are passed on.

Initial Title
Add readline editing and history capability to commandline interfaces

Initial Tags

                                

Initial Language
Bash