ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Kenneth Ljunggren" <>
Subject SSHExec : Remote Environment variables
Date Mon, 12 Jan 2004 14:33:47 GMT
I am trying to perform a backup of our Oracle database using the
ANT task SSHExec.

If I login with SSH using PUTTY to the oracle user and execute the EXP
it works perfectly, but it I execute the exact command using the ANT task
I get the following result:

C:\System\backup.xml:53: Remote command failed with exit status 1

If a make another call printing out the environment variables with the
"bash -c set" with SSHExec I get this list.

  [sshexec] Connecting to
  [sshexec] BASH=/bin/bash
  [sshexec] BASH_VERSINFO=([0]="2" [1]="05b" [2]="0" [3]="1" [4]="release"
  [sshexec] BASH_VERSION='2.05b.0(1)-release'
  [sshexec] DIRSTACK=()
  [sshexec] EUID=501
  [sshexec] GROUPS=()
  [sshexec] HOME=/opt/oracle
  [sshexec] HOSTNAME=Compaq
  [sshexec] HOSTTYPE=i686
  [sshexec] IFS=$' \t\n'
  [sshexec] LOGNAME=oracle
  [sshexec] MACHTYPE=i686-pc-linux-gnu
  [sshexec] MAIL=/var/mail/oracle
  [sshexec] OPTERR=1
  [sshexec] OPTIND=1
  [sshexec] OSTYPE=linux-gnu
  [sshexec] PATH=/usr/local/bin:/bin:/usr/bin
  [sshexec] PPID=10891
  [sshexec] PS4='+ '
  [sshexec] PWD=/opt/oracle
  [sshexec] SHELL=/bin/ash
  [sshexec] SHELLOPTS=braceexpand:hashall:interactive-comments
  [sshexec] SHLVL=1
  [sshexec] SSH_CLIENT=' 1053 22'
  [sshexec] TERM=dumb
  [sshexec] UID=501
  [sshexec] USER=oracle
  [sshexec] _=bash

If I compared it with the list when I login with SSH using PUTTY, the
and LD_LIBRARY_PATH, NLS etc, environment variables are missing.

Is it suppose to work like this? How can I solve it without creating a
on the server? If I try with "bash --login -c exp" I get an error saying
it can not run a binary file.


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message