ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ninju Bohra <ninju_bo...@yahoo.com>
Subject Re: AW: Executing a command on a Unix/Linux box
Date Tue, 29 Mar 2005 15:19:30 GMT
Thanx,

--- Jan.Materne@rzf.fin-nrw.de wrote:
> <macrodef name="stopserver">
>     <attribute name="server"/>
>     <sequential>
>         <exec executable="jrun">
>             <arg value="-stop"/>
>             <arg value="@{server}"/>
>         </exec>
>     </sequential>
> </macrodef>
> 
> <stopserver server="my.jrun.server"/>
> 
> 
> I wouldnt write a task for "just" executing that one
> liner.
> 
> 
> Jan
> 
> 
> > -----Ursprüngliche Nachricht-----
> > Von: Ninju Bohra [mailto:ninju_bohra@yahoo.com]
> > Gesendet am: Montag, 28. März 2005 19:38
> > An: Ant Users Group
> > Betreff: Executing a command on a Unix/Linux box
> > 
> > Hello all,
> >  
> > On our Linux/Unix boxes we multiple JRun
> application servers 
> > running that were started using the command
> >     jrun -start <server_name> -nohup
> >  
> > The servers are manually started (from somebody at
> a console) 
> > Now I need to write a ANT script to automate the
> stopping of 
> > the servers
> >  
> > How do I write ant task to execute a command
> (assuming a 
> > person logged in the console)
> > the command would be :   jrun -stop <server_name>
> >  
> > Thanx,
> >  
> > Ninju
> > 
> > 		
> > ---------------------------------
> > Do you Yahoo!?
> >  Yahoo! Small Business - Try our new resources
> site! 
> > 
> 


		
__________________________________ 
Do you Yahoo!? 
Yahoo! Small Business - Try our new resources site!
http://smallbusiness.yahoo.com/resources/ 

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


Mime
View raw message