Thread: a little more of spawn()

  1. #1
    Registered User tsarena's Avatar
    Join Date
    May 2002
    Posts
    8

    Question a little more of spawn()

    hi,

    i already read about spawn command on your faq page but can anyone tell me or give me some example how can i use it to run an EXE file that get their input from a read pipe and the pipe will read the list of inputs from a '.dat' file.

    currently i'm using CreateProcess() to do it but the program won't stop running until user press ENTER button for a couple of times. the program that i've been working on is use to run another EXE file with the list of inputs being supply by the 'input.dat' file and then output from the EXE file will be written to a 'output.dat' file. hope this can help you out to understand what i'm trying to do.

    thanx in advance

    If you think you are good, there must be someone better than you
    Last edited by tsarena; 05-11-2002 at 12:42 AM.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. fork, execv, spawn, or something else?
    By DavidP in forum C++ Programming
    Replies: 8
    Last Post: 01-26-2009, 04:25 PM
  2. How to kill process that are spawn by spawnl?
    By beon in forum Windows Programming
    Replies: 1
    Last Post: 12-10-2007, 04:07 AM
  3. FAQ : running program inside program (spawn)
    By nipun in forum C Programming
    Replies: 3
    Last Post: 06-13-2004, 02:30 PM
  4. Spawn Problems
    By wilkisi in forum A Brief History of Cprogramming.com
    Replies: 1
    Last Post: 10-30-2002, 07:48 AM
  5. help needed with spawn function
    By tsarena in forum C++ Programming
    Replies: 2
    Last Post: 05-14-2002, 11:16 PM