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:[EMAIL PROTECTED]
Sent: Tuesday, January 20, 2004 8:50 PM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
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"/>


>>> [EMAIL PROTECTED] 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:[EMAIL PROTECTED] 
Sent: Tuesday, January 20, 2004 6:50 AM
To: [EMAIL PROTECTED] 
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: [EMAIL PROTECTED] 
For additional commands, e-mail: [EMAIL PROTECTED] 




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED] 


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to