ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Anderson, Robert H - MWT" <Anderson.Rob...@menlolog.com>
Subject RE: Changing user inside ant script
Date Fri, 25 Apr 2003 20:06:19 GMT
Use sudo.

http://www.courtesan.com/sudo/sudo.html

-Rob A

-----Original Message-----
From: Marie-Josee Blais [mailto:mjblais@miranda.com]
Sent: Friday, April 25, 2003 12:47 PM
To: user@ant.apache.org
Subject: Changing user inside ant script


I need to execute a bash script from ant. I want to su to root and then
call my bash script. This does not work. su returns "standard in must be
a tty". Is there anyway of specifying the user used for an exec task ?

I need this because I have configured cruisecontrol to rebuild every day
and I want to be able to install my software and set correct permissions
on my files.

Thanks !

Marie-Josee Blais <mjblais@miranda.com>
Miranda Technologies inc.


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org

Mime
View raw message