LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 07-12-2009, 12:51 AM   #1
manoj_isi
LQ Newbie
 
Registered: May 2008
Posts: 8

Rep: Reputation: 0
Question prevent accidental closing of a window


Hi all,
I am running a program in gnome-terminal window (using metacity window manager) which will take many hrs to complete.
I was wondering if there is some way to "lock" that window, so that accidental closing of that window is prevented.

Last edited by manoj_isi; 07-12-2009 at 12:54 AM. Reason: to change e-mail notification preference
 
Old 07-12-2009, 12:56 AM   #2
karamarisan
Member
 
Registered: Jul 2009
Location: Illinois, US
Distribution: Fedora 11
Posts: 374

Rep: Reputation: 55
Not that I know of. In the future, use a program called screen for tasks like this - if the terminal emulator is closed, the screen session is just detached and continues running, and can be reattached at any time later.
 
1 members found this post helpful.
Old 07-12-2009, 02:32 AM   #3
manoj_isi
LQ Newbie
 
Registered: May 2008
Posts: 8

Original Poster
Rep: Reputation: 0
Thumbs up

thanx.. i knew about this tool... but never knew that this is so powerful
 
Old 07-12-2009, 03:51 AM   #4
karamarisan
Member
 
Registered: Jul 2009
Location: Illinois, US
Distribution: Fedora 11
Posts: 374

Rep: Reputation: 55
It's a fantastic piece of software and one of the first things I install on any new machine. It's also great if you want to leave a CLI application running remotely - back in the day, I couldn't do any torrenting from where I was, so I had a server in another state that had rtorrent (command-line client) running in a perpetual screen session. I'd used screen before for the multiplexing feature, but I really gained something the day I figured that one out. : )
 
  


Reply

Tags
linux, lock, window


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Closing a window kanik Programming 1 09-30-2008 03:28 AM
Prevent XLIB application from closing when close button pressed fcdev Programming 1 11-11-2007 01:47 PM
safety script prevent accidental rm -rf GATTACA Programming 4 10-29-2007 02:36 AM
My bash window keeps closing... otacon 14112 Linux - Security 12 04-05-2007 09:28 PM
Javasript - closing a window djgerbavore Programming 1 05-06-2005 01:01 PM


All times are GMT -5. The time now is 11:32 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration