Sftp working on Linux but error on HP UX

Hi

the below two line in my sh work fine in Linux but when I run it in HP UX it throws error saying "No such file or directory (-)."

can anyone pleas let me know what is wrong. Any help is appreciated.

INPUTFILE="$(echo ls -1t | sftp -b- $SFTPSERVER:$SFTPDIR |grep ^LK| head -1)"
echo get $INPUTFILE | sftp -b- $SFTPSERVER:$SFTPDIR | sed "s/^/$RUN_DT /g"

Thanks
MM

sftp is not native on HP-UX, it belongs to the optional secure shell bundle, so tart by checking if it exists... then know the version (platform) of HP-UX can help you know...