Friday, April 2, 2004 11:35 AM
I have an ant task which calls a java class. This java class requires me to be running as a non-root user id. I am on AIX. Is there a way I can execute my java class as a non-root user ? I know I could write a shell script to do this and call that from my ant script, but I wish to avoid having any shell scripts.
Example what I do manually :
su - myuser
java -cp /jars/myjar.jar com.me.MyClass arg1 agr2 agr3