Thanx,

--- [EMAIL PROTECTED] 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:[EMAIL PROTECTED]
> > 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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to