Hello,
I am on v12.3 and am trying to create a UNIX JOBS that makes an SFTP connection and moves files from the agent UNIX server to a Windows server.
UNIX page Shell Script
In The Process page
sftp -v -o IdentityFile=/home/automic_svc/.ssh/id_rsa -o PasswordAuthentication=no
CDLE_UI_UFACTS_UIM_Key@xx.xx.xx.xxcd /inbound
lcd /ifile/workfiles
put QN.P.INTERNET.BKP.LADT.SREPORT*
exit
The job makes the connection but it won't accept the commands. It still thinks it's on the agent server and any commands that are not Linux are not recognized. The job report shows the connection but no sftp prompt. When I run this from the command line on the agent server it works fine from the sftp prompt.
I've looked at the documentation and I don't see anything that says I can or can't do this. But command line seems to be limited to the UNIX tab in which case it doesn't run anything in the Process area.
Is this a case of I have to create a shell script with the commands and execute it with Automic? Or is there a way to make this work from within the JOBS?
Thanks
------------------------------
Developer
State of Colorado
------------------------------