Click to See Complete Forum and Search --> : is it possible to log off remotely?


eXtremist
03-16-2001, 01:33 PM
Before I left this morning, I logged myself into tty5 (ctrl-alt-F5) and started downloading the redhat ISO.. Now they're finished, but I'm still logged in.. Because I will not be home all weekend, I want to log myself out somehow.. Can I do this by logging in as myself?

Or, can I do it as root? (I'm sure root has some kind of command for this)

KingNothing13
03-16-2001, 03:38 PM
Can you remotly logon, and kill the process that is running the other logon? I have done that locally, but never through a telnet/SSH session.

KN

Strike
03-16-2001, 04:20 PM
Yes, KingNothing's suggestion is the way to go - login, kill whatever process is spawning your shell you want to kill, and you've got it.

aph3x
03-16-2001, 04:25 PM
login remotely and issue ps aux|grep <username>, where username is the user you want to log out. this will display a listing of all process owned by username. you can then kill -9 <pid>, where pid is the process id of the login by username. this will kill the login session for username, and you can then logout normally as the user you are currently logged in as.

interloper
03-16-2001, 10:11 PM
Start your process with the -NOHUP argument
then you can safely log off.

Lorithar
03-17-2001, 12:00 AM
interlopers suggestion is wonderful if you don't want the process to die when you do logoff.

i.e. ..Logon, start process -NOHUP, logoff and the process will continue in the background.

However this isn't really what the original question was....
This would be fine if the process that was started was a script to logon to the ftp server, download the iso and logout of the ftp server, then die gracefully.

Since if one started ftp xxxxx.xxx.xx. -NOHUP and logged out, one would then be dependent on the server @booting the connection after x noops ... AND the port closing gracefully afterward ... not something I'd like to rely on..