Hi all, i want to run various unix cmds like su, cd ,and also shell scripts thru java prg.. but using Runtime.getRuntime().exec("su - imail") , i am not able to attain control over the imail user id over the session. is it that the process runs and terminates? i want to actually switch to user imail thru java code. any help ? also when i do Runtime.getRuntime().exec("cd bin") , i want to be physically located at that position.