LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   Attaching to TTY (https://www.linuxquestions.org/questions/linux-general-1/attaching-to-tty-110723/)

michedlp 10-31-2003 03:16 AM

Attaching to TTY
 
Hey All,

I'm not entirely sure if this is possible, but hopefully someone can tell me other than not finding anything on google!

Anyhoo.. here's what's going on.

I have a debian(woody) install.. a very base install. No X, and i don't want X on the machine. I am running 6 Virtual Machines using user mode linux, each attached to a different tty(using the CTL+ALT+F1-6 methods). This way i can have them all running separately and can mess with them on the local machine by hitting ctl+alt+fwhatever.

Now.. the problem. I want to shut-down all these VM's.. say at midnight every-day, so i can back them up. This parts the easy(ish)part. Then i want to re-start all the VM's in their original tty's, all at once.

Basically, i want this to start how i have it now, shutdown everything, and re-start back to the way it was. I can't see immediately how to do this.. i tried doing a > /dev/tty#, but this keeps the current terminal stuck there until the vm is shutdown and releases the terminal, Which means a script would also get stuck. Is there a way aroung that?

Cheers
Miche

xexix 10-31-2003 04:27 AM

try: man openvt.

michedlp 10-31-2003 06:37 AM

well that was a lot easier than i expected!

Thanks! it works perfek!


All times are GMT -5. The time now is 09:18 PM.