Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Calling external exe in separate shell?

Calling external exe in separate shell?

Scheduled Pinned Locked Moved C / C++ / MFC
linuxhelptutorialquestion
4 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    Souldrift
    wrote on last edited by
    #1

    Hi there, I got trouble with calling externals. Maybe somebody can help me. I used to call external programs (exe-files) with the system() call. Now I want to start an external program in a seperate shell (and as a separate process). Can anybody tell me how to do that? Thanks a lot. Souldrift

    K L D 3 Replies Last reply
    0
    • S Souldrift

      Hi there, I got trouble with calling externals. Maybe somebody can help me. I used to call external programs (exe-files) with the system() call. Now I want to start an external program in a seperate shell (and as a separate process). Can anybody tell me how to do that? Thanks a lot. Souldrift

      K Offline
      K Offline
      KarstenK
      wrote on last edited by
      #2

      call a batch file. In it can you create an own environment.

      Press F1 for help or google it. Greetings from Germany

      1 Reply Last reply
      0
      • S Souldrift

        Hi there, I got trouble with calling externals. Maybe somebody can help me. I used to call external programs (exe-files) with the system() call. Now I want to start an external program in a seperate shell (and as a separate process). Can anybody tell me how to do that? Thanks a lot. Souldrift

        L Offline
        L Offline
        Lost User
        wrote on last edited by
        #3

        Use one of the exec()[^] calls. They create a separate process and also allow some communication with the parent.

        1 Reply Last reply
        0
        • S Souldrift

          Hi there, I got trouble with calling externals. Maybe somebody can help me. I used to call external programs (exe-files) with the system() call. Now I want to start an external program in a seperate shell (and as a separate process). Can anybody tell me how to do that? Thanks a lot. Souldrift

          D Offline
          D Offline
          David Crow
          wrote on last edited by
          #4

          Souldrift wrote:

          Can anybody tell me how to do that?

          By reading here.

          "Old age is like a bank account. You withdraw later in life what you have deposited along the way." - Unknown

          "Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups