[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: how to run xterm with nested bash shells, or screen nested inside bash



On 9/1/13, Claudius Hubig <debian_1308@chubig.net> wrote:
> Dear Zenaan,
>
> Zenaan Harkness wrote:
>> >From an existing plain xterm, I want this command:
>> uxterm -e /bin/bash -c /usr/bin/screen
>>
>> or eg:
>> uxterm -e /bin/bash -c /bin/sh
>>
>> To result in a nested shell. Basically I want my xterms to open by
>> default with a screen session (which works fine), but I want to be
>> able to log out of screen with CTRL-D, and be left with plain bash in
>> my uxterm.
>>
>> Is this possible?
...
> However:
>
> $ xfce4-terminal -e "/bin/bash -c \"/usr/bin/mc && /bin/sh\""
>
> runs /bin/sh after /usr/bin/mc exits sucessfully (use ; instead of &&
> to ignore return codes).

Perfect. Thank you so much
Zenaan


Reply to: