Find the answer to your Linux question:
Results 1 to 6 of 6
well lets say i type cd /home/root/amsn-0.94 and then i type ./amsn to run amsn it runs fine and all but when i close the terminal window it will close ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined! nimwa2's Avatar
    Join Date
    Aug 2005
    Posts
    95

    terminal thinggy


    well lets say i type cd /home/root/amsn-0.94 and then i type ./amsn to run amsn it runs fine and all but when i close the terminal window it will close down amsn with itself... how do i make it stop??

  2. #2
    Linux Enthusiast aysiu's Avatar
    Join Date
    Jul 2005
    Posts
    633
    Launch it from the "run" command instead of the terminal window. Isn't there a "run" in the KMenu or Gnome menu?

  3. #3
    Just Joined! nimwa2's Avatar
    Join Date
    Aug 2005
    Posts
    95
    wheres the cool in that? it didnt work anyway.

  4. $spacer_open
    $spacer_close
  5. #4
    Linux Guru
    Join Date
    May 2004
    Location
    forums.gentoo.org
    Posts
    1,817
    You may have noticed that when you run that, you don't get the command prompt back? That means the terminal is basically occupied by the program. The way to separate them is to run the program in the background. Try putting an '&' after the command line to tell the shell (the terminal) to run the program in the background. If you want to bring it back to the foreground, read the manual page for background: 'man bg'. Just to make it perfectly clear, try:
    Code:
    ./amsn &
    at the comand line.
    /IMHO
    //got nothin'
    ///this use to look better

  6. #5
    Just Joined! nimwa2's Avatar
    Join Date
    Aug 2005
    Posts
    95
    same thing, when i close the terminal it closes amsn down with itself..

  7. #6
    Just Joined!
    Join Date
    Sep 2005
    Posts
    51
    A couple of things to try:
    Code:
    nohup ./amsn &
    Code:
    screen
    ./amsn
    # press <ctrl+d> or type exit to detach and again to close the terminal &#40;or just close the window&#41;
    # &#40;start another terminal and run 'screen -r' to reattatch&#41;

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •