G
Guifre
Hello,
I'm using Runtime.getRuntime().exec(procedureFile) to run external
system commands stored in procedure files, and I get their output from
process.getInputStream().
This works OK in Windows, but when I try it in a Unix system I get the
direct output (i.e. procedure echos) but not the output from the
programs run by the procedure. For example:
#!/bin/sh
PATH=/bin:/usr/bin:/usr/local/bin:/usr/local/sysadm/bin:
export PATH
echo "Starting remote copy for $1"
scp -r $1 map@remotehost:/apps/myapp
echo "End of remote copy for $1"
would return the two echo messages, but not the output from scp.
Is there something that must be done or declared to get all the output
in Unix?
Thanks for any hint,
Guifre
I'm using Runtime.getRuntime().exec(procedureFile) to run external
system commands stored in procedure files, and I get their output from
process.getInputStream().
This works OK in Windows, but when I try it in a Unix system I get the
direct output (i.e. procedure echos) but not the output from the
programs run by the procedure. For example:
#!/bin/sh
PATH=/bin:/usr/bin:/usr/local/bin:/usr/local/sysadm/bin:
export PATH
echo "Starting remote copy for $1"
scp -r $1 map@remotehost:/apps/myapp
echo "End of remote copy for $1"
would return the two echo messages, but not the output from scp.
Is there something that must be done or declared to get all the output
in Unix?
Thanks for any hint,
Guifre