You are not logged in.

#1 2010-01-10 12:47:57

jamesbond007
Member
From: Germany
Registered: 2009-06-14
Posts: 150

[solved] KDE4: konsole parameters

Hi,

I am trying to open a new tab from an existing konsole window where the command to execute should be /bin/bash -c "su -". I guess something needs to be changed with the quotes...

konsole --new-tab -p tabtitle=root -p Icon=/home/myuser/Pic/Icons/konsolered.png -p command="/bin/bash -c su -"

At the moment, a new tab is being opened and the tab title as well as the icon are being set correctly. But the command that is executed is currently only /bin/bash instead of  /bin/bash -c "su -". I tried different combinations of quotes, inserting additional escaped quotes, but I was not successful.

Can anyone help me with that?

Thanks in advance & kind regards,
jamesbond007.

Last edited by jamesbond007 (2010-01-10 15:43:20)

Offline

#2 2010-01-10 13:27:30

janboe
Member
From: Germany
Registered: 2007-08-09
Posts: 12

Re: [solved] KDE4: konsole parameters

For me this works:

konsole --new-tab -p tabtitle=root -p Icon=/home/myuser/Pic/Icons/konsolered.png -e /bin/bash -c su -

[pidgin-knotify] Native KDE notifications for pidgin - [series60-remote] Manage your Symbian S60 phone

Offline

#3 2010-01-10 15:43:05

jamesbond007
Member
From: Germany
Registered: 2009-06-14
Posts: 150

Re: [solved] KDE4: konsole parameters

Hi janboe,

thanks for your answer!

And I just found that

konsole --new-tab -p tabtitle=root -p Icon=/home/myuser/Pic/Icons/konsolered.png -e /bin/bash -c "su -"

works even better, as one really ends up in the home directory of root.

==> Problem solved!

Offline

Board footer

Powered by FluxBB