bash trick - prefixing a command?
Tony Nelson
tonynelson at georgeanelson.com
Tue Oct 25 18:07:06 UTC 2005
At 1:00 PM -0400 10/25/05, Dr. Michael J. Chudobiak wrote:
>I want to do some shell trickery so that when a user enters a command like:
>
>ls -l
>
>the command is forwarded to another program as an argument. That is,
>what actually gets executed is:
>
>myprog "ls -l"
>
>Is there a way to do that? Basically I want to use bash as transparent
>front end for another program (actually a command parser for some custom
>hardware), while keeping the handy editing and history abilities of bash.
...
You said "when a user enters a command". Do you mean "bash" or "the
terminal program that they type in" (gnome-terminal, usually)?
Gnome-terminal has useful options.
____________________________________________________________________
TonyN.:' <mailto:tonynelson at georgeanelson.com>
' <http://www.georgeanelson.com/>
More information about the users
mailing list