I'd probably recommend running sshd on the external machine and using the customized ssh task I've seen floating around somewhere. One caveat is that unless you are interacting with Windows-based services, whatever you attempt to start/stop through ant will hold up the ant process until the parent process finishes. Not overly nice behaviour. Rumours are that there will be a spawn process to alleviate this issue, but I have not seen a date of when this will be available. (ssh-daemon is available in cygwin.)
d. -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Friday, January 24, 2003 1:23 PM To: Ant Users List Subject: RE: using ant to build out to NT servers I am sorry I forgot to mention that the computer that will be running the script is not the computer I wish to stop and start services on (this is another machine) Michael Medwith Flagstar Bank Wholesale Web Development Team 284-312-5959 [EMAIL PROTECTED] |---------+----------------------------> | | Michael.Medwith@f| | | lagstar.com | | | | | | 01/24/2003 01:20 | | | PM | | | Please respond to| | | "Ant Users List" | | | | |---------+----------------------------> >--------------------------------------------------------------------------- ---------------------------------------------------| | | | To: "Ant Users List" <[EMAIL PROTECTED]> | | cc: | | Subject: RE: using ant to build out to NT servers | >--------------------------------------------------------------------------- ---------------------------------------------------| Yeah i would run it all the time, this is to start and stop the java processes on the box once i upload new files Michael Medwith Flagstar Bank Wholesale Web Development Team 284-312-5959 [EMAIL PROTECTED] |---------+----------------------------> | | David McTavish | | | <dmctavish@SANDVI| | | NE.com> | | | | | | 01/24/2003 01:23 | | | PM | | | Please respond to| | | "Ant Users List" | | | | |---------+----------------------------> > ---------------------------------------------------------------------------- --------------------------------------------------| | | | To: 'Ant Users List' <[EMAIL PROTECTED]> | | cc: | | Subject: RE: using ant to build out to NT servers | > ---------------------------------------------------------------------------- --------------------------------------------------| <exec executable="net.exe"> <arg line="start 'FTP Service'"/> </exec> <exec executable="net.exe"> <arg line="stop 'FTP Service'"/> </exec> but I would think you'd want the ftp server to be running all the time, no? if you want an automated build, you could use the Scheduled Tasks in the Control Panel on NT. Otherwise, I'm not sure what you are trying to get at. d. -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Friday, January 24, 2003 1:16 PM To: [EMAIL PROTECTED] Subject: using ant to build out to NT servers Does anyone have experiences in building out to NT servers with ant. I was looking at installing a ftp service and sending the files over but I don't know how to start and stop the processes running on the box with ant? Any ideas? Michael Medwith Flagstar Bank Wholesale Web Development Team 284-312-5959 [EMAIL PROTECTED] This e-mail may contain data that is confidential, proprietary or "non-public personal information", as that term is defined in the Gramm-Leach-Bliley Act (collectively, "Confidential Information"). The Confidential Information is disclosed conditioned upon your agreement that you will treat it confidentially and in accordance with applicable law, ensure that such data isn't used or disclosed except for the limited purpose for which it's being provided and will notify and cooperate with us regarding any requested or unauthorized disclosure or use of any Confidential Information. By accepting and reviewing the Confidential Information you agree to indemnify us against any losses or expenses, including attorney's fees that we may incur as a result of any unauthorized use or disclosure of this data due to your acts or omissions. If a party other than the intended recipient receives this e-mail, you are requested to instantly notify us of the erroneous delivery and return to us all data so delivered. -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> This e-mail may contain data that is confidential, proprietary or "non-public personal information", as that term is defined in the Gramm-Leach-Bliley Act (collectively, "Confidential Information"). The Confidential Information is disclosed conditioned upon your agreement that you will treat it confidentially and in accordance with applicable law, ensure that such data isn't used or disclosed except for the limited purpose for which it's being provided and will notify and cooperate with us regarding any requested or unauthorized disclosure or use of any Confidential Information. By accepting and reviewing the Confidential Information you agree to indemnify us against any losses or expenses, including attorney's fees that we may incur as a result of any unauthorized use or disclosure of this data due to your acts or omissions. If a party other than the intended recipient receives this e-mail, you are requested to instantly notify us of the erroneous delivery and return to us all data so delivered. -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> This e-mail may contain data that is confidential, proprietary or "non-public personal information", as that term is defined in the Gramm-Leach-Bliley Act (collectively, "Confidential Information"). The Confidential Information is disclosed conditioned upon your agreement that you will treat it confidentially and in accordance with applicable law, ensure that such data isn't used or disclosed except for the limited purpose for which it's being provided and will notify and cooperate with us regarding any requested or unauthorized disclosure or use of any Confidential Information. By accepting and reviewing the Confidential Information you agree to indemnify us against any losses or expenses, including attorney's fees that we may incur as a result of any unauthorized use or disclosure of this data due to your acts or omissions. If a party other than the intended recipient receives this e-mail, you are requested to instantly notify us of the erroneous delivery and return to us all data so delivered. -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
