Re: SSHEXEC Command Line Equivalent

2023-01-09 Thread Eric Fetzer
ools/hudson.tasks.Ant_AntInstallation/ANT-1.9.4/lib/ant.jar!/org/apache/tools/ant/antlib.xml >> with URI = >> jar:file:/var/lib/jenkins/tools/hudson.tasks.Ant_AntInstallation/ANT-1.9.4/lib/ant.jar!/org/apache/tools/ant/antlib.xml >> from a zip file >> > [echo

Re: SSHEXEC Command Line Equivalent

2022-12-30 Thread Eric Fetzer
tlib.xml > with URI = > jar:file:/var/lib/jenkins/tools/hudson.tasks.Ant_AntInstallation/ANT-1.9.4/lib/ant.jar!/org/apache/tools/ant/antlib.xml > from a zip file > > [echo] Creating a file in /my/path on myServer.myDomain to be sure > there's something to delete

Re: SSHEXEC Command Line Equivalent

2022-12-28 Thread Eric Fetzer
b/ant.jar!/org/apache/tools/ant/antlib.xml > with URI = > jar:file:/var/lib/jenkins/tools/hudson.tasks.Ant_AntInstallation/ANT-1.9.4/lib/ant.jar!/org/apache/tools/ant/antlib.xml > from a zip file > > [echo] Creating a file in /my/path on myServer.myDomain to be sure >

Re: SSHEXEC Command Line Equivalent

2022-12-28 Thread ilya Basin
ant.jar!/org/apache/tools/ant/antlib.xml > with URI = > jar:file:/var/lib/jenkins/tools/hudson.tasks.Ant_AntInstallation/ANT-1.9.4/lib/ant.jar!/org/apache/tools/ant/antlib.xml > from a zip file >      [echo] Creating a file in /my/path on myServer.myDomain to be sure > there's s

Re: SSHEXEC Command Line Equivalent

2022-12-28 Thread Eric Fetzer
n myServer.myDomain to be sure there's something to delete [sshexec] Connecting to myServer.myDomain:22 [sshexec] Connecting to myServer.myDomain port 22 [sshexec] Connection established [sshexec] Remote version string: SSH-2.0-OpenSSH_8.0 [sshexec] Local version string: SSH-2.0-J

Re: SSHEXEC Command Line Equivalent

2022-12-28 Thread Ilya Basin
trust="true" > >              timeout="300" > >              verbose="true" > >              port="22" > >         /> > > > > We've found a bug with this command in RHEL 8 and the RedHa

Re: SSHEXEC Command Line Equivalent

2022-12-28 Thread Eric Fetzer
t; > timeout="300" > > verbose="true" > > port="22" > > /> > > > > We've found a bug with this command in RHEL 8 and the RedHat folks won't > > consider the sshexec command as a repro. I've tried the best I can > figure > > and the command works from the command line however I've tried. Thanks! > > Eric > > >

Re: SSHEXEC Command Line Equivalent

2022-12-28 Thread Stefan Bodewig
On 2022-12-28, Eric Fetzer wrote: > Hi! Can anyone tell me what the command line equivalent to the following > directive in ant is? I'm afraid this is not easy to answer as Ant does not use the command line for this. Ant uses http://www.jcraft.com/jsch/ in order to execute the command and it is

Re: SSHEXEC Command Line Equivalent

2022-12-28 Thread Ilya Basin
yFiles/test.txt" > trust="true" > timeout="300" > verbose="true" > port="22" > /> > > We've found a bug with this command in RHEL 8 and the RedHat folks won't >

SSHEXEC Command Line Equivalent

2022-12-28 Thread Eric Fetzer
Hi! Can anyone tell me what the command line equivalent to the following directive in ant is? We've found a bug with this command in RHEL 8 and the RedHat folks won't consider the sshexec command as a repro. I've tried the best I can figure and the command works from t

AW: sshexec defaults to port 22

2021-01-12 Thread apache
Nachricht- Von: Zahid Rahman Gesendet: Dienstag, 12. Januar 2021 14:15 An: user@ant.apache.org Betreff: AW: sshexec defaults to port 22 As you can see from output console. I have made some progress by updating the remote raspberry pi operating system. I am not sure what parameter is required

AW: sshexec defaults to port 22

2021-01-12 Thread Zahid Rahman
uot;Starting 192.168.0.22:~/raspirecipe/org.raspirecipes.helloworld-0.0.1-SNAPSHOT.jar in debug mode" [sshexec] Connecting to 192.168.0.22:22 [sshexec] Connecting to 192.168.0.22 port 22 [sshexec] Connection established [sshexec] Remote version string: SSH-2.0-OpenSSH_7.9p1 Raspbia

AW: sshexec defaults to port 22

2021-01-11 Thread apache
04:27 An: user@ant.apache.org Betreff: sshexec defaults to port 22 Hi, I am trying to setup Eclipse Remote development on raspberry pi for Java as per this page . http://www.raspirecipes.org/archives/218 Unfortunately something has changed since he did . I have managed to correct one of the errors

sshexec defaults to port 22

2021-01-11 Thread Zahid Rahman
Hi, I am trying to setup Eclipse Remote development on raspberry pi for Java as per this page . http://www.raspirecipes.org/archives/218 Unfortunately something has changed since he did . I have managed to correct one of the errors. I suspect this second error is due to the sshexec command in

sshexec defaults to port 22

2021-01-11 Thread Zahid Rahman
Hi, I am trying to setup Eclipse Remote development on raspberry pi for Java as per this page . http://www.raspirecipes.org/archives/218 Unfortunately something has changed since he did . I have managed to correct one of the errors. I suspect this second error is due the sshexec command in the

Re: sshexec sshConfig does not seem to work as expected (by me)

2020-06-16 Thread Dougal Graham
out that I didn't have a default > identity file set in my ssh config. > > After rectifying that issue, I thought things were fixed, but actually, > they are still broken! > > [sshexec] Loading SSH configuration file /Users/dougal/.ssh/config > [sshexec] Us

Re: sshexec sshConfig does not seem to work as expected (by me)

2020-06-16 Thread Jaikiran Pai
I thought things were fixed, but > actually, they are still broken! > >   [sshexec] Loading SSH configuration file /Users/dougal/.ssh/config >   [sshexec] Using SSH key file ~/.ssh/id_rsa for host null >   [sshexec] Caught exception: host must not be null. > > So I looked at t

Re: sshexec sshConfig does not seem to work as expected (by me)

2020-06-16 Thread Dougal Graham
OK, after digging a little bit, it turns out that I didn't have a default identity file set in my ssh config. After rectifying that issue, I thought things were fixed, but actually, they are still broken! [sshexec] Loading SSH configuration file /Users/dougal/.ssh/config [sshexec] Usin

Re: sshexec sshConfig does not seem to work as expected (by me)

2020-06-16 Thread Dougal Graham
You are, of course, correct! Thank you. OK, running with debug I see: [sshexec] Loading SSH configuration file /Users/dougal/.ssh/config [sshexec] Using SSH key file null for host null So maybe it isn't picking up my host/default ssh key properly. ie: maybe I've configured my host

Re: sshexec sshConfig does not seem to work as expected (by me)

2020-06-16 Thread Jaikiran Pai
Hello Dougal, On 17/06/20 10:07 am, Dougal Graham wrote: > Hi Jaikaran, > > Thanks for getting back to me. I just got the code downloaded for Ant, > and I think I see the problem: > > protected void loadSshConfig() throws BuildException { > if (sshConfig != null && (userInfo.getName() == null

Re: sshexec sshConfig does not seem to work as expected (by me)

2020-06-16 Thread Dougal Graham
t; > > I just upgraded Ant to 1.10.8 so that I can use the new sshConfig feature > > of sshexec, so I don't need to hardcode the location of the user's > keyfile > > in my script. I am now using it like so: > > > > > trust="true" > &

Re: sshexec sshConfig does not seem to work as expected (by me)

2020-06-16 Thread Jaikiran Pai
Hello Dougal, Can you get us the ant debug logs (using the -debug switch) when you run this target? -Jaikiran On 17/06/20 9:33 am, Dougal Graham wrote: > Hi Everyone, > > I just upgraded Ant to 1.10.8 so that I can use the new sshConfig feature > of sshexec, so I don't nee

sshexec sshConfig does not seem to work as expected (by me)

2020-06-16 Thread Dougal Graham
Hi Everyone, I just upgraded Ant to 1.10.8 so that I can use the new sshConfig feature of sshexec, so I don't need to hardcode the location of the user's keyfile in my script. I am now using it like so: However, I still receive warnings about a missing keyfile or password. Isn'

Re: Issue with sshexec and 1.10.7

2019-10-18 Thread Stefan Bodewig
On 2019-10-17, Arnold, Thomas L. (LARC-D321)[LITES II] wrote: > On 2019-10-17, Stefan Bodewig wrote: >> Should be fixed with >> https://github.com/apache/ant/commit/8511719cf38cfe9be3c000e89d448f7f13f49cba#diff-bb49f6b85622e35296971c8d0f10284a >> - will be fixed in 1.10.8. > Confirmed. I grab

Re: Issue with sshexec and 1.10.7

2019-10-17 Thread Arnold, Thomas L. (LARC-D321)[LITES II]
On 2019-10-17, Stefan Bodewig wrote: > Should be fixed with > https://github.com/apache/ant/commit/8511719cf38cfe9be3c000e89d448f7f13f49cba#diff-bb49f6b85622e35296971c8d0f10284a > - will be fixed in 1.10.8. Confirmed. I grabbed the updated SSHexec.java, stuck it into 1.10.7 and rebuilt and it

Re: Issue with sshexec and 1.10.7

2019-10-17 Thread Stefan Bodewig
On 2019-10-17, Stefan Bodewig wrote: > On 2019-10-17, Arnold, Thomas L. (LARC-D321)[LITES II] wrote: >> I'm having an issue with 1.10.7. This behavior doesn't exist in 1.10.6. >> > keyfile="${user.home}/.ssh/id_rsa" >> output="/home/user/anthell/CheckHost-Server1.txt"

Re: Issue with sshexec and 1.10.7

2019-10-17 Thread Stefan Bodewig
On 2019-10-17, Arnold, Thomas L. (LARC-D321)[LITES II] wrote: > I'm having an issue with 1.10.7. This behavior doesn't exist in 1.10.6. > keyfile="${user.home}/.ssh/id_rsa" > output="/home/user/anthell/CheckHost-Server1.txt" > failonerror="true" append="true" verbose="

Issue with sshexec and 1.10.7

2019-10-17 Thread Arnold, Thomas L. (LARC-D321)[LITES II]
I'm having an issue with 1.10.7. This behavior doesn't exist in 1.10.6. Sample build.xml : simple example build file Running this should leave me with a file CheckHost-Server1.txt containing "OK", instead it fails creating the file: BUILD FAILED /home/us

AW: jsch to apache mina for sshexec - Ant version 1.9.6 to 1.10.1

2019-01-11 Thread jhm
> We use ant internally in our build systems and heavily use sshexec/scp > and ssh tasks. These rely on jsch which is an external library. Now > that there is Apache Mina is there a way to move away from jsch to > apache mina? Jsch project is not very active, so we were lo

jsch to apache mina for sshexec - Ant version 1.9.6 to 1.10.1

2019-01-11 Thread Sharat Chandran
Hello, We use ant internally in our build systems and heavily use sshexec/scp and ssh tasks. These rely on jsch which is an external library. Now that there is Apache Mina is there a way to move away from jsch to apache mina? Jsch project is not very active, so we were looking for an

Re: sshexec

2015-02-17 Thread Eric Fetzer
of the trace, the error > is being reported bak to the sshexec process, so it's happening on the remote > side. Your sshexec setup is invoking a bash script as a login with use ant. > Because it's a login script, it will, I think, try to execute any .profile, > .ba

Re: sshexec

2015-02-12 Thread Peter West
Someone who knows the codebase better than I do may choose to comment, but I can't imagine why a Java program with full access to the Javi API facilities would try to run a javascript script. From the look of the trace, the error is being reported bak to the sshexec process, so it's

RE: sshexec

2015-02-12 Thread Martin Gainty
:/tmp/foo if the connection is refused for that user/password combination then you'll know username/password is incorrect then use the same username/password in sshexec ? M- > CC: user@ant.apache.org > From: elstonk...@yahoo.com.INVALID > Subject: Re: sshexec > Date: Thu, 12

Re: sshexec

2015-02-12 Thread Eric Fetzer
Yes Peter, the one line left is in the calling ant script. When it returns from the sshexec, always returning with success, sometimes sshexec must be misinterpreting as failure. I'm not sure where that JavaScript is coming from, I assumed that was a part of the sshexec task itself.

Re: sshexec

2015-02-12 Thread Peter West
27;t get executed because of a failure in the _remote_ task, i.e. the sshexec. So is it the case that the remote task fails _sometimes_, giving the error trace you sent, and otherwise succeeds, giving the trace you have just posted? Also, where is the javascript being executed? This is a javasc

Re: sshexec

2015-02-12 Thread Eric Fetzer
Here it is with a successful finish Peter:   [sshexec]   [sshexec] main:   [sshexec]   [sshexec]   [sshexec] BUILD SUCCESSFUL  [sshexec] Total time: 1 minute 9 seconds [copy] Copying 1 file to c:\BuildDeployScripts\dist\Logs\2.16.3.5-20150211-0807\output That's it, no stack trace.  Onc

Re: sshexec

2015-02-11 Thread Peter West
> I see sshexec finish with a successful status, then it gets back to the > calling task and bombs out. What is it that you actually see, when you "see sshexec finish with a successful status?" Obviously it's no the return value. Where's the javascript happening,

Re: sshexec

2015-02-11 Thread Eric Fetzer
OK, seems to work one time, fail another, work one time, fail another...  Anyone even have a hint on how to trouble-shoot it?  I already have sshexec set to verbose and that just gives the stack trace.  Makes no sense to me. On Tuesday, February 10, 2015 2:36 PM, Eric Fetzer wrote

sshexec

2015-02-10 Thread Eric Fetzer
I'm running Ant 1.7 and having an issue I don't understand.  I see sshexec finish with a successful status, then it gets back to the calling task and bombs out.  I upped the timeout value and that seemed to work once, but not after that even though it's WAY over the value that

RE: sshexec host login task auth fail multiplies

2013-02-14 Thread Dylan Clarke
mcook144sw [mailto:mcook14...@yahoo.com] >Sent: 13 February 2013 19:42 >To: user@ant.apache.org >Subject: sshexec host login task auth fail multiplies > >I am using the following sshexec command to login to a linux server and >verify the users access. > > use

sshexec host login task auth fail multiplies

2013-02-13 Thread mcook144sw
I am using the following sshexec command to login to a linux server and verify the users access. Whenever a user types an incorrect password in our tool, it will fail with a "com.jcraft.jsch.JSchException: Auth fail" error that will lock them out of their linux account due t

Re: sshexec command output

2012-08-09 Thread Robert Larsen
sshexec can output to either a file (output="somefile.txt") or a property (outputproperty="sshexec_output"). Specifying one of those two should turn off the output to standard out. signature.asc Description: OpenPGP digital signature

sshexec command output

2012-08-09 Thread Sérgio
Hi, I have a task sshexec in my ant buildfile. This task shows the output of the command i wish to execute. My question is: how to not show the output? here is my task: | This always shows the output of the command like: [sshexec] Connecting to evoserver:22 [sshexec] cmd : find /home

sshexec behaviour

2011-02-15 Thread Maureen Troendle
It seems everytime I add an sshexec to execute a script, I lose my chmod permission changes. I can do an ls -al before and after the chmod in the same sshexec line and see the permissions change. I can also run a 2nd sshexec with ls -al and see the permissions are still correct. When I

Definitive guide to sshexec and scp ant tasks with keyfile?

2010-08-24 Thread pkcinna
context: http://ant.1045680.n5.nabble.com/Definitive-guide-to-sshexec-and-scp-ant-tasks-with-keyfile-tp2651541p2651541.html Sent from the Ant - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: user-unsubscr...@ant

Help to Remove standard sshexec output

2010-07-01 Thread Morales, Pedro
Hi, The sshexec task display the result of the command execution on the screen. We don't want to display this result on our screen since it's confident information. I don't see an option to remove this standard out from sshexec task. Maybe you know how to do it. On ant ma

Re: sshexec on remote server

2010-01-10 Thread eran123
>> > > > --------- > To unsubscribe, e-mail: user-unsubscr...@ant.apache.org > For additional commands, e-mail: user-h...@ant.apache.org > > > -- View this message in context: http://old.nabble.

RE: sshexec on remote server

2010-01-05 Thread Thomas Loy
-Original Message- From: Antoine Levy Lambert [mailto:anto...@gmx.de] Sent: Tuesday, January 05, 2010 4:33 PM To: Ant Users List Subject: Re: sshexec on remote server Hello Eran, maybe your problem is that you need to execute explicitly in your command the .profile or .bashrc or ... of the target

Re: sshexec on remote server

2010-01-05 Thread Antoine Levy Lambert
Hello Eran, maybe your problem is that you need to execute explicitly in your command the .profile or .bashrc or ... of the target user and host. you might want to do something like command=". .profile && cd ${env.scripts.folder.path} && ./PingServer" regards, Antoine eran123 wrote: Hi,

sshexec on remote server

2010-01-03 Thread eran123
: -- View this message in context: http://old.nabble.com/sshexec-on--remote-server-tp27004641p27004641.html Sent from the Ant - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: user-unsubscr

Re: timeout parameter not working in Sshexec task

2009-10-16 Thread SachinSr
7; not really working once after the command is finished on the >> remote host using Sshexec task. > > Can you find a Bugzilla issue raised for this? I can't remember seeing > a fix for this and don't find anything in current trunk's WHATSNEW that > looked relate

Re: timeout parameter not working in Sshexec task

2009-10-15 Thread Stefan Bodewig
On 2009-10-15, SachinSr wrote: > I saw from so many Ant user in the internet raising their issue with > 'timeout' not really working once after the command is finished on the > remote host using Sshexec task. Can you find a Bugzilla issue raised for this? I can't rememb

timeout parameter not working in Sshexec task

2009-10-15 Thread SachinSr
Hi, I saw from so many Ant user in the internet raising their issue with 'timeout' not really working once after the command is finished on the remote host using Sshexec task. I'm also facing this same issue and it has become damn critical for me to have this to be worked. So do

Re: sshexec

2009-08-06 Thread Eric Fetzer
No one cares?  Well if anyone decides to fix it, please let me know so that I can take my workaround out... From: Eric Fetzer To: Ant Users List Sent: Wednesday, August 5, 2009 1:54:08 PM Subject: Re: sshexec In order to fix this, I had to write a macrodef

Re: sshexec

2009-08-05 Thread Eric Fetzer
In order to fix this, I had to write a macrodef that strips the last character (no matter what it is being that you can't test for it):                       I would consider the behavior of sshexec a bug.  Anyone else... From: Eric F

Re: sshexec

2009-08-05 Thread Eric Fetzer
I tried:         But it doesn't seem to work on newline/cr stuff...  This is nuts, is what I'm trying to do really all that tough? From: Eric Fetzer To: Ant Users Sent: Wednesday, August 5, 2009 11:10:36 AM Subject: sshexec So sshexec i

sshexec

2009-08-05 Thread Eric Fetzer
So sshexec is adding a carriage return to the outputproperty when run from winders.  Is there a way to strip this off of the end of a property in ant?  Here's a small repro: test.sh: echo "error" | tr '\n' '' | tr '\r' '' exit 0 tes

Re: Simple solutions to sshexec nohup Ant?

2009-02-09 Thread Robert Koberg
I use plink via the exec task. Easy to setup; reliable. Works grand. -Original Message- From: Jan Lund [mailto:janne_l...@yahoo.com] Sent: Wednesday, February 04, 2009 5:33 AM To: user@ant.apache.org Subject: Simple solutions to sshexec nohup Ant? Hi all, I've Googled some for a solut

RE: Simple solutions to sshexec nohup Ant?

2009-02-09 Thread Lucas Albers
I use plink via the exec task. Easy to setup; reliable. Works grand. -Original Message- From: Jan Lund [mailto:janne_l...@yahoo.com] Sent: Wednesday, February 04, 2009 5:33 AM To: user@ant.apache.org Subject: Simple solutions to sshexec nohup Ant? Hi all, I've Googled some

Simple solutions to sshexec nohup Ant?

2009-02-04 Thread Jan Lund
Hi all, I've Googled some for a solution to run sshexec remote ssh commands via Ant inside Eclipse. But I get some sort of error although it works when the command is ran locally. The solutions I've found on the net seems to involve some extra IO redirection and environment variables.

RE: SCP and SSHExec tasks

2008-11-28 Thread Rez
Thanks everyone.> Date: Wed, 26 Nov 2008 11:16:00 -0800> From: [EMAIL PROTECTED]> To: user@ant.apache.org> Subject: Re: SCP and SSHExec tasks> > The scp task will not create remote directories. Also, there is no recursive> option. Yes, you can specify a fileset, but th

Re: SCP and SSHExec tasks

2008-11-26 Thread David Crossley
Rez wrote: > > Is it possible to create the directories on the remote server on the fly as > the scp ant task is executed or do I need to run sshexec to create them first? At Apache Forrest our "forrestbot" can deploy using the Ant scp task. It does certainly successfull

Re: SCP and SSHExec tasks

2008-11-26 Thread Robert Anderson
. zip or tar.gz the files locally 2. scp the archive to the remote machine 3. sshexec to remote machine and unpack the archive -Rob Anderson On Wed, Nov 26, 2008 at 3:36 AM, Steve Loughran <[EMAIL PROTECTED]> wrote: > Rez wrote: > >> Hi >> Is it possible to create the d

Re: SCP and SSHExec tasks

2008-11-26 Thread Steve Loughran
Rez wrote: Hi Is it possible to create the directories on the remote server on the fly as the scp ant task is executed or do I need to run sshexec to create them first? I use sshexec first, with a mkdir -p as the command. I also have a couple of presetdef definitions to simplify making

SCP and SSHExec tasks

2008-11-25 Thread Rez
Hi Is it possible to create the directories on the remote server on the fly as the scp ant task is executed or do I need to run sshexec to create them first? Thanks _ Windows Live Hotmail now works up to 70% faster. http

Re: sshexec exit status 127

2008-09-03 Thread Robert Koberg
On Sep 2, 2008, at 11:58 PM, Stefan Bodewig wrote: On Tue, 2 Sep 2008, Robert Koberg <[EMAIL PROTECTED]> wrote: Hi, ant 1.7.1, jsch-0.1.33, commons-net-1.5.0-dev, Red Hat Enterprise Linux Server release 5.2 (Tikanga) I am trying to use ant on one server, which is using sshexec to

Re: sshexec exit status 127

2008-09-02 Thread Stefan Bodewig
On Tue, 2 Sep 2008, Robert Koberg <[EMAIL PROTECTED]> wrote: > Hi, > > ant 1.7.1, jsch-0.1.33, commons-net-1.5.0-dev, Red Hat Enterprise > Linux Server release 5.2 (Tikanga) > > I am trying to use ant on one server, which is using sshexec to > invoke ant on a

sshexec exit status 127

2008-09-02 Thread Robert Koberg
Hi, ant 1.7.1, jsch-0.1.33, commons-net-1.5.0-dev, Red Hat Enterprise Linux Server release 5.2 (Tikanga) I am trying to use ant on one server, which is using sshexec to invoke ant on a remote server. I also tried creating a shell script that just executes ant and using that as the

sshexec and logging

2008-08-13 Thread Hans Schwaebli
need SSHEXEC task to call ant from the Unix machine on the Windows machine. This works so far, but there is a issue with logging. If I execute with SSHEXEC then its kind of black hole concerning logging from the viewpoint of CruiseControl. I cannot see what happens live because the scripts are

Re: sshexec (running remote commands with sudo) forced psuedo-tty allocation

2008-07-29 Thread mindspin311
ED]> > >> Not sure, but maybe this will help You: >> >> >> http://www.nabble.com/sshexec-%28running-remote-commands-with-sudo%29-forced-psuedo-tty-allocation-tp18592216p18641500.html >

Re: sshexec (running remote commands with sudo) forced psuedo-tty allocation

2008-07-25 Thread Krzysieq
Forgot to close the double quote at the end of arg line... 2008/7/25 Krzysieq <[EMAIL PROTECTED]> > Not sure, but maybe this will help You: > > > http://www.nabble.com/sshexec-%28running-remote-commands-with-sudo%29-forced-psuedo-tty-allocation-tp18592216p18641500.html &g

Re: sshexec (running remote commands with sudo) forced psuedo-tty allocation

2008-07-25 Thread Krzysieq
Not sure, but maybe this will help You: http://www.nabble.com/sshexec-%28running-remote-commands-with-sudo%29-forced-psuedo-tty-allocation-tp18592216p18641500.html > Sent from the Ant - Users mailing list archive at Nabble.

RE: sshexec (running remote commands with sudo) forced psuedo-tty allocation

2008-07-24 Thread mindspin311
meh.. I give up. ssh'in into root by adding build's pub key to root's authorized_keys' file. Systems might have some problems with it, but it works for now. -- View this message in context: http://www.nabble.com/sshexec-%28running-remote-commands-with-sudo%29-forced-p

RE: sshexec (running remote commands with sudo) forced psuedo-tty allocation

2008-07-23 Thread mindspin311
ll script: > ./antRunAsync.sh ./run.sh > > In this way I never use the -t argument and nohup works properly from > the run script. Maybe a similar setup would work for you? > > > -Original Message- > From: mindspin311 [mailto:[EMAIL PROTECTED] > Sent: Tuesday

RE: sshexec (running remote commands with sudo) forced psuedo-tty allocation

2008-07-23 Thread Barry Pape
nc.sh ./run.sh In this way I never use the -t argument and nohup works properly from the run script. Maybe a similar setup would work for you? -Original Message- From: mindspin311 [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 22, 2008 11:14 PM To: user@ant.apache.org Subject: RE: sshexec (ru

RE: sshexec (running remote commands with sudo) forced psuedo-tty allocation

2008-07-22 Thread mindspin311
/marc.info/?l=ant-user&m=120128316829325&w=2 > > > -Original Message- > From: mindspin311 [mailto:[EMAIL PROTECTED] > Sent: Tuesday, July 22, 2008 11:08 AM > To: user@ant.apache.org > Subject: RE: sshexec (running remote commands with sudo) forced > psuedo-t

RE: sshexec (running remote commands with sudo) forced psuedo-tty allocation

2008-07-22 Thread Barry Pape
To: user@ant.apache.org Subject: RE: sshexec (running remote commands with sudo) forced psuedo-tty allocation [exec] Pseudo-terminal will not be allocated because stdin is not a terminal. Doesn't work. Tried it to run a remote command without -t for something like 'ls' and it works fine. It

RE: sshexec (running remote commands with sudo) forced psuedo-tty allocation

2008-07-22 Thread mindspin311
ne. ruel loehr wrote: > > why can't you just do an exec with the command ssh -t .? > > -Original Message- > From: mindspin311 [mailto:[EMAIL PROTECTED] > Sent: Tuesday, July 22, 2008 10:37 AM > To: user@ant.apache.org > Subject: sshexec

RE: sshexec (running remote commands with sudo) forced psuedo-tty allocation

2008-07-22 Thread Loehr, Ruel
why can't you just do an exec with the command ssh -t .? -Original Message- From: mindspin311 [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 22, 2008 10:37 AM To: user@ant.apache.org Subject: sshexec (running remote commands with sudo) forced psuedo-tty allocation I'm

sshexec (running remote commands with sudo) forced psuedo-tty allocation

2008-07-22 Thread mindspin311
is without being prompted for a password, but there is no way to use the -t option with sshexec. Anyone know a good fix on how to do this in ant using sshexec or exec? -- View this message in context: http://www.nabble.com/sshexec-%28running-remote-commands-with-sudo%29-forced-psuedo-tty-

Re: SCP/SSHEXEC tasks: Download of jsch-0.1.39 jar

2008-06-27 Thread Reinhardt Christiansen
Hi Kevin, You're brilliant! I tried another mirror, this time in Berlin rather than in San Jose, and this time the link took me to the jar and I downloaded the file just fine. It never occurred to me that sourceforge.net has mirrors; I never noticed the mirror name amidst the rest of the clu

Re: SCP/SSHEXEC tasks: Download of jsch-0.1.39 jar

2008-06-27 Thread Kevin Jackson
Hi, > The manual says that I need any version of the jsch jar, version 0.1.28 or > above. The JCraft page shows the current version is 0.1.39. Both a zip and a > jar is available for download but, unfortunately, something is messed up > with the link for the jar. When I try to download the jar, it

SCP/SSHEXEC tasks: Download of jsch-0.1.39 jar

2008-06-27 Thread Reinhardt Christiansen
I am having trouble getting the jar file needed to support the scp/sshexec tasks. I am running Ant 1.7.0 in Eclipse Europa. The manual says that I need any version of the jsch jar, version 0.1.28 or above. The JCraft page shows the current version is 0.1.39. Both a zip and a jar is available

Re: sshexec ant task command not found

2008-04-15 Thread Alex Mayorga Adame
Can you confirm the dir command is in the PATH of the Windows host when you sshexec to it? Try to change your command to command=PATH just to confirm what's in there when you sshexec. Hope it helps -- View this message in context: http://www.nabble.com/sshexec-ant-task-command-not-

Re: sshexec ant task command not found

2008-04-14 Thread neitcouq
Hura ! It worked. Thanks ! -- View this message in context: http://www.nabble.com/sshexec-ant-task-command-not-found-tp16627332p16673657.html Sent from the Ant - Users mailing list archive at Nabble.com. - To unsubscribe, e

Re: sshexec ant task command not found

2008-04-11 Thread Peter Reilly
"dir E:\Share"/> > > > When I run this target, the result out put : > > deployment: > [sshexec] Connecting to tamnguyen0908:22 > [sshexec] dir: not found > BUILD SUCCESSFUL > > My scenario: > > Run in : Linux Ubuntu > SSh : open ssh > Ant1

sshexec ant task command not found

2008-04-11 Thread neitcouq
I have a target in build.xml like that: When I run this target, the result out put : deployment: [sshexec] Connecting to tamnguyen0908:22 [sshexec] dir: not found BUILD SUCCESSFUL My scenario: Run in : Linux Ubuntu SSh : open ssh Ant1,7; jsch-0.1.37.jar (for using sshexec and scp

sshexec ant task command not found

2008-04-11 Thread neitcouq
I have a target in build.xml like that: When I run this target, the result out put : deployment: [sshexec] Connecting to tamnguyen0908:22 [sshexec] dir: not found BUILD SUCCESSFUL My scenario: Run in : Linux Ubuntu SSh : open ssh Ant1,7; jsch-0.1.37.jar (for using sshexec and scp

Re: sshexec hangs

2008-02-21 Thread Steve Loughran
Z W wrote: Hi I have But for unknown reason, sshexec hangs when executing Ant 1.7 sun_files: [sshexec] Connecting to sun01:22 Why ? Anything I could do to overcome the hanging ? can you telnet to that port by hand? telnet sun01 22 can you ssh to that machine by hand? -- Steve

sshexec hangs

2008-02-21 Thread Z W
Hi I have But for unknown reason, sshexec hangs when executing Ant 1.7 sun_files: [sshexec] Connecting to sun01:22 Why ? Anything I could do to overcome the hanging ? Thanks

Re: how to define task sshexec

2008-02-12 Thread Charbel BITAR
Hi, You don't have to redefine the sshexec task. You only need to add ant-jsch.jar and jsch-0.1.37.jar in your Ant classpath (-lib ...) as Steve said. Cheers -- Charbel On Feb 12, 2008 10:57 AM, Steve Loughran <[EMAIL PROTECTED]> wrote: > serdsch wrote: > > Hi Peter, &

Re: how to define task sshexec

2008-02-12 Thread Steve Loughran
so I dont have a ant/lib folder. What I did now was to add '-lib ${path-to-jsch-0.1.37.jar}' in the bat-file calling Ant, but it still couldn't find the *.sshexec-class. This one is found in the ant-jsch.jar that comes with your Ant distribution. So for anyone facing the same pro

Re: how to define task sshexec

2008-02-12 Thread serdsch
lib folder. What I did now was to add '-lib ${path-to-jsch-0.1.37.jar}' in the bat-file calling Ant, but it still couldn't find the *.sshexec-class. This one is found in the ant-jsch.jar that comes with your Ant distribution. So for anyone facing the same problem, what you need is

Re: how to define task sshexec

2008-02-12 Thread Peter Reilly
see http://ant.apache.org/faq.html#delegating-classloader for some background. After a lot of code, and some backward compatible problems, this issue has been solved for the optional task in ant 1.7.0 - but not for other optional tasks. For ant 1.7.1, code has been added to allow the optional

Re: how to define task sshexec

2008-02-11 Thread Ramu Sethu
, 2008 10:38 PM, Peter Reilly <[EMAIL PROTECTED]> wrote: > On Feb 11, 2008 11:49 AM, serdsch <[EMAIL PROTECTED]> wrote: > > > > Hi @all! > > > > I want to use sshexec and I'm totally new to it. Unfortunately the > > documentation on how to use it

Re: how to define task sshexec

2008-02-11 Thread Peter Reilly
On Feb 11, 2008 11:49 AM, serdsch <[EMAIL PROTECTED]> wrote: > > Hi @all! > > I want to use sshexec and I'm totally new to it. Unfortunately the > documentation on how to use it is not just poor, it is non-existent. :-( > No quite non-existent: http://ant.ap

RE: how to define task sshexec

2008-02-11 Thread Barry Pape
Maybe this will help you out: http://ant.apache.org/manual/OptionalTasks/sshexec.html -Original Message- From: serdsch [mailto:[EMAIL PROTECTED] Sent: Monday, February 11, 2008 10:49 AM To: user@ant.apache.org Subject: how to define task sshexec Hi @all! I want to use sshexec and I&#

how to define task sshexec

2008-02-11 Thread serdsch
Hi @all! I want to use sshexec and I'm totally new to it. Unfortunately the documentation on how to use it is not just poor, it is non-existent. :-( Also, I haven't found anything useful anywhere on the web. So, please, someone help me. As far as I know, I have to tell Ant the name of

Re: embed "if-then" in sshexec command question

2008-02-11 Thread Steve Loughran
Z W wrote: Hi How do I embed a if-then statement inside sshexec knowing that the remote shell is a csh ? Hi. why dont you tell us what it is you are trying to do, instead of asking a problem at a time? It is good to see you making progress, but I do wonder if you are on the right path

Re: embed "if-then" in sshexec command question

2008-02-10 Thread David Weintraub
You have to use the CSH syntax. You're using Bourne Shell syntax: if (expr) then ... else if (expr2) then ... else ... endif On Feb 10, 2008 8:50 AM, Z W <[EMAIL PROTECTED]> wrote: > Hi > > How do I embed a if-then statement inside sshexec knowing that the remote > sh

  1   2   3   4   >