I have added the exit command on the Putty command.txt and also an exit command on the batch file.
Putty will automatically close. How can we tell PAM that putty already closed?
Putty Command:
putty.exe -ssh -load "INTFTP" -l dp -pw mypassword
/home/dp/bin/jobmake ALPINE_inbox_get.cfg
exit
@echo off
cd \
D:
cd PUTTY
putty.exe -ssh -load "INTFTP" -l myuser -pw mypassword -m D:\PUTTY\Command.txt
echo %errorlevel%
exit