Ask Your Question
0

lock/protect terminal in non-GUI mode

asked 2012-06-12 16:04:26 -0600

Mohan G gravatar image

updated 2014-09-30 11:28:47 -0600

mether gravatar image

In non-GUI mode, I want to execute a huge time-consuming program and protect the terminal(/dev/ttyX) during that time. What are the ways to achieve this. I think, it can be done by executing the program with nohup and then logout. But my program is not fully automated. So, is there something like "lock" which is there in GUI-mode ?

Note: I am running my testing server in non-gui mode (runlevel 3). My Program needs user interaction at some stages of the execution. I want to protect the terminal during the execution of my program, while I am away from my PC (for a short 10-15 min break).

-Mohan

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted
1

answered 2012-06-22 00:40:29 -0600

Mohan G gravatar image

I think 'vlock' is what i am locking for.

I run my program in background and execute 'vlock' in foreground.This will lock my terminal(/dev/ttyX) while my program is running. This way, I can see the output of my program and when needed, I can unlock and interact with my program.

Anyhow, thanks peter for trying to help me.

-Mohan

edit flag offensive delete link more
0

answered 2012-07-05 01:42:20 -0600

Chinasaur gravatar image

Could you run in GNU Screen?

edit flag offensive delete link more

Question Tools

Stats

Asked: 2012-06-12 16:04:26 -0600

Seen: 350 times

Last updated: Jul 05 '12