CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Mar 2001
    Location
    israel
    Posts
    0

    porting code from NT to LINUX

    In my NT application I launch processes, each with its command line, with CreateProcess function, and wait for them to exit with WaitForMultipleObjects function.

    I can not find the equivalent functionality with Linux:
    fork function does not take a command line parameter.
    exec functions replace the current image and do not return.

    Where can I find documentation / help ?

    Thank you

    yoseft

  2. #2
    Join Date
    Jul 2000
    Location
    Netherlands
    Posts
    0

    Re: porting code from NT to LINUX

    Easy, use both:
    First process: fork, then there are two processes, and one can be exec-ed with the process you would like.

    Perhaps system() is what you would like to do?


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured