[Novalug] trying to learn how to pass a command to launched terminal
Bonnie Dalzell
bdalzell@qis.net
Thu Jan 10 22:36:54 EST 2013
On Fri, 11 Jan 2013, Mark Smith wrote:
> i use gnome-terminal and i do it like this:
>
> gnome-terminal --command 'bash -c "echo hello world; sleep 100"'
>
> using back-ticks is almost certainly not what you want. for instance,
> i just ran this and it works for me:
>
> gnome-terminal --command '/usr/bin/less /etc/issue'
>
ok now
terminator --command '/usr/bin/less /etc/issue'
works from a terminal to open another terminal with the version of
Ubuntu displayed - so step one is proven!
so what the next step is - is to have a menu item that gives me the
Xubuntu version from the menu item. Well I had to make terminator the
preferred option in
Applications>Settings>PeferredApplications>Utilities > Terminal Emulator
but them when I made a menu item with MainMenu>New Item> and put
terminator --command '/usr/bin/less /etc/issue'
in the command box
and checked "Run" in terminal
I got the working menu item I wanted
Thanks a lot for the help!
Sometimes things are pretty complicated with so many variables
> is that what you want, or do you want to be able to pass an arbitrary
> command to an existing window opened for the sole purpose of running
> arbitrary commands?
>
>
> On Thu, Jan 10, 2013 at 09:41:38PM -0500, Bonnie Dalzell wrote:
>>
>> what i want to do is launch a terminal and run a command in that terminal
>> from another terminal
>>
>> exo-open --launch TerminalEmulator
>>
>> will open a new terminal
>>
>> however i want to run a command within the new terminal and have the
>> terminal remain open to display the result of the command
>>
>> the command returns the version of Ubuntu
>>
>> cat /etc/issue
>>
>> i have spent a lot of time on google but I do not seem to be able to ask
>> the questioon correctly
>>
>> I cannot figure out how to pass the command to the terminal
>>
>> exo-open --launch TerminalEmulator `cat \/etc\/issue`
>>
>> for example this version above gives me an error "Failed to execute child
>> process "Ubuntu" (No such file or directory)"
>>
>> I am using the xfce-desktop and 12.04 Xubuntu
>>
>> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>> Bonnie Dalzell, MA
>> mail:PO box 9767 Baldwin, MD, USA 21013 | EMAIL:bdalzell@qis.net
>> shipping address:5100 Hydes Rd 21082 (Hydes Post Office closed Jan 2012)
>> Freelance anatomist, vertebrate paleontologist, writer, illustrator, dog
>> breeder, computer nerd & iconoclast... Borzoi info at www.borzois.com.
>> HOME www.batw.net ART bdalzellart.batw.net BUSINESS www.boardingatwedge.com
>>
>> _______________________________________________
>> Novalug mailing list
>> Novalug@calypso.tux.org
>> http://calypso.tux.org/mailman/listinfo/novalug
>
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Bonnie Dalzell, MA
mail:PO box 9767 Baldwin, MD, USA 21013 | EMAIL:bdalzell@qis.net
shipping address:5100 Hydes Rd 21082 (Hydes Post Office closed Jan 2012)
Freelance anatomist, vertebrate paleontologist, writer, illustrator, dog
breeder, computer nerd & iconoclast... Borzoi info at www.borzois.com.
HOME www.batw.net ART bdalzellart.batw.net BUSINESS www.boardingatwedge.com
More information about the Novalug
mailing list