Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Starting a command when starting konsole

7 views
Skip to first unread message

Cecil Westerhof

unread,
May 21, 2013, 7:18:22 AM5/21/13
to
I have a script which starts several programs on the different virtual
desktops. One program I start on all desktops (except the first), is
konsole. But I would like to start a program in the konsoles. (In this
case screen.) Is this possible?

--
Cecil Westerhof
Senior Software Engineer
LinkedIn: http://www.linkedin.com/in/cecilwesterhof

Aragorn

unread,
May 21, 2013, 9:26:10 AM5/21/13
to
On Tuesday 21 May 2013 13:18, Cecil Westerhof conveyed the following to
alt.os.linux...

> I have a script which starts several programs on the different virtual
> desktops. One program I start on all desktops (except the first), is
> konsole. But I would like to start a program in the konsoles. (In this
> case screen.) Is this possible?

Yes. See...

$ konsole --help-all

--
= Aragorn =
GNU/Linux user #223157 - http://www.linuxcounter.net

Cecil Westerhof

unread,
May 21, 2013, 10:28:59 AM5/21/13
to
Op dinsdag 21 mei 2013 15:26 CEST schreef Aragorn:

> On Tuesday 21 May 2013 13:18, Cecil Westerhof conveyed the following
> to alt.os.linux...
>
>> I have a script which starts several programs on the different
>> virtual desktops. One program I start on all desktops (except the
>> first), is konsole. But I would like to start a program in the
>> konsoles. (In this case screen.) Is this possible?
>
> Yes. See...
>
> $ konsole --help-all

I should have been a little clearer. :-(

With ‘konsole -e screen’ I can start screen in konsole. The problem is
that then the konsole close when I quit konsole.

I could use:
konsole --noclose -e screen

the konsole is not closed, but I can not do anything with it either. I
would like to get a bash prompt in the konsole after closing screen.

Aragorn

unread,
May 21, 2013, 11:33:23 AM5/21/13
to
On Tuesday 21 May 2013 16:28, Cecil Westerhof conveyed the following to
alt.os.linux...

> Op dinsdag 21 mei 2013 15:26 CEST schreef Aragorn:
>
>> On Tuesday 21 May 2013 13:18, Cecil Westerhof conveyed the following
>> to alt.os.linux...
>>
>>> I have a script which starts several programs on the different
>>> virtual desktops. One program I start on all desktops (except the
>>> first), is konsole. But I would like to start a program in the
>>> konsoles. (In this case screen.) Is this possible?
>>
>> Yes. See...
>>
>> $ konsole --help-all
>
> I should have been a little clearer. :-(
>
> With ‘konsole -e screen’ I can start screen in konsole. The problem is
> that then the konsole close when I quit konsole.

Well, yes, that is intended behavior.

> I could use:
> konsole --noclose -e screen
>
> the konsole is not closed, but I can not do anything with it either. I
> would like to get a bash prompt in the konsole after closing screen.

So you would want to to respawn?

Hmm... I don't know how to do that with Konsole, but I don't use
Konsole all that much anymore since I've discovered Yakuake. It's a
Konsole-like drop-down terminal window.

It drops down from the top of the screen when you press F12 - you can
set it to us another shortcut key if you like, and closing it with the
"x" button will effectively close it, but simply logging out of a
session by way of the "exit" command (or pressing Ctrl+D) will simply
log you out of the shell session and start a new session immediately.

It also supports tabs, i.e. multiple shell sessions in the same drop-
down terminal emulator.

http://en.wikipedia.org/wiki/Yakuake

Cecil Westerhof

unread,
May 21, 2013, 2:39:31 PM5/21/13
to
Op dinsdag 21 mei 2013 17:33 CEST schreef Aragorn:

> On Tuesday 21 May 2013 16:28, Cecil Westerhof conveyed the following
> to alt.os.linux...
>
>> Op dinsdag 21 mei 2013 15:26 CEST schreef Aragorn:
>>
>>> On Tuesday 21 May 2013 13:18, Cecil Westerhof conveyed the
>>> following to alt.os.linux...
>>>
>>>> I have a script which starts several programs on the different
>>>> virtual desktops. One program I start on all desktops (except the
>>>> first), is konsole. But I would like to start a program in the
>>>> konsoles. (In this case screen.) Is this possible?
>>>
>>> Yes. See...
>>>
>>> $ konsole --help-all
>>
>> I should have been a little clearer. :-(
>>
>> With ‘konsole -e screen’ I can start screen in konsole. The problem
>> is that then the konsole close when I quit konsole.
>
> Well, yes, that is intended behavior.
>
>> I could use:
>> konsole --noclose -e screen
>>
>> the konsole is not closed, but I can not do anything with it
>> either. I would like to get a bash prompt in the konsole after
>> closing screen.
>
> So you would want to to respawn?

Yes I would, but I am maybe gold-plating. I think that this solution
is good enough.


> Hmm... I don't know how to do that with Konsole, but I don't use
> Konsole all that much anymore since I've discovered Yakuake. It's a
> Konsole-like drop-down terminal window.
>
> It drops down from the top of the screen when you press F12 - you
> can set it to us another shortcut key if you like, and closing it
> with the "x" button will effectively close it, but simply logging
> out of a session by way of the "exit" command (or pressing Ctrl+D)
> will simply log you out of the shell session and start a new session
> immediately.
>
> It also supports tabs, i.e. multiple shell sessions in the same
> drop- down terminal emulator.
>
> http://en.wikipedia.org/wiki/Yakuake

Something to explore. ;-)
0 new messages