# Script help

**URL:** <https://community.unix.com/t/script-help/167013>\
**Category:** AIX\
**Created:** [November 20, 2006, 6:17pm UTC](https://community.unix.com/t/script-help/167013 "2006-11-20T18:17:00Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![kcampbell](https://community.unix.com/letter_avatar/kcampbell/32/6_22734026db12803ebb3e059622ac3534.png) [@kcampbell](https://community.unix.com/u/kcampbell)\
**Post date:** [November 20, 2006, 6:17pm UTC](https://community.unix.com/t/script-help/167013/1 "2006-11-20T18:17:00Z")

</div>

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!!!!!

---

<div class="post-metadata">

**Author:** ![jmedinar](https://community.unix.com/letter_avatar/jmedinar/32/6_22734026db12803ebb3e059622ac3534.png) [@jmedinar](https://community.unix.com/u/jmedinar)\
**Post date:** [November 27, 2006, 4:00pm UTC](https://community.unix.com/t/script-help/167013/2 "2006-11-27T16:00:22Z")

</div>

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
