Re: logout from ssh session

From: David Danovich (dodik_at_yfaat.ch.huji.ac.il)
Date: 01/14/04

  • Next message: Eloi Granado: "Re: logout from ssh session"
    To: "Robert Deacle" <robert.deacle@ncmail.net>
    Date: Wed, 14 Jan 2004 08:12:42 +0200
    
    

    Unfortunately, this suggestion does not work. Using nohup command as you
    described does not allow mw to logout
    from ssh session.

    David

    From: "Robert Deacle" <robert.deacle@ncmail.net>
    To: "David Danovich" <dodik@yfaat.ch.huji.ac.il>
    Cc: <secureshell@securityfocus.com>
    Sent: Wednesday, January 14, 2004 6:23 AM
    Subject: Re: logout from ssh session

    > Assuming you want the job to continue running after you log out,
    > I would use the nohup command to protect it from the hangup sent
    > to you processes when you log out, and give it another level
    > of separation from your login shell with ( )
    >
    > e.g. ( nohup run &)&
    >
    > This can even be useful in system startup scripts for processes
    > you want started at boot time, but do not understand what
    > being a daemon is about, so do not fork and separate themself
    > from the boot process.
    >
    > Bob Deacle
    >
    > David Danovich wrote:
    > >
    > > Hi,
    > >
    > > I am not sure that I am asking the right forum but I will try.
    > >
    > > I have several computers which connected through ssh using following
    > > command
    > >
    > > ssh user_name@computer_name
    > >
    > > and it works fine until I want to run some command (some job) in
    > > background using following
    > > command
    > >
    > > run &
    > >
    > > where run is some executable program. When I sent such a command and
    job
    > > still running I am not
    > > able to logout from the computer. When I write logout computer just
    > > freeze and wait till job finished.
    > > Without job running in background it is not a problem to logout.
    > > I do not know what is wrong. May be I need to change something in
    > > config_sshd? If I use telnet everything is fine.
    > >
    > > I would appreciate any help.
    > >
    > > Thank you David
    >
    > --
    > Robert Deacle
    > ITS Unix Team
    > Robert.Deacle@ncmail.net
    > (919) 981-5062
    >
    > Mail to and from NCMail.net may be subject to the NC
    > Public Records Law and may be disclosed to third parties
    > by an authorized state official.


  • Next message: Eloi Granado: "Re: logout from ssh session"

    Relevant Pages

    • Re: [Info-ingres] Need help Appending an extra footer line after using COPY .. INTO output_file,
      ... command, as that's the only thing after the 'cat' command line. ... David G. Brooks ... (shell scripting, declarations, etc.) ... Have both queries write to seperate files then append them at the OS ...
      (comp.databases.ingres)
    • Re: Run As Pop Up
      ... David Candy's tip below helped me ... I edited my registry, rebooted and everything back to normal. ... and delete the default value (which will be runas). ... select the key command then double click in the other pane ...
      (microsoft.public.windowsxp.customize)
    • Re: logout from ssh session
      ... If you try to do that on an xterm or a console, the shell will say you "zsh: ... If you want to background a process and then logout, use the 'setsid' command ...
      (SSH)
    • Re: RPM install
      ... I had to type the command line - no joy there either. ... > David Bolt ... I also just finished downloading them as well. ...
      (alt.os.linux.suse)
    • Re: [opensuse] BASH: has $COLUMNS gone nuts?
      ... David C. Rankin wrote: ... to alter the environment. ... You can always just put an export command in your .bash_profile ...
      (SuSE)