You are not logged in.

#1 2010-10-05 21:48:14

ftornell
Member
Registered: 2008-08-18
Posts: 277
Website

[Solved] - Force another person/session to log off?

Well its two questions:

1. If I am logged on at home at tty1 and then I ssh into the server and I would like to log off the tty1 session, how can I do that?
2. Im from the Windows world and lets say I'd like to copy some files for 3 hours. In Windows I can start the copy and then press [WINDOWS]+[L] to lock the computer but the copy is still going on in the background and no other person can access the computer. Is there a similar way in linux while in bash? Lets say I need to copy some files and then go grab a coffee...?

Last edited by ftornell (2010-10-06 06:50:54)


[ logicspot.NET | mempad.org ]
Archlinux x64

Offline

#2 2010-10-05 21:58:42

jdd
Member
From: OH, USA
Registered: 2009-03-03
Posts: 11
Website

Re: [Solved] - Force another person/session to log off?

Look into gnu screen or dtach. You can detach whatever your doing from the parent shell, allowing you to logout without whatever you're doing dying.

Offline

#3 2010-10-05 22:08:15

sand_man
Member
From: Australia
Registered: 2008-06-10
Posts: 2,164

Re: [Solved] - Force another person/session to log off?

Don't forget tmux smile


neutral

Offline

#4 2010-10-05 23:06:55

hexanol
Member
From: Canaduh
Registered: 2009-08-04
Posts: 95

Re: [Solved] - Force another person/session to log off?

Also in gnu screen, you could use the lockscreen command ('C-a x' by default) to lock your terminal.

I'm not totally sure if it works, but you could also use the 'nohup' command when backgrounding another command (example; '$ nohup cp bigfile &'), so that when you exit bash, the backgrounded job doesn't get killed.

Offline

Board footer

Powered by FluxBB