Article 4X5BY Bash scriipt calling Konsole in Sudo Mode

Bash scriipt calling Konsole in Sudo Mode

by
TBotNik
from LinuxQuestions.org on (#4X5BY)
All,

I'm running Kubuntu, so it is "Konsole", not "Terminal" on my box. I need a bash script that does the following:
  1. Kills any current Konsole sessions,
    Guessing it is the cmd: myvar < ps -A | grep konsole && kill $myvar
  2. Re-opens Konsole with 3 session tabs,
  3. Logs each tab session into sudo mode for root
I need to register this in the Login Registry so I always have these 3
Konsole sessions open at the start of any login on my computer.

It's such a pain to have to manually do this every time I login.

Ideally, for security, the command will be:
Code:bash /...path.../sudologin.sh mypasswhich will also allow it's call at anytime and be used by any linux user and also allow, with the right symlink or rc registry, it to be called without the path name. Non KDE users will use "terminal" not konsole.

All help appreciated!

Cheers!

TBNKlatest?d=yIl2AUoC8zA latest?i=jDBXiorp3Rg:ZSvXAbTzD5E:F7zBnMy latest?i=jDBXiorp3Rg:ZSvXAbTzD5E:V_sGLiP latest?d=qj6IDK7rITs latest?i=jDBXiorp3Rg:ZSvXAbTzD5E:gIN9vFwjDBXiorp3Rg
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments