Return-Path: Mailing-List: contact user-help@ant.apache.org; run by ezmlm Delivered-To: mailing list user@ant.apache.org Received: (qmail 24544 invoked from network); 25 Apr 2003 21:27:48 -0000 Received: from mail.miranda.com (HELO norton.miranda.com) (199.202.148.246) by daedalus.apache.org with SMTP; 25 Apr 2003 21:27:48 -0000 Received: from miranda-kk6h1tr.miranda.com ([10.2.5.50]) by norton.miranda.com with esmtp (Exim 3.36 #3) id 199Aja-0001Rl-00 for user@ant.apache.org; Fri, 25 Apr 2003 17:27:54 -0400 Subject: RE: Changing user inside ant script From: Marie-Josee Blais To: Ant Users List In-Reply-To: References: Content-Type: text/plain Organization: Miranda Technolgies inc. Message-Id: <1051306123.17498.37.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.2.4 Date: 25 Apr 2003 17:28:43 -0400 Content-Transfer-Encoding: 7bit X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Thanks, works like a charm. On Fri, 2003-04-25 at 16:06, Anderson, Robert H - MWT wrote: > 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 > Miranda Technologies inc. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: user-unsubscribe@ant.apache.org > For additional commands, e-mail: user-help@ant.apache.org > > --------------------------------------------------------------------- > To unsubscribe, e-mail: user-unsubscribe@ant.apache.org > For additional commands, e-mail: user-help@ant.apache.org -- Marie-Josee Blais Miranda Technolgies inc.