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#
  4. Launch Console Applications in the background

Launch Console Applications in the background

Scheduled Pinned Locked Moved C#
csharplinuxquestion
4 Posts 3 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
    Shock The Dark Mage
    wrote on last edited by
    #1

    I'm making an IRC Bot for statictics and I need to launch it into the background(like eggdrop). This bot runs in linux with mono(Free .NET Implantation). Does anybody has any clue about this? Trully, if there evil in this world,
    It lies within the heard of mankind


    Shock The Dark Mage shock@romhack.net Main Project: Aeru IRC - http://www.sf.net/projects/aeruirc

    L A 2 Replies Last reply
    0
    • S Shock The Dark Mage

      I'm making an IRC Bot for statictics and I need to launch it into the background(like eggdrop). This bot runs in linux with mono(Free .NET Implantation). Does anybody has any clue about this? Trully, if there evil in this world,
      It lies within the heard of mankind


      Shock The Dark Mage shock@romhack.net Main Project: Aeru IRC - http://www.sf.net/projects/aeruirc

      L Offline
      L Offline
      leppie
      wrote on last edited by
      #2

      If I remmeber correctly you add an ' &' to the command line in Linux, this will run the process in the background. Hope it works, let me know :) WebBoxes - Yet another collapsable control, but it relies on a "graphics server" for dynamic pretty rounded corners, cool arrows and unlimited font support.

      S 1 Reply Last reply
      0
      • L leppie

        If I remmeber correctly you add an ' &' to the command line in Linux, this will run the process in the background. Hope it works, let me know :) WebBoxes - Yet another collapsable control, but it relies on a "graphics server" for dynamic pretty rounded corners, cool arrows and unlimited font support.

        S Offline
        S Offline
        Shock The Dark Mage
        wrote on last edited by
        #3

        Thanks again leppie, but if you know how to program it in the program rather than using the &, let me know. Trully, if there evil in this world,
        It lies within the heard of mankind


        Shock The Dark Mage shock@romhack.net Main Project: Aeru IRC - http://www.sf.net/projects/aeruirc

        1 Reply Last reply
        0
        • S Shock The Dark Mage

          I'm making an IRC Bot for statictics and I need to launch it into the background(like eggdrop). This bot runs in linux with mono(Free .NET Implantation). Does anybody has any clue about this? Trully, if there evil in this world,
          It lies within the heard of mankind


          Shock The Dark Mage shock@romhack.net Main Project: Aeru IRC - http://www.sf.net/projects/aeruirc

          A Offline
          A Offline
          Arun Bhalla
          wrote on last edited by
          #4

          In UNIX, in order to have the program put itself in the background, it needs to fork a child process. True system daemons are double-forked. The first fork puts the program in the background, the second fork isolates itself from the current process group (e.g., a user's session). However, Windows has never supported the concept of fork(), so it would be surprising to see it in .NET. It appears that Mono is closely following the .NET SDK to make sure that Mono (.NET) programs are cross-platform, but in case there is a concept of fork() within Mono, go with that. For a 100% pure .NET cross-platform program, I'd suggest you take a peek at System.Diagnostics.Process.

          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