LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   How to run multiple instances of same program ! (https://www.linuxquestions.org/questions/linux-newbie-8/how-to-run-multiple-instances-of-same-program-864501/)

noony123 02-23-2011 06:19 AM

How to run multiple instances of same program !
 
Hi all.

In windows xp, i created another user account. Now i can run a second instance of any program by right clicking on it and selecting Run as. Is such a thing possible in linux (centos or ubuntu) in graphical environment ?

Snark1994 02-23-2011 06:29 AM

Well, many programmes will allow you to run more than one instance of them at a time, regardless. If you're specifically after running it as another user, you can open a terminal and type
Code:

su user
which will allow you to log into user's account, from which you can run the programme :)

eSelix 02-23-2011 08:35 AM

Or graphical frontend for su/sudo. If you use KDE you can do it with:
Code:

kdesudo -u user_name program_name
There is also kdesu, and for Gnome: gksu and gksudo. You can also try some service menu. I think there are many such utilities.

chrism01 02-23-2011 08:03 PM

Actually
Code:

# This logs you in as user WITH their env
su - user

# This logs you in as user WITHOUT their env; you keep your own env
su user


Snark1994 02-24-2011 10:56 AM

Thanks for that Chris; having seen both, I'd always wondered what the difference was...


All times are GMT -5. The time now is 11:37 PM.