[RESOLVED] How to disown a process?

This is my script (it's part of something larger, but is enough for now):
#!/bin/sh
setsid test_run.sh
What I'm trying to do is to create a proc that runs by itself and deals with its own input/output and doesn't bother my shell or the script from which it is started.  I thought about using nohup, but would prefer to never see the nohup.out file.
When I run the above, I see the output of the running proc displayed and the command line from where I started this becomes unusable.
Last edited by publicus (2014-09-10 15:04:22)

Trilby wrote:setsid sounds like what you want, you just need to redirect the standard streams.  Depending on what it is you are "disowning" one might not commonly tamper with stdin, but you could do that to.  Just for stdout/stderr you'd do `setsid your_command >/dev/null 2>&1 &`
This worked very well.  Thank you.

Similar Messages

  • How does the sync process work?

    Hello all,
    I want to know what will happen if both the local and network homes have been modified for a period of two weeks and then the user chooses to synch? Will the sync process ask which 'home' is the most recent or will it replace older files with newer files?
    How does the sync process manage the task of keeping both sides the same?
    Thanks,
    -Andrew G

    If a file exists on both the local and the network directory it will pop up with a conflict and ask how to resolve it.
    If the file is only on the local machine and in a place you have not excluded from syncing it just syncs.
    If the file has been previously synced but there has been no change to the file since last sync I think it just rewrites the file to the server homedir... (Don't quote me on this one... it might not even bother with it, I'm not sure how smart the sync service is)
    You can set automatic conflict resolution within WGM but as far as I know you have to do it by clicking on preferences then switching to the details tab, then click on Home Sync....com.apple.homesync. Click on the Always drop down and click the add new key button then change the new key to either Login or Logout Non-Preference sync conflict resolution and or Background sync conflict resolution and decide if MobileHome or NetworkHome Wins...or copy. In most cases I would think that you would want the MobileHome to Win.. of course there is always potential for someone to make a huge mistake on a file and pray its still fine on the server but... your call.

  • How to do parallel processing with dynamic internal table

    Hi All,
    I need to implement parallel processing that involves dynamically created internal tables. I tried doing so using RFC function modules (using starting new task and other such methods) but didn't get success this requires RFC enabled function modules and at the same time RFC enabled function modules do not allow generic data type (STANDARD TABLE) which is needed for passing dynamic internal tables. My exact requirement is as follows:
    1. I've large chunk of data in two internal tables, one of them is formed dynamically and hence it's structure is not known at the time of coding.
    2. This data has to be processed together to generate another internal table, whose structure is pre-defined. But this data processing is taking very long time as the number of records are close to a million.
    3. I need to divide the dynamic internal table into (say) 1000 records each and pass to a function module and submit it to run in another task. Many such tasks will be executed in parallel.
    4. The function module running in parallel can insert the processed data into a database table and the main program can access it from there.
    Unfortunately, due to the limitation of not allowing generic data types in RFC, I'm unable to do this. Does anyone has any idea how to implement parallel processing using dynamic internal tables in these type of conditions.
    Any help will be highly appreciated.
    Thanks and regards,
    Ashin

    try the below code...
      DATA: w_subrc TYPE sy-subrc.
      DATA: w_infty(5) TYPE  c.
      data: w_string type string.
      FIELD-SYMBOLS: <f1> TYPE table.
      FIELD-SYMBOLS: <f1_wa> TYPE ANY.
      DATA: ref_tab TYPE REF TO data.
      CONCATENATE 'P' infty INTO w_infty.
      CREATE DATA ref_tab TYPE STANDARD TABLE OF (w_infty).
      ASSIGN ref_tab->* TO <f1>.
    * Create dynamic work area
      CREATE DATA ref_tab TYPE (w_infty).
      ASSIGN ref_tab->* TO <f1_wa>.
      IF begda IS INITIAL.
        begda = '18000101'.
      ENDIF.
      IF endda IS INITIAL.
        endda = '99991231'.
      ENDIF.
      CALL FUNCTION 'HR_READ_INFOTYPE'
        EXPORTING
          pernr           = pernr
          infty           = infty
          begda           = '18000101'
          endda           = '99991231'
        IMPORTING
          subrc           = w_subrc
        TABLES
          infty_tab       = <f1>
        EXCEPTIONS
          infty_not_found = 1
          OTHERS          = 2.
      IF sy-subrc <> 0.
        subrc = w_subrc.
      ELSE.
      ENDIF.

  • How to call BPEL process in JSP page

    Hi
    I am new to BPEL.please help me how to call BPEL process in JSP page.
    Thank You...

    Check this thread ....
    How can i call asyncronous BPEL process from Java Class????
    Tom..

  • How to configure quality process with batch management.

    Dear Friends,
                we have a scenario,our client receive goods with 101movement type  into quality inspection stock.
    once stock is passed quality check stock,then we will take into unrestricted stock with 321 movement type.
    failed in quality test will  be rejected.please give me suggestion how to map the scenario.while i am testing
    the process in my sandbox,its asking batch number.its not allowing me to post unrestricted stock with 321
    movement type.how to make batch as optional in this scenario?if batch is mainted for the material,how to
    configure the process.we are not using QM module.
    please suggest me.
    Regards,
    Varun

    In Batch management config in Logistic general, Check for the movement type 101 & 321 whether batch creation has been activated to Manual, Automatic, or no creation. In your case it looks like for mvt 321 batch creation is set to manual & for 101 no creation.
    if batch creation is set to manual, enter a manual batch no & proceed.
    But to cross verify wheter 101 has generated batch or not please check the stocks in MMBE.
    Hope this helps.
    Regards
    Mithun

  • How does the GR processing time affect the scheduling of the process order & the latest start date in the operation.

    Hi
    Can anyone explain  how does the GR processing time affect the scheduling of the process order & the latest start date in the operation overview.

    Hi
    GR processing time means number of workdays required after receiving the material in storage.
    Check this link:GR Processing time
    Regards,
    Anupam Sharma

  • How much ram and processing power in my imac will meet my graphic design needs?

    Hi,
    I'm in the market for a new imac. I'm trying to figure out how much ram I'll need and which processor will be sufficient for my graphic design needs.
    I'm gonna need it to be robust enough to have InDesign, Photoshop, and Illustrator open at once along with spotify, safari with many tabs open, and a couple other apps including evernote and game from time to time. Also, I'm gonna be managing a good deal of fonts in font explorer. How much ram and processing power will I need in my imac to keep everything snappy with all these apps going at the same time?
    Any advice on this would be much appreciated. Feel free to include any other relevant information you think I should know.
    Thanks, Nick

    Computers are out of date when you open the box
    Ok, getting serious, that iMac should be a viable workhorse for what you want for a good five years, and taht depends on how much ram you put in it, add really fast external storage, and so on.
    Didn't throw this in earlier so as to not influence the discussion: my daughter is the senior art director, VP, at a graphics design firm in NYC.  Has been in the business for a number of years.  When she changed out her Mac at work, bought, or company bought, the 27" iMac model just before the latest, with maxed out CPU/GPU, and storage.  They maxed the memory to 32 GB for her, then added a 30" Apple cinema display so she has almost 5' of display in front of her.  There is nothing she cannot have open all spread across that display area.  She works almost exclusively in print media, occassionally condescends to do web stuff.  And has a massive array of RAID drives hanging on it.  But that is a setup an individual would be hard pressed to go with.
    At home she uses a MacBook Pro with top cpu and display but that is all.
    The point, just how massive do you want to go depends on how fast you have to work; in the office where time is money you need tons of horsepower.  At home, you scale it to your abilitty to juggle other tasks at the same time.
    I think your choices have been great, the discussion has focused on what is important and especially what can and cannot be changed in the future.
    Best of luck setting this up.

  • HOW TO STOP THE PROCESS CHAIN WHICH IS RUNNING IN THE PRODUCTION?

    HI ALL,
    CAN ANYONE TELL ME HOW TO STOP THE PROCESS CHAIN WHICH IS RUNNING DAILY AT 5.00 PM. I NEED TO STOP THE PROCESS CHAIN FOR COUPLE OF DAYS AND THEN RESTART IT AGAIN.
    cAN ANYONE TELL ME THE PROCEDURE TO STOP THE ENTIRE PROCESS CHAIN RUNNING IN THE PRODUCTION.
    THANKS
    HARITHA

    Hi,
    First and foremost let me advice you to be very careful while doing this.
    For Rescheduling
    RSPC> chain > Goto > Planning view and
    click on Execution tab > select > Remove from Schedule and then in Maintain variant of start process reschedule for the day you require it to run.
    For terminating active chain
    You can start from SM37, find the process WID/PID then go to SM50 or SM51 and kill it. Once its done come back to RSMO and check the request, it should be red but again manually force to red and save by clicking on the total status button in the status tab. This shuld ensure that the process is killed properly.
    The next step will be to go to targets that you were loading and remove the red requests from those targets.
    Note: For source system loads you may have to check if the request is running in the source system and kill if needed and pull it again.
    But for BW datamart delta loads u may have reset the datamarts in case u are going to pull the delta again.
    Re: Kill a Job
    Re: Killing a process chain.
    Regards,
    JituK

  • How to stop the process chain showing status as yellow but no process step

    Dear Friends,
    How to stop the process chain showing status as yellow but no process step is running in that process chain.
    We have manually triggered the process chain for sales it finished successfully till load data but the next step is create index and DB statistics. Both of this steps are in unscheduled position only and no background job for this.
    Please guide me.
    Thanking you in advance.
    Regards,
    Shubhangi

    Hi,
      At times even I have faced this situation.  During those times, running the Function module RSPC_PROCESS_FINISH by passing the right parameters came to my rescue.
    Regards,
    Raj

  • How to get the process id of a sql statement or a session  ....

    How to get the process id of a sql statement or a session . ..?
    Thanks

    What about this?
    SELECT pid
      FROM v$session s, v$process p
    WHERE p.addr = s.paddr
       AND s.sid = :sid;   -- replace :sid with your session idRegards.
    Al

  • How to run a process flow in recovery mode

    Hi,
    I have 10 Mappings in a Process Flow. While executing that process flow, All of sudden It got errored out at 5th mapping.
    Please explain me how to run the process flow again from the 5th mapping( which got errored out in the previos run)....i.e I do not want to run the first 4 mappings in that process flow again, I want to run only the remaining mappings in the process flow.
    Please let me know in case you need more information / explaination.
    Thanks in advance...

    Hi
    On the question of process flows and resuming the following article gives some ideas, it has to be designed in the process flow basically;
    http://www.rittmanmead.com/2008/05/resuming-your-etl-process-in-owb/
    The article describes some ideas and techniques for tracking success/failure of flows and restarting.
    Cheers
    David

  • How to monitor RFC processing in XI

    Hi Friends,
    In the IDoc to RFC scenario please tell me How to monitor RFC processing in XI..
    Thanks and Regards
    Sri

    Sri,
      You can monitor in SXI_MONITOR/SXMB_MONI. If its Syncronous then u can see the request and response messages in the above mentioned transaction.
      To get more details you can go for RWB and select ur message and check for audit log's.
    Best regards,
    raj.

  • How to Integrate HCM Process with Webdynpro ABAP Application

    hi,
    I have issue regarding how to integrate HCM Process with Webdynpro abap application.
    I had created one HCM process for transfer using Hrasr_dt T code and also created form scenario and work flow.
    How to Integrate HCM Process with Webdynpro ABAP Application
    by
    Parthasarathi

    hi suhasini,
    Thanks for your reply,
    Can u explain in detail.. and Give any documents or links...
    by
    Parthasarathi

  • How to move the process chain from Unassigned node to a new node in 3.5?

    Hi all,
    I have created a new process chain in the development and it is falling under the Unassigned nodes. I want to move that process chain to an another node. but i am unable to do that
    Can anyone let me know how to move the process chain from unassigned node. I have drag and dropped but still the same in BW 3.5 ?
    Thanks
    Poooja

    Hello,
    Try this....
    Double click on your process chain. Via the menu select:
    Process chain > Attributes > Display components
    Select F4 (possible entries)
    At the bottom of the window you will find a create icon
    to make your own component.
    After you created it, assign it to your process chain.
    Don't forget to save the process chain.
    Regards,
    Sivaram

  • How-to trigger a process chain using ABAP?

    Does anybody know how to trigger a process chain using ABAP code?
    Any help would be appreciated!
    Thanks
    Ioan

    Hi Ioan,
    try this in your ABAP:
        CALL FUNCTION 'BP_EVENT_RAISE'
          EXPORTING
            eventid         = 'Your Event'
            eventparm       = 'START'
            target_instance = ' '
          EXCEPTIONS
            OTHERS          = 01.
    and schedule your process chain, waiting for 'Your Event'.
    regards
    Siggi

Maybe you are looking for

  • Print button should not perform its action in  report previewer

    Hi all, Report version 6i I am invoking a report from a form , the form has one status field ,the value can be NEW,APPROVED,CANCEL i just want take the print of the report if the status is approved , in all other cases the print button should be perf

  • Upgrade problems from 10.2.8 to 10.4

    I have recently inherited a iMac G4 flat panel computer running 10.2.8. I'd like to upgrade this to 10.4 (which I have on DVD from another Mac I have that I've recently upgraded to 10.5). Anyway, the problem is that the iMac does not have DVD drive.

  • Mapping problem in idoc

    Hi   I had a source segment E1EDP20 (0---99 occurences), i need to pass a constant value to target field poitem.   the requirement is on every occurence of  E1EDP20, the constant value should be incremented by 1 and that constant should be passed to

  • Menu Bar - submenu will not work.

    On my main template I have deleted my Menu Bar twice to see if I had coded something funky.  I am experiencing no submenu at all.  Looking at the website "un-forgetables.com," when you rollover or click on the menu bar that leads to submenus you will

  • What is the best tool to create custom transaction on SRM 4?

    Hi. We are using SRM 4 and will need to build a new transaction, that users need to run from the ITS, that will allow the users to enter data and then send it to SRM when they submit the data. What is the best way of doing this? I don't want to use t