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 <[email protected]> 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" <[email protected] 
> <mailto:[email protected]>> 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 <[email protected] 
>> <mailto:[email protected]>> 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 <[email protected] 
>> <mailto:[email protected]>> 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" <[email protected] 
>> <mailto:[email protected]>> 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-2BUUxJjDOQUTx0wm5fRlf0YBAl7ol15k-2FOfHmZW5gcCrKfYzNuG9-2BF0C9p-2BRfl2pZg99R-2BMR5ebZCA-2BJOsKHstGL-2FYxAyo7KEVw9aZeQnXPfZ5C1Pp-2BGqK19YODj3-2FJ9-2F59zhvav4Q2-2F0MAq-2BIGmEVjse05s2jXdbQu1a6vpzxzFe6vdYOW00rPK1JPkuIKCPzbHVl-2FwiJDdXTdChksNa2LN6uxI1VrGRS-2B8jJvhDBZIQl2x0hMxTKS1SdURCaMJJj-2Fd6k8xXSD-2BvbiEZZRrnhtFQawPqjfxA2ckFeJ5dvTNMeKg52H8ECEZq5GmXMcTqyy9eEqAsJ1fDzpLqC0bNKLBtvCDdHMWcl6pKfOYpSTk8yCD-2Bmix3-2Bf10AQiIVs-2FXG665A3zv-2BH0JExUWbowvjA9V_cufojti4v5Gi1CwX3FSQ1oz2a-2Fp0jHyKJq2uc6Mms38gn2HMdcagZgT-2BSMm0oMxGsjnN3GdyKO0XyWtDvcA0DKlW2soQoGKxN9kih4o391eHqDggExVj9nAxXRQI5lAKuJQmKNE8QFGOH1fSshIH5tFzxJJJHmu1UhArsma2TOtqA-2BuYUs4dypR7KpqfN98r00dO4q9PxKFxA24hgTmMSQ-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_


_______________________________________________________________________________
UNSUBSCRIBE or access ARSlist Archives at www.arslist.org
"Where the Answers Are, and have been for 20 years"

Reply via email to