Does your AR System service run as a different user then you have tested plink as?
Often the first time you connect to a UNIX host via plink, putty, etc, you need to accept the remote host's keys. If you did that as yourself logged into Windows and the server runs as a different account then it also needs to be done under that account. There is some info on it here: https://forums.ni.com/t5/LabVIEW/How-to-automatically-accept-ssh-host-key/td-p/1223974 Jason On Wed, Sep 13, 2017 at 11:06 AM, Abhi$hek <[email protected]> wrote: > ** > If trying via plink on CMD line it's working fine but not working via AL > or filter. Please suggest. > > On 13-Sep-2017 5:56 PM, "Grooms, Frederick W" <[email protected]> > wrote: > >> What happens if you run the plink command in a CMD window on the server? >> >> Fred >> >> -----Original Message----- >> From: Action Request System discussion list(ARSList) [mailto: >> [email protected]] On Behalf Of Abhishek Anand >> Sent: Wednesday, September 13, 2017 3:03 AM >> To: [email protected] >> Subject: Can we call shell script on remote server via AL run process >> command? >> >> Hi Experts, >> >> Please could you assist in below scenario:- >> >> >> Requirement is stated as below:- >> >> 1. On the change in Status of a field to CLOSE in one of the form , it >> should trigger a script residing in a remote unix box. >> >> >> I am using below logic:- >> >> Created an AL with Run process Command Line as shown below:- >> @@: c:/test.bat <BMC Remedy Form Name>_"$Request ID$" >> >> Also test.bat consist of the below lines:- >> >> D:\putty\plink.exe <remote server hostname> /usr/opt/xxx/Runtime/test.sh >> CLOSE "%1" >> >> Remote server script path - /usr/opt/xxx/Runtime/test.sh >> >> The unix box as well as script is accessible via putty on the windows box >> where remedy is installed. >> >> But its not working. >> >> >> Early response will be highly appreciated. >> >> Regards, >> AA >> >> ____________________________________________________________ >> ___________________ >> UNSUBSCRIBE or access ARSlist Archives at www.arslist.org >> "Where the Answers Are, and have been for 20 years" >> > _ARSlist: "Where the Answers Are" and have been for 20 years_ _______________________________________________________________________________ UNSUBSCRIBE or access ARSlist Archives at www.arslist.org "Where the Answers Are, and have been for 20 years"

