Because I am passing them in command line. On 15-Sep-2017 1:27 PM, "Jean-Louis Halleux" <supp...@arsmarts.com> wrote:
> ** > Because you pass them on the command line or is there a kind of single > sign on mechanism ? > > On 15 Sep 2017, at 09:28, Abhi$hek <abhi.masc...@gmail.com > <abhi.masc...@gmail.com>> wrote: > > ** > No it's not asking for credentials. > > On 15-Sep-2017 11:25 AM, "Jean-Louis Halleux" <supp...@arsmarts.com> > wrote: > >> ** >> When you run the bat you created, does it prompt for username and >> password ? >> >> Example of line in your bat: >> D:\putty\plink.exe -l <user> -pw <password> <remote server hostname> >> /usr/opt/xxx/Runtime/test.sh CLOSE "%1” >> >> >> >> >> On 15 Sep 2017, at 09:09, Abhi$hek <abhi.masc...@gmail.com >> <abhi.masc...@gmail.com>> wrote: >> >> ** >> Yes it seems no space but please could you provide me any sample format >> for the bat file which will call .sh file from remote server. >> >> On 15-Sep-2017 10:30 AM, "Jean-Louis Halleux" <supp...@arsmarts.com> >> wrote: >> >>> ** >>> Dear AA, >>> >>> Can you confirm you pass username and password (with -u and -pw) on the >>> command line of plink ? Are there spaces in any of them ? >>> >>> Best regards, >>> Jean-Louis Halleux >>> ARSmarts Support >>> >>> On 14 Sep 2017, at 22:46, Jaffer Mahsoob <jmahs...@gmail.com >>> <jmahs...@gmail.com>> wrote: >>> >>> ** >>> Have you tried running the plink command using psexec (from >>> sysinternals/Microsoft) as the system account and seeing if it still >>> works? I assume the AR Server is running as system, so it may be that the >>> putty session info isn't available to system, etc... Something like psexec >>> -s plink (whatever the args are), see if plink, when run as system can >>> actually execute in the manner you require... >>> >>> Just a thought... >>> -Jaffer >>> >>> On Thu, Sep 14, 2017 at 12:52 PM, Abhi$hek <abhi.masc...@gmail.com> >>> wrote: >>> >>>> ** >>>> Thanks for your kind response. >>>> I have already tried with the simple text file creation and it worked >>>> perfectly. >>>> >>>> But it's still fails when I am trying out the required scenario with >>>> the help of AL or filter. >>>> >>>> Also via putty the Linux box as well as script is accessible from >>>> windows Remedy server. >>>> >>>> On 14-Sep-2017 8:00 PM, "Frank Caruso" <caruso.fr...@gmail.com> wrote: >>>> >>>>> Have you tried turning on Active Link logging? It may show you whats >>>>> wrong. >>>>> >>>>> Also, what I look to do in situations like this is take the task back >>>>> to simple steps. Forget about the remote call to the server. Just create a >>>>> simple batch file that creates a text file in the calling directory. >>>>> Something like this: echo Hello World > test.txt. That way you can figure >>>>> out more clearly where your program is not working. >>>>> >>>>> Also, this type of logic is better suited for filters than active >>>>> links. What will happen if your active link does run and calls the remote >>>>> program but then a filter runs that stops the submit/modify process for >>>>> whatever reason. Your ALink will then run again which may pose a problem. >>>>> >>>>> HTH >>>>> >>>>> Frank Caruso >>>>> >>>>> ____________________________________________________________ >>>>> ___________________ >>>>> UNSUBSCRIBE or access ARSlist Archives at www.arslist.org >>>>> <https://u1941115.ct.sendgrid.net/wf/click?upn=3EBUBmWICIYyZkm1MAWufUNWn78afQ4754FPHNDp-2BUUxJjDOQUTx0wm5fRlf0YBAUa-2FFQCyo7lToztcnv9YKY-2BztuAXWfjW8EhuG-2F-2FHLqx7-2BwIW7q8J0U-2F6t9vFOtrUYP-2FuFUIHatLqJABfoExgd-2FD1kG4-2FqDMFvyu00UL1P5lXUv1ePB4wMlVTFDeLym37UwRI9g-2B6qEaK1hrm3tLQhuEOwSPuMuNL-2FFSImrF2Wo22pGnaA5y-2FAvIdsxlvS-2B-2FRsXVqZjFQxX-2BBisTs8BNOisjzCKwThbEpllv2yOphtF-2FeIu1RJFdn5QYyD9SaGXofXjQDNxNs6jhXJpfzahgo7O0znEBcFnjyWHuEHMnTcjAHxJfeKD6D7PRUpcmFol9SHmUet86qrDAhtYI-2BERrjUHI43HDOoOrrnHPRw0EvG6THJR-2FcitkqzC2Sl44eopxM56p6Mcc486JSKWaMo-2BJoArQhxnC5G-2BEz36oL9kENGJHN-2BL1k-2FxjsxHogo-2F6vNdZL74gjpfKIRi93Xfgtymq1aDWZ-2BLzGegutCNwhjrhgMGjBgp9UMdzBWjQ7v9k6ptInogSWgy4IChK86tn13ggVwMVXKpM544azTok5HjLU6vq0a7gJRdWUFUYf19ZSpYSYDAiQoaOgSarD-2B6QvtfccoKlarRn-2BRE25yNyo24v5M1Yq09nBeppVc2D3Ge3RxXmnEba9p1lzmrvqke3QvmfGwIMxx0EFv-2FHRBk96zWSTiWzUBq23LrBRCoHVteyjM3ro2RiH8XnQhSUycRSvTPEATXD8KrmHWFevJjgn35LKBMcanRjjEtXqDk0RNHt1YDjrX4ZrM3Kvzt0R1okTae0z4-2BE4-2FmMlBomIhtqdI4F7wxIuvsDaUwr9PVjNtt2WQKvqV2PRIVjIQcmgqNli970BZ2dUTsUTcr4NHw8nUfwDWk-2F-2FSgz5t8NoZQjcnXg69cwXex2ciofqvOr5Nxq0ixQQaIh6P9tmi0XIVyY0Zd9DwphVDnA2Ee5p-2FaaotviF2MOVIekq9-2F2e1PGEXUG55z-2BqLsA-3D-3D_cufojti4v5Gi1CwX3FSQ1oz2a-2Fp0jHyKJq2uc6Mms3-2FV59obvP4ZYpmIBVqvon0fzVpRLLlzE27qFH9A0nRnxwRoI-2FXdYeBbsqSDApS2mXiKbwFSQfd-2FnOk1lwHKwHtXAYYifI6Wpgn9dVmS2NrdbFBzvpQIkLh7GACLWbyILF52XZjMdI7uiiWtfw7LERcdbmuMk-2FcPzlW8VV-2BXt00F-2Bw-3D-3D> >>>>> "Where the Answers Are, and have been for 20 years" >>>>> >>>> _ARSlist: "Where the Answers Are" and have been for 20 years_ >>> >>> >>> _ARSlist: "Where the Answers Are" and have been for 20 years_ >>> >>> >>> _ARSlist: "Where the Answers Are" and have been for 20 years_ >> >> _ARSlist: "Where the Answers Are" and have been for 20 years_ >> >> >> _ARSlist: "Where the Answers Are" and have been for 20 years_ > > _ARSlist: "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"