Hi,
I am trying to run a simple UNIX command after i successfully executed SFTP command as shown below.
-----------------------------------------
echo 'Step-1'
sftp -vvv -b path
exit
echo 'Step-2'
------------------------------------------
In above script it executes from the 1st 'echo' command till the 'exit' then comes out of the script. But my requirement is to also execute the 2nd 'echo' command. So is there a way to run further UNIX command after SFTP, even by calling another script to run further command is fine.
My problem is not in using SFTP command, but not able to execute any UNIX command after i successfuly completed SFTP. Currently it exits out of script after SFTP command, which i need to use. Is there a way to exit out of SFTP ?
Thanks