ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Anderson, Rob (Global Trade)" <Rob.Anders...@nike.com>
Subject RE: SSHExec task
Date Wed, 21 Jan 2004 17:10:08 GMT
Is the file created, but empty? Or is it not created at all? Perhaps you do not have write
permission to the directory where session.txt would be created.

-Rob A

-----Original Message-----
From: Mohd Sharif Idrisi [mailto:midrisi@novell.com]
Sent: Tuesday, January 20, 2004 8:50 PM
To: user@ant.apache.org; Rob.Anderson2@nike.com
Subject: RE: SSHExec task


I am using Ant 1.6.It is running very much fine , but only problem is
that I want to put the output of command in file with output=<file>
option and it is not happening.:-((

my xml looks like this and nothing wrong with this.

<taskdef name="mysshexec"
classname="org.apache.tools.ant.taskdefs.optional.ssh.SSHExec"/>
<mysshexec host="hostname" output="session.txt" 
trust="Yes" username="user" password="user" command="ls -ltr"
timeout="2000"/>


>>> Rob.Anderson2@nike.com 1/21/2004 4:42:48 AM >>>
Are you using Ant 1.6? What does the taskdef for <mysshexec> look like?
Is the build successfull, or do you get an error? Is the output printed
to the screen?

-Rob Anderson

-----Original Message-----
From: Mohd Sharif Idrisi [mailto:midrisi@novell.com] 
Sent: Tuesday, January 20, 2004 6:50 AM
To: user@ant.apache.org 
Subject: SSHExec task


I am using SSHEXEC task my xml looks like this

<mysshexec host="hostname" output="session.txt" 
trust="Yes" username="user" password="user" command="ls -ltr"
timeout="2000"/>

but output is not written into session.txt file and even it is not
getting created.


---------------------------------------------------------------------
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 


---------------------------------------------------------------------
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


Mime
View raw message