Sessions Not Closed After 'Execute Unix/Linux SSH Script' Activity

Hello,
Wondering if anyone out there has some experience with running "Execute Unix/Linux SSH Script" activities against a "Unix/Linux System" target and able to help?
We have a process that runs an ssh script on a Unix/Linux target and in the 'Target' tab we specify to open a new session on the target we want.  It was our assumption that once the script is executed successfully that the session would be closed, however, that does not appear to be the case.  It seems the target receives a "disconnect" from CPO but if we run "who -a" on the host, the session still exists.  We are trying to run our activity/script in a while loop with a 60 second pause in between, and after 30 loops (30 minutes) the next call fails.
What appears to be happening is, the session opens on the Linux target and every occurrence of the "Execute Unix/Linux SSH Script" activity is merely connecting and disconnecting using the same session that was originally opened.  But after the 30 minute idle timeout on the Linux host, the session is closed and the next occurrence of the SSH Script activity fails with the following error:
This activity xyz did not return within the expected time period and was abandoned.
Is there a setting in the target properties or activity properties that we're missing here??
Thank you for any feedback or suggestions that may be out there!
Neil

Neil,
I will discuss with you through email to find what exactly happened in your case.
Thanks,
James

Similar Messages

  • Session not closing after redirecting from BSP View

    Hi All,
    I am trying to redirect to a new application (WD ABAP) from an existing BSP View by using
    CALL METHOD runtime->server->response->redirect( url = lv_url1 ).
    The session still exists in SM04 after redirecting but I want the BSP session be closed.
    Any pointers to how this can be done??
    "navigation" global object is not recognized in the View it seems because I was thinking of using
    navigation->exit (url).
    navigation->response_complete().
    but it gave complie errors.
    Awaiting your suggestions..
    Thanks and Regards
    Avinash

    Please have a look at the BSP application SYSTEM => page => sessionexit.htm

  • Sessions not closing after timeout

    I'm having trouble where my sessions aren't closing after the
    60 minute timeout. I'm checking to see how long the sessions are
    staying open, and they are staying open past the 60 minute timeout
    I have defined. Is there somewhere else I need to modify something
    to get them to end?

    Did you try changing that 60 to something like 10 minutes
    just to rule that out as a bug?
    Here's an small Application.cfc that works using cflogin with
    a timeout if this is of any use to you
    <cfcomponent>
    <cfset This.name = "yourappname">
    <cfset This.Sessionmanagement="True">
    <cfset This.loginstorage="session">
    <cffunction name="OnRequestStart">
    <cfargument name = "request" required="true"/>
    <cflogin idletimeout="5">
    <cfif NOT IsDefined("cflogin")>
    <cfinclude template="loginform.cfm">
    <cfabort>
    <cfelse>
    <cfif cflogin.name IS "" OR cflogin.password IS "">
    <cfoutput>
    <h2>You must enter both the User Name and Password
    fields.
    </h2>
    </cfoutput>
    <cfinclude template="loginform.cfm">
    <cfabort>
    <cfelse>
    yourldap lookup
    <cfif loginIsGood>
    <cfloginuser name="#cflogin.name#"
    Password="#cflogin.password#" roles="">
    <cfelse>
    <cfoutput>
    <H2>Your login information is not
    valid.<br>Please Try again</H2>
    </cfoutput>
    <cfinclude template="loginform.cfm">
    <cfabort>
    </cfif>
    </cfif>
    </cfif>
    </cflogin>
    </cffunction>
    </cfcomponent>
    loginform.cfm
    <H2>Please Log In</H2>
    <cfoutput>
    <form action="#CGI.script_name#?#CGI.query_string#"
    method="Post">
    <table>
    <tr>
    <td>user name:</td>
    <td><input type="text"
    name="j_username"></td>
    </tr>
    <tr>
    <td>password:</td>
    <td><input type="password"
    name="j_password"></td>
    </tr>
    </table>
    <br>
    <input type="submit" value="Log In">
    </form>
    </cfoutput>

  • Backend BSP session not closing on server after closing the window

    Hi All,
    We have SAP EP (7.0 SP21) and there is a BSP transaction ivew (Interaction Center ) intergrated in the portal. The issue is when the user performs any transactions inside the BSP and then closes the browser, session remains on the server till the timeout. Is there a way to end those sessions on server after closing the browser immediately?
    Portal domain : xx.mycomp.com
    ABAP system domain :mycom.com
    Should the domains be same for the DSM of Portal to work or is there any solution that can be considered.
    regards
    Uday

    Hi Uday,
    These are the main issues that can cause issues with DSM:
    JavaScript Origin Policy:
    Scripting
    between different domains is not allowed because of “JavaScript origin policy”.
    Also
    communication between mixed protocols (http\https) is forbidden.
    Therefore
    the portal server and the content server must be on the same domain and must
    use the same protocol.
    For
    detailed explanation see:
    http://mozilla.org/projects/security/components/same-origin.html
    Popup Blocker:
    •Popup blockers may cause troubles
    in relation with SRA feature.
    •Terminator handles notifications in
    new window when current window is being destroyed (logoff, closing browser
    window) – popup blocker prevents the opening of new window, hence no session
    handling performed.
    please also check SAP Note #596698 for more information typical problems and troubleshooting.
    In general, the 2 domains should be the same.
    xxx.mycomp.com, meaning that first part of the url can change but what comes after should be the same domain.
    Best regards,
    Etay

  • The TCP/IP connection does not closed after a VISA close

    I am using the VISA functions to communicate with a Sorenson SGA power supply from a Windows XP computer.  I have the VISA TCPIP Resource defined in MAX and use this alias name in the VISAResourceName for the input to the VISA Open.  Then I write a SCPI command, such as *IDN?, and read the repsonse.  Then I close the VISA session.  When I look at the TCP statistics using the netstat -n command, I get the following response:
    Proto           Local Address                 Foreign Address    State
    TCP            10.10.10.9:3881              10.10.10.1:111       TIME_WAIT
    TCP            10.10.10.9:3882              10.10.10.1:111       TIME_WAIT
    If I query the ID again, I get 2 more TCP connections with different local ports numbers.  Every time I perform the query, I get 2 more TCP port connections at different local ports.  It takes about 1 minute for the TIME_WAIT's to time out.  If I query the Sorenson enough, I can fill up my allowable local port connections.
    1)  Why doesn't the TCP connections go away after the VISA Close?
    2) Should I be opening and closing the VISA session every time I want to talk to the Sorenson?
    3) What does the VISAResourceName control or constant actual do to resolve the alias into a IP?
    This Sorenson power supply does not seem to be very quick to repsond to TCP requests.  If I set the timeout on the VISA Open to anything less the 100ms, I cannot get a session open every time.  It will fail about 50% of the time.
    Has anyone had experince talking to the Sorenson power Supplies using VISA TCPIP?
    Thanks,
    Julia

    Hi Julia,
    Let me try answering your questions here.
    1) I'm actually currently looking into this to see if this is expected behavior, and I'll definitely post back to let you know what I find.
    2) You do not need to close a VISA session everytime you want to communicate with the device, you can leave the same session open and keep using that session, instead closing it out at the end.
    3) The VISA aliases and what they correspond to are stored in a visaconf.ini file. There is more information about this file and where it is located on your hard disk in this KnowledgeBase article here. This visaconf.ini file is checked to see what the actual resources being looked up are.
    Let me know if I answered your questions, I will write back with more information on question 1.
    Rasheel

  • ViClose session not called after Read operation Timeout in an IVI COM driver

    Hi everybody
    I have a small VI sample that is initializaing an IVI COM driver for an OPM instrument, set some parameters into the instrument then is doing a single Read power measurement. My Read operation receives a single parameter called MaxTimeout that user could change depending on his own interest. Inside the Read function I change temporarily the VISA query timeout to user timeout but at the end of Read operation the original VISA session timeout is reverted to its original value before Read operation was called. If the Read operation timeout is long enough for the Read operation to complete ( 100 ms or more) the VI is doing its job and when finished the viClose is called twice for DefaultHandler and for OpenHandler.
    If the Read operation timeout value decrease ( 50 ms) then Read operation could not be completed and a Read Operation Timeout error is thrown from inside this method. This error is then propagated trough Error path until the VI end in a Simple Error Handler. Now on my VI I close all open references to my driver interfaces but I don't know why VISA itself is not calling viClose on the DefaultHandler and OpenHandler as in the case when was no VI error. I could see all these diferences in my NI Spy window and I could post this if that could be of any help. Bear with me cause I am more a C, C++, VB programmer and much less of a LabVIEW programmer. BTW the Error Handling from LabVIEW looks a a little weird and the only sure thing is that I wired in Error In and Error Out path in all my VI calls. What kind of error handling should I perform on the Read method in order for VISA to close properly both OpenHandlers even if there is an error in my VI?
    Thansk
    sorinvalea

    So viClose is not called by VISA after an error takes place in a VI that is calling some operations on an IVI COM driver.
    I discovered that all VI sessions opened trough VI that encountered a timeout error in Read operation and that were not properly closed after VI completed are in fact viClose by the LabView itself when I am closing LabVIEW application.
    So these left over open vi sessions are kept aside by LabVIEW until it closes itself and then clean them one by one by calling viClose on them....

  • Why the photo app is not closing after i finish, when i take a picture accessing directly from home screen. the location is draining my battery if I'm not closing the app by double click home button. in iOS 6 was not like this

    When im taking a picture directly from home screen after im finished the application remain open. This app is ussing the location and if im not closing like other applications by doble click the home button the batery will finished fast. On the other IOS 5 and 6 was not neccesary to unblock the phone and bouble click the home bottom.

    Reinstalling OS X Without Erasing the Drive
    Boot to the Recovery HD: Restart the computer and after the chime press and hold down the COMMAND and R keys until the menu screen appears. Alternatively, restart the computer and after the chime press and hold down the OPTION key until the boot manager screen appears. Select the Recovery HD and click on the downward pointing arrow button.
    Reinstalling OS X Without Erasing the Drive
    Repair the Hard Drive and Permissions: Upon startup select Disk Utility from the main menu. Repair the Hard Drive and Permissions as follows.
    When the recovery menu appears select Disk Utility and press the Continue button. After Disk Utility loads select the Macintosh HD entry from the the left side list.  Click on the First Aid tab, then click on the Repair Disk button. If Disk Utility reports any errors that have been fixed, then re-run Repair Disk until no errors are reported. If no errors are reported click on the Repair Permissions button. Wait until the operation completes, then quit Disk Utility and return to the main menu.
    Reinstall OS X: Select Reinstall OS X and click on the Continue button.
    Note: You will need an active Internet connection. I suggest using Ethernet if possible because it is three times faster than wireless.
    Alternatively, see:
    Reinstall OS X Without Erasing the Drive
    Choose the version you have installed now:
    OS X Yosemite- Reinstall OS X
    OS X Mavericks- Reinstall OS X
    OS X Mountain Lion- Reinstall OS X
    OS X Lion- Reinstall Mac OS X
         Note: You will need an active Internet connection. I suggest using Ethernet
                     if possible because it is three times faster than wireless.

  • Expenses not closed after year end

    Dear All:
                     I have a query, our last fiscal year ended at 30.06.2009 but upon analysis of some GLs relating to expenses i observed that they were not closed. Principally they should have been closed automatically as the year ended but they did not. What can be the possible cause. Please guide if there is any problem in back end configuration for these expenses GL relating to manufacturing costs.
    Regards

    As explained earlier in couple of instances above, there is no closing as such and once you have done the carry forward of the balances, you would find that the B/S accounts have been brought forward but the P&L Accounts (Expense & Revenue) Accounts have been transferred to the Retained Earnings Account. At the year end the system calculates the net earnings amount by deducting total liabilities from the total assets and posts the same into the Retained Earnings Accoungs, at the same time, the B/S account balances are carried forward to the new fiscal year. You can also run a GL Balance Dsiplay Report using FAGLB03 and would observe that in the opening balance in case of P&L A/c indicated as "Bal. Carryforward" is zero but in case of B/S accounts there is a positive or negative figure depending upon debit or credit in last year's balance.
    Hope this helps.
    Regards

  • TcpIP connection to remote server not closing after each call.

    using urlconnection to connect to a remote server does not close tcp connection after use. Any ideas on how to force this closed.
    This inturn causes subsequent calls to the remoteserver to use the existing tcp connections, slowing down the over <br>all connections because the remote server is not able to handle multiple requests using the same connection.
    We are using a unix box running solaris 8.0 I believe and the <br>connection to the remote server is done over a dedicated line.
    Here is what the code looks like. I believe I am doing all that I can to force the stream objects closed so that there is no lingering connections. Is there anything that I can do from a code perspective to assure that after each transaction all stream objects are dropped and closed so that the tcp connections close. Also, could there be other reasons why these connections stay open.
    pls help.
    try {
    // Read the Login URL net connection output
    URLConnection conn = new URL( url ).openConnection();
    boolean inputOK = true;
    if ( testInput ) {
         InputStream inConn = conn.getInputStream();
         InputStreamReader inStream = new InputStreamReader( inConn );
    // read input stream for OK/FAILED
    BufferedReader in = new BufferedReader( inStream );
    String str = null;
    Debug.println( this, "Response read" );
    while ( ( str = in.readLine() ) != null ) {
    System.err.println( str );
    if ( ( str.indexOf( SUCCESS ) >= 0 ) || ( str.indexOf( LC_SUCCESS ) >= 0 ) ) {
    Debug.println( this, "Found success " + str );
    inputOK = true;
    break;
    else if ( ( str.indexOf( FAILURE ) >= 0 ) || ( str.indexOf( LC_FAILURE ) >= 0 ) ) {
    Debug.println( this, "Found failure " + str );
    inputOK = false;
    break;
    in.close();
         inStream.close();
         inConn.close();
         in = null;
         inStream = null;
         inConn = null;
    Debug.println( this, "End of Response read" );
    }

    This is an issue with the browser rather than Java.
    You are getting the same response, because the browser checks it's cache first and keeps serving up the same info from the cache.
    Add a parameter to the URL so that the browser thinks you are submitting a form. Use the new methods in the URLConnection class, or you can manually add a GET parameter to the URL.

  • In House Cash account balance did not reduce after executing F111

    Hi,
    This is regarding external payment via IHC.
    Subsidiary 3000 with IHC account 3000010 is paying Vendor A.
    3000 execute F110 payment run and AP open item is cleared.
    Payment order is generated and posted. Payment request is created.
    IHC 3000010 account balance decrease by the payment amount.
    IHC 1000010 account balance increase by the payemnt amount.
    Company code 1000 with IHC account 1000010 execute F111 to pay the external payment.
    After payment request is executed. Balance in 100010 does not decrease.
    Why is it so?
    I dont think this is correct. Appreciate your response and assistance.
    Cheers.

    Hi,
    This is regarding external payment via IHC.
    Subsidiary 3000 with IHC account 3000010 is paying Vendor A.
    3000 execute F110 payment run and AP open item is cleared.
    Payment order is generated and posted. Payment request is created.
    IHC 3000010 account balance decrease by the payment amount.
    IHC 1000010 account balance increase by the payemnt amount.
    Company code 1000 with IHC account 1000010 execute F111 to pay the external payment.
    After payment request is executed. Balance in 100010 does not decrease.
    Why is it so?
    I dont think this is correct. Appreciate your response and assistance.
    Cheers.

  • RFC_REMOTE_PIPE is Returning 1 alwasys and not able to execute Unix shell script

    Hello All,
    I am trying to execute a simple unix shell script from ABAP.
    What I did so far..
    1. created a test.sh file  with single command echo "Hello".
    2.  placed this file on application server /Usr/sap/test.sh
    3. executing ABAP program which as FM RFC_REMOTE_PIPE
    CODE:
    CALL FUNCTION 'RFC_REMOTE_PIPE'
       DESTINATION 'SERVER_EXEC'
    EXPORTING
       command  = lv_command
       read          = 'X'
    TABLES
       pipedate    =  lt_stdout
    EXCEPTIONS
    system_failure  = 1
    communication_failure = 2.
    if i populate lv_command  = echo "hello" it works fine
    if i give .sh file path in lv_command it is not working. it returns 1.
    Please help...
    I was searching SDN i found that rfcexec service should be enabled... how do i check that..
    i checked t code  \SMGW , i don't see any output...
    i checked FM GWY_READ_CONNECTED_SYSTEMS, i don't hsee anyting related to unix...
    Please suggest.

    I resolved the issue.
    It was issue with permission.
    Script file should have full permission ( Mode 777)..
    Thanks everyone.

  • Session not destroyed after restart

    Hi all,
    On my Application server 8.1_02 EE as well as 8.2 PE i have an application.
    The session is destroyed on log out... but after a successful restart of the application server, the session is kept active..
    Is this a normal behavior, or is there something that i must be aware of?
    Thanks,
    Scotty

    Hi Ronald,
      I once encountered a similar problem when calling a BSP application in a GUI HTML control. I used a copy of session_single_frame in my BSP application and it worked fine when I called the BSP application from SE80 or by entering the URL in the browser directly but I couldn' t get it to work in the HTML control.
    The solution then was to use an additional URL Parameter called sap-syscmd=NOCOOKIE. This tells the request handler on the Web AS to retrieve the session ID from the URL and not to use a cookie.
    Hope this helps,
    Andy

  • EWA session not created after refresh_session in SDCCN

    Hi All,
    I have configured EWA in our SolMan 7.1 for our managed system SAP BW 7.0, and to test it, I've been trying to create an adhoc EWA report manually. However, after the completion of refresh_session tasks in the managed system's SDCCN, no EWA session is being created.
    I have already followed instructions in SAP Note 1769513 - EWA not generated - session data is overdue (red flag status), but I'm still stuck with this error.
    Please advise.
    Thanks.

    Hi,
    You are using solution manager 7.1, so here are couple on KBAs which can help you to get the EWAs.
    1907383 - How to setup and troubleshoot EarlyWatch Alert reports in SAP Solution Manager 7.1
    1924199 - EarlyWatch Alert Management SP10+
    Also follow the recommendations of RTCCTOOL.
    To generate an Ad-hoc EWA, yo can look into this wiki.
    How to create an Ad Hoc EWA report in Solution Manager 7.1 - Solution Manager - SCN Wiki
    Further, to understand and troubleshoot, please read the EWA workflow
    The EWA workflow - a closer look - Solution Manager - SCN Wiki
    I hope, all this should help you in fixing your issue.
    Regards

  • Sessions not closing

    Has anyone had a problem getting sessions to go away? Even in simple examples, like...
    con.open
    con.close
    con.dispose
    con = nothing
    the session will still be there in the v$session table. What am I doing wrong?
    Stephen

    Oops, o.k. so at least it IS mentioned in the documentation, so I appologise for my complaint on that score, must remember to triple check before posting (somehow missed it the first couple of times).
    It's still annoying though. However, I assume the choice not to implement it was taken for a highly technical reason (i.e. it'd be excesively hard to do :) ), and since it's actually written in the documentation that it doesn't do it, and so presumably embarassing the developers every time they look at it, (and yet it's still not been done), it must be a really technical reason. So I expect it's unlikely to get changed any time soon just because it annoys me, so I suppose we'll just have to live with it. (After all, If I really cared that much, I could always write my own connection handling wrapper...)

  • Lsmw-Bdc Session Not Closed

    Hi all,
       In as91 transaction i did lsmw.
       After 14 steps the data also processed still am getting one thing i.e
       Transaction ended Unexpectedly.
       In that screen am getting like this (you are existing the trans
                                                             do you still want to keep the batch i/p data [yes] [no].)
    Both yes n no i enterd but the session is not close it repeats , again it goes to as91 initial screen..
    Pl guide me..
    Regards:
    Manoj

    HI,
    As per my understanding you are passing the more then one record to the LSMW.
    LSMW creates the Session with all the records. Each time it processes the record the set of screen will be displayed with the values populated by data you passed. this process will happen number of times as number rcords you pass to LSMW.

Maybe you are looking for

  • AR Invoice Commission field is not available in XL Reporter

    Hello All, I am trying to create a commission report in XL Reporter. I have a 'Commission %' field in INV1 table of SAP B1 (AR invoice) which is not available when I try to pick it up from the formula builder in XL Reporter. It is not a User-Defined

  • Wb_rt_api_exec.run_task

    What is the function owbrt.wb_rt_api_exec.run_task intended for? I can't find it in this forum nor on Google nor on OTN nor in the OWB documentation. Why is it there and why is it never mentioned? Best regards, Erik Ykema

  • BOM selection at the time of confirmtion

    Dear Experts, My client has requirement that BOM should be selected at the time of confirmation if there are multiple BOM's are available for the same material.Is it possible ??. Edited by: manjit_pune on Mar 7, 2012 10:07 AM

  • Bug in webos 1.31: Have to re-enter password every hour hours for yahoo contacts

    Yahoo email works fine. Google contacts works fine. Thanks, Sapag Post relates to: Pre p100eww (Sprint)

  • Finder showing terrible available size

    First the computer ran out of disk space on a 500 GB MacBook Pro.  Searching the harddrive, I discovered 250 gigabytes worth of Apple log files.  I deleted them.  The available disk space did not change. I then rebooted the computer off a Lion Boot d