in reply to Re: Running script from script
in thread Running script from script

OK confimed my suspicions of my misuse of paskages. The example you gave makes much more sense.

In an effort to clarify myself, the sentence you quoted is DWIM. This isn't an asynchronous operation, doesn't involve sockets or actual data passage. Think of the listings as a sub that's just in another file. This is a single run operation that will be set up with cron to run a few times a day.

You're right that running Wine (I imagine any system command running a program?) does block further execution, but thankfully this is exactly what I want to happen.

Sorry this isn't such an advanced project ;) Thanks for your help

Ransom

Replies are listed 'Best First'.
Re^3: Running script from script
by blue_cowdawg (Monsignor) on Jul 11, 2012 at 15:29 UTC
        You're right that running Wine (I imagine any system command running a program?) does block further execution, but thankfully this is exactly what I want to happen.

    Then one of your requirements is solved. That means if the child process dies (if you use fork/exec like I suggest) then you know the process has died.

        Sorry this isn't such an advanced project ;) Thanks for your help
    No project is too basic if it is important to you.


    Peter L. Berghold -- Unix Professional
    Peter -at- Berghold -dot- Net; AOL IM redcowdawg Yahoo IM: blue_cowdawg