How can I remotely take unix/linux tty control!?


 
Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users How can I remotely take unix/linux tty control!?
# 1  
Old 09-28-2010
How can I remotely take unix/linux tty control!?

Hello everyone!. I am wondering if it is possible to take control of a tty session???!!!.

For example: imagine you are running a command in a unix server that will take 12 hours to compleate... now, imagine you are at your home and you want to check how the command is performing or if errors have been thrown... could it be posible to be able to connect remotely via ssh and just "take" the tty where the command is executing and see how is doing???
# 2  
Old 09-28-2010
creating a screen?
Before execute the command in the server execute
#screen -S <screenname>
When you are in your home connect via ssh in the server and execute
#screen -ls
This will list you all the screen sessions like this (example)
16908.test (09/28/2010 11:21:01 PM) (Attached)

Choose the proper one.
and execute
#screen -x 16908.test
These 2 Users Gave Thanks to @dagio For This Post:
# 3  
Old 09-28-2010
Wow!!!, nice!!!, very nice!!!, I just love unix/linux!!!, thank you @dagio...

Take care!
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Python: Redirecting to tty and reading from tty

In bash, you can do something like this: #!/bin/bash echo -n "What is your name? " > /dev/tty read thename < /dev/tty How can I do the same in python? I have a python script that has the following content: #!/usr/bin/python2.7 import getpass import sys import telnetlib import... (2 Replies)
Discussion started by: SkySmart
2 Replies

2. UNIX for Dummies Questions & Answers

Connect to my Linux network remotely?

Have - -3 HP Proliant G4P servers - Debian (wheezy) -3 RaspPI's - Raspian -Unmanaged switch that all 6 can ssh into each other with via eth0 -Router (w wifi and 5 ports) - on eth1 of the three G4p's of protocol dhcp Want: To let the six servers, in my basement run, since the HPs are... (5 Replies)
Discussion started by: sas
5 Replies

3. Shell Programming and Scripting

How to change passwords for User accounts on multiple UNIX/Linux machines remotely?

Hello Experts, Need some direction on creating shell script for following environment: We have about 20 people in the team working as Oracle DBA's (sysdba's and appdba's). Total Servers which is a mix of Unix and Linux are 200. We do not have Root user access on any of the servers and... (3 Replies)
Discussion started by: sha2402
3 Replies

4. UNIX for Dummies Questions & Answers

linux sudo: no tty present and no askpass program specified

Hi I have an Oracle DBA that is trying to install an RPM from Stratavia which is a web based portal and it executes the following: Instance Wrapper=sudo -u oracle /opt/datapalette/jython/jython Server Wrapper=sudo -u root /opt/datapalette/jython/jython I've compared the /etc/sudoers... (8 Replies)
Discussion started by: jeff-fafa
8 Replies

5. UNIX for Dummies Questions & Answers

How to input escape sequences in Linux tty?

More details: Unicode, Framebuffer. I tried to press Esc and then what should follow, letters or brackets, but seems not to work. Probably i do something wrong. If somebody is familiar with escape sequences in the console, how do you do that? Thanks in advance. (4 Replies)
Discussion started by: Action
4 Replies

6. Red Hat

Change password of linux servers remotely

Hi, I am very bad at scripting. I need help from scripting experts... I need to change password of around 100 linux remote servers. I have been given a script for changing the password that automates the task. however I do not understand the usage and meaning of the script, the script is an... (0 Replies)
Discussion started by: renuka
0 Replies

7. IP Networking

helping new Linux users remotely ?

I volunteer with a small charity which locally donates refurbished computers to people who normally could not afford their own computer. Most of these computers now have Linux on them. We are in the process of remastering Xubuntu 9.04 to use as our main distro from now on. In the past any time... (3 Replies)
Discussion started by: lagagnon
3 Replies

8. UNIX for Advanced & Expert Users

Porting Linux and TTY / Shell problems

Hello all, I am porting the linux 2.6.30rc2 kernel from one ARM architecture, /arch/arm/mach-davinci, to a new device, called Jacinto2. I am using the serial port ttyS0 as the default console. The bootloader is U-Boot and I am using busybox mounted as a ramdisk in internal SDRAM. I have got... (4 Replies)
Discussion started by: Interloper
4 Replies

9. UNIX for Advanced & Expert Users

How to control remotely "full" Linux router in GUI ?

Hi, I mean Unix Linux general solution, so please don't move my question, as it's Unix specific. I would like to remotely control my "full" Linux router. Already succeeded to compile Linux Unix dialog, running some tests. The issue is dialog comes with a limited number of widget boxes for... (4 Replies)
Discussion started by: jack2
4 Replies

10. Shell Programming and Scripting

regaining control after remotely calling matlab

hi, i have written a tcsh script that calls matlab from a remote computer: matlab -nodisplay -nojvm -r "txt2avw('$roi'); exit" but when the program is finished calling/using matlab, i can't seem to get my script back because immediately following the line above, i've written: echo "Moving... (0 Replies)
Discussion started by: nixjennings
0 Replies
Login or Register to Ask a Question