I have a Unix shell program which runs sftp (sftp2) in batch mode to transfer files between a Unix machine and a linux machine.

It worked fine until I put "&" and let it run in background mode. It was hanging up on the SFTP command.

Does anyone know what might be the problem and how to make it run in background mode?