Thread: system()

  1. #1


    is there anyway to make your program continue running after using the system() function to run /bin/bash?

    or is there a function to do that?

  2. #2
    Registered User
    Join Date
    Dec 2001
    The C Standard does not include such a function!
    but most OS provide some :-)
    Hope you don't mind my bad english, I'm Austrian!

  3. #3
    The Artful Lurker Deckard's Avatar
    Join Date
    Jan 2002
    You could always fork off a process to run your shell, but consider using pthreads. You could give your shell call its own thread of execution and still allow your 'main process' (which simply has its own thread of execution) to continue.
    Jason Deckard

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. File System Implementation
    By dodgeviper in forum C Programming
    Replies: 9
    Last Post: 11-16-2007, 01:04 PM
  2. Using system icons
    By @nthony in forum Windows Programming
    Replies: 1
    Last Post: 01-13-2007, 07:56 PM
  3. Linux database system needed
    By BobS0327 in forum Tech Board
    Replies: 7
    Last Post: 06-11-2006, 03:56 PM
  4. BIOS system and memory allocation problem
    By beely in forum Tech Board
    Replies: 9
    Last Post: 11-25-2003, 07:12 AM
  5. Number system base M, print numbers N digits wide...
    By biterman in forum C Programming
    Replies: 12
    Last Post: 11-19-2001, 04:31 AM