Re: Couldn't wait for ssh process: No child processes

Read the first part of my original email where swatch can launch script2
directly and it will work when I tee the output but fails without piping the
output to tee. This makes me think that it's something related to the
timing or relationship of the child process spawning by the sftp code.

Also, if you Google this error message, you will see that someone had the
same problem launching sftp from SAP via a script. So it doesn't seem to
matter what is launching the sftp command but there has to be something
in common.


On Wed, Mar 3, 2010 at 3:00 PM, Dominik George <nik@xxxxxxxxxxxxx> wrote:

Look at what exactly swatch spawns. Script1 will spawn a shiny new shell
for script2, swatch probably doesnt.
Sent from my Android phone with K-9 Mail. Please excuse my brevity.

"Dave Jones" <davejones70@xxxxxxxxx> schrieb:

RedHat Enterprise Linux 5.3
OpenSSH_4.3p2, OpenSSL 0.9.8e-fips-rhel5 01 Jul 2008

I am using swatch to monitor the vsftpd log and the secure log for FTP
and SFTP inbound transfers then trigger a script to send the file
outbound. When I use the sftp command to send a file outbound, I am
getting "Couldn't wait for ssh process: No child processes" with a
return code of 255. Here's the strange thing:

swatch -> -> sftp command -> fails with RC 255
swatch -> -> -> sftp command -> successful with RC 0
swatch -> -> sftp command piped through tee -> successful with
RC 255 is just a simple script that calls with the same
arguments that swatch passed from the log line.

Relevant Pages

  • [HPADM] [SUMMARY] RE: SFTP Scripting
    ... We are trying to set up an SFTP environment with a partner. ... need to now is to script it so it is non-interactive. ... Echo "Ending of test sftp script ... ...
  • Re: Ssh and sftp via here document
    ... The file transfer is performed by sftp during an ssh ... session in which the user running the script temporarily becomes ... can be done without storing cleartext passwords in the script. ...
  • Re: convert FAT32 to NTFS problem?
    ... sDiskLetter = obiLogicalDisk.DeviceID ... >>> Your script is always launching convert.exe on the local machine. ... >>> script connects to the remote computer using WMI, and gets the drives of the ...
  • Re: hangs (2)
    ... >>>main script runs a loop that just launches each sub process at a certain ... The SUBscript is being launched ... > from the MAINscript which is in a continuous loop firing off the ... MAINscript to wait for each one to complete before launching a different ...
  • Re: sftp exit codes?
    ... I am using scp along with BatchMode on command line. ... better choice over sftp. ... of exit codes for the sftp program and what each one ... I'm actually porting a shell script that use to use ...