Find the answer to your Linux question:
Results 1 to 3 of 3
Hi I am accessing a linux server remotely from my putty. I started the server and now I want to close the command line. when I do cntr+c or cntr+z ...
  1. #1
    Just Joined!
    Join Date
    Feb 2011
    Posts
    2

    Log out of command line without shuting down the server

    Hi
    I am accessing a linux server remotely from my putty. I started the server and now I want to close the command line. when I do cntr+c or cntr+z it kills my server aswell. how will I close my terminal without closing my server? I tried cntr +d but it is not doing anything

    Thanks

  2. #2
    Linux Newbie
    Join Date
    Apr 2010
    Location
    Novosibirsk, Russia
    Posts
    136
    run process in background using '&' after command, for example

    Code:
    run_server_command &
    But if your do Logout from system, all current processes owned by you will be killed. You could try to run it under another user using 'sudo'.

  3. #3
    Linux Guru Lazydog's Avatar
    Join Date
    Jun 2004
    Location
    The Keystone State
    Posts
    2,281
    I would use nohup <command>.
    Take a look at the man pages.

    Regards
    Robert

    Linux
    The adventure of a life time.

    Linux User #296285
    Get Counted

Posting Permissions

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