Professional Web Applications Themes

Processes.. - Mac Programming

neele wrote:   Three standard UNIX methods: system("your command line"); fd = popen("a pipe line"); pid = fork(); if ( pid blah blah blah ) execve( fill in the blanks )...

  1. #1

    Default Re: Processes..

    neele wrote:
     

    Three standard UNIX methods:

    system("your command line");

    fd = popen("a pipe line");

    pid = fork();
    if ( pid blah blah blah )
    execve( fill in the blanks )



    Mike Guest

  2. #2

    Default Processes..

    Hello

    think i did ask a similar question before.

    Am trying to find out how to from a process(A)
    spawn another process(B) and wait for B to finish
    before i am able to continue A.

    Any suggestions...or code sample. Thanks once again.

    --
    Best Regards
    Eleen


    neele Guest

  3. #3

    Default Re: Processes..

    Is that only applicable for Mac OS X?
    or can be used for classic OS and OS X?

    thanks

    --
    Best Regards
    Eleen
    "Mike Hall" <com> wrote in message
    news:3fdd28f3$0$14970$rcn.com... 
    >
    > Three standard UNIX methods:
    >
    > system("your command line");
    >
    > fd = popen("a pipe line");
    >
    > pid = fork();
    > if ( pid blah blah blah )
    > execve( fill in the blanks )
    >
    >
    >[/ref]


    neele Guest

  4. #4

    Default Re: Processes..

    In article <brj5kq$bqv$singnet.com.sg>,
    "neele" <com> wrote:
     

    Using what language, framework, etc? There are a number of possible
    answers depending on the environment you're working in.

    --
    Tom "Tom" Harrington
    Macaroni, Automated System Maintenance for Mac OS X.
    Version 1.4: Best cleanup yet, gets files other tools miss.
    See http://www.atomicbird.com/
    Tom Guest

  5. #5

    Default Re: Processes..

    In article <brj5kq$bqv$singnet.com.sg>,
    "neele" <com> wrote:
     

    See the man pages for: fork, exec, wait, and waitpid.
    Sean Guest

  6. #6

    Default Re: Processes..

    Using C/C++ only..
    currently working on Mac OS X using codewarrior
    but we need the "program" to work for classic OS
    as well. ..

    Any suggestions?

    a person suggested below but is it workable for classic os and os x??
    ===================
    system("your command line");
    fd = popen("a pipe line");
    pid = fork();
    if ( pid blah blah blah )
    execve( fill in the blanks )
    ====================

    Thanks!
    --
    Best Regards
    Eleen
    "Tom Harrington" <no.spam.dammit.net> wrote in message
    news:.. 
    >
    > Using what language, framework, etc? There are a number of possible
    > answers depending on the environment you're working in.
    >
    > --
    > Tom "Tom" Harrington
    > Macaroni, Automated System Maintenance for Mac OS X.
    > Version 1.4: Best cleanup yet, gets files other tools miss.
    > See http://www.atomicbird.com/[/ref]


    neele Guest

  7. #7

    Default Re: Processes..

    In article <brllc1$bfg$singnet.com.sg>, "neele" <com>
    wrote:
     

    No, it is not. The only solution that will work on Class and OS X are
    AppleEvents, on which there are tons of doentation and sample code.

    <http://developer.apple.com/samplecode/Sample_Code/Interapplication_Comm.htm>

    hth

    meeroh

    --
    If this message helped you, consider buying an item
    from my wish list: <http://web.meeroh.org/wishlist>

    Miro Guest

Similar Threads

  1. # of Coldfusion processes
    By neostructuralist in forum Coldfusion Server Administration
    Replies: 1
    Last Post: September 22nd, 07:31 AM
  2. 4GB VM for 32 bit processes
    By Manish in forum UNIX Programming
    Replies: 24
    Last Post: September 9th, 12:20 PM
  3. parallel processes on n cpu's
    By qanda in forum UNIX Programming
    Replies: 2
    Last Post: September 8th, 12:58 PM
  4. unkillable processes causes?
    By David Magda in forum Sun Solaris
    Replies: 5
    Last Post: July 29th, 07:17 PM
  5. Kproc Processes
    By Janis in forum AIX
    Replies: 0
    Last Post: July 2nd, 06:47 PM

Bookmarks

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139