Run Ant Task as different UNIX user
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Steven_Kerick
Posted On:   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

cd /tmp/myPrograms

java -cp /jars/myjar.jar com.me.MyClass arg1 agr2 agr3

Re: Run Ant Task as different UNIX user

Posted By:   Anonymous  
Posted On:   Monday, April 5, 2004 11:51 PM

Just put that into an :












About | Sitemap | Contact