Can anyone asist me in creating a script where I login as a user, start processes as that user, logout that user, login another user, startart processes as that user, and so on.
This is for starting a content server, starting an environment, and then starting apache-tomcat.
Thanks!!!!!
i have never try something like this.. but it maybe will be in this way...
if you execute this script as root just do something like this
but if you don't have root access you will need to use SUDO
su user1
commands to execute
exit user1
su user2
commands to execute
exit user2
Regards =D
Let me now if this work