in reply to Fork Opens CMD Not the Process

Is there any way that I can have $pid the PID of .exe I am running.

No. Not whilst you need to do shell redirection: 2>&1.

In order to get shell redirection, you need a shell.


With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.

The start of some sanity?

Replies are listed 'Best First'.
Re^2: Fork Opens CMD Not the Process
by cavac (Prior) on Jul 15, 2012 at 19:52 UTC

    In order to get shell redirection, you need a shell.

    Damn that logic, full speed ahead!

    SCNR

    "I know what i'm doing. Look, what could possibly go wrong? All i have to press this button here and ArghhhhhaaAaAAAaaagraaaAAaa!!!"