Results 1 to 6 of 6

Thread: Running a program in the background

  1. #1
    Mentor
    Join Date
    Jun 2001
    Posts
    1,672

    Running a program in the background

    I hope someone will be able to help me with this:

    I'm trying to run Java 2 Enterprise Edition (j2ee). If I start if from the command prompt, it starts up, but never gives back the command prompt. I can connect to it from my browser, so I know that it's running. If I do a Ctrl-C, I get the command prompt back, but of course j2ee stops running. I tried to start it as a bootup service from init.d, but it just hangs up the boot process after it starts.

    How can I make it that it runs in the background as a daemon? (I read the freaking manual, but there is no word about this issue.)

  2. #2

    Re: Running a program in the background

    Use & after the command?

  3. #3
    Mentor
    Join Date
    Jun 2001
    Posts
    1,672

    Re: Running a program in the background

    Use & after the command?
    That did it, thank you! You're my hero! :-*

    BTW. What does the & do?

  4. #4

    Re: Running a program in the background

    Ctrl-Z (to stop the process) followed by "bg" (to run it in the background) will also work if you forget to run it in the background in the first place (which is what the "&" does).

    Um, I think you scared off scanez with your smiley

  5. #5
    Mentor
    Join Date
    Jun 2001
    Posts
    1,672

    Re: Running a program in the background

    Um, I think you scared off scanez with your smiley
    ;D

  6. #6

    Re: Running a program in the background


    Um, I think you scared off scanez with your smiley
    Oh no, the smiley was much enjoyed

    And yes, & means "start in the background"

Similar Threads

  1. How to Enabled Background Folder?
    By ewsnow in forum Windows - General Topics
    Replies: 3
    Last Post: 02-11-2006, 08:08 AM
  2. running remote command, then leave it running
    By Blaqb0x in forum Linux - General Topics
    Replies: 1
    Last Post: 10-03-2003, 10:36 PM
  3. background changer
    By Blaqb0x in forum Linux - Software, Applications & Programming
    Replies: 4
    Last Post: 08-26-2002, 02:35 PM
  4. Nifty background
    By BJ250 in forum General Chat
    Replies: 11
    Last Post: 02-19-2002, 09:26 AM
  5. background processes
    By blackjack in forum Linux - General Topics
    Replies: 7
    Last Post: 02-12-2002, 04:35 AM

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
  •