ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jan.Mate...@rzf.fin-nrw.de
Subject AW: Executing a command on a Unix/Linux box
Date Tue, 29 Mar 2005 06:33:57 GMT
<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! 
> 

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message