Sponsored Content
Top Forums UNIX for Advanced & Expert Users How can I remotely take unix/linux tty control!? Post 302457654 by dragonov7 on Tuesday 28th of September 2010 12:21:18 PM
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???
 

10 More Discussions You Might Find Interesting

1. 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

2. 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

3. 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

4. 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

5. 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

6. 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

7. 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

8. 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

9. 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

10. 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
Entering &; leaving tty mode(3)					      BrlAPI					    Entering & leaving tty mode(3)

NAME
Entering & leaving tty mode - How to take control of ttys for direct braille display / read. Macros #define BRLAPI_TTY_DEFAULT -1 Functions int BRLAPI_STDCALL brlapi_enterTtyMode (int tty, const char *driver) int BRLAPI_STDCALL brlapi__enterTtyMode (brlapi_handle_t *handle, int tty, const char *driver) int BRLAPI_STDCALL brlapi_enterTtyModeWithPath (int *ttys, int count, const char *driver) int BRLAPI_STDCALL brlapi__enterTtyModeWithPath (brlapi_handle_t *handle, int *ttys, int count, const char *driver) int BRLAPI_STDCALL brlapi_leaveTtyMode (void) int BRLAPI_STDCALL brlapi__leaveTtyMode (brlapi_handle_t *handle) int BRLAPI_STDCALL brlapi_setFocus (int tty) int BRLAPI_STDCALL brlapi__setFocus (brlapi_handle_t *handle, int tty) Detailed Description Before being able to write on the braille display, the application must tell the server which tty it will handle. The application must also specify how braille keys will be delivered to it. Two ways are possible: key codes and commands: o key codes are specific to each braille driver, since the raw key code, as defined in the driver will be given for each key press. Using them leads to building highly driver-dependent applications, which can yet sometimes be useful to mimic existing proprietary applications for instance. o commands means that applications will get exactly the same values as brltty. This allows driver-independent clients, which will hopefully be nice to use with a lot of different terminals. See Also: brlapi_readKey() Macro Definition Documentation #define BRLAPI_TTY_DEFAULT -1 Select the default tty. The library takes the following steps: 1. Try to get the tty number from the WINDOWID environment variable (for the xterm case). 2. Try to get the tty number from the CONTROLVT environment variable. 3. Read /proc/self/stat (on Linux). See Also: brlapi_enterTtyMode() Function Documentation int BRLAPI_STDCALL brlapi__enterTtyMode (brlapi_handle_t *handle, inttty, const char *driver) int BRLAPI_STDCALL brlapi__enterTtyModeWithPath (brlapi_handle_t *handle, int *ttys, intcount, const char *driver) int BRLAPI_STDCALL brlapi__leaveTtyMode (brlapi_handle_t *handle) int BRLAPI_STDCALL brlapi__setFocus (brlapi_handle_t *handle, inttty) int BRLAPI_STDCALL brlapi_enterTtyMode (inttty, const char *driver) Ask for some tty, with some key mechanism Parameters: tty o If tty>=0 then take control of the specified tty. o If tty==BRLAPI_TTY_DEFAULT then take control of the default tty. driver tells how the application wants brlapi_readKey() to return key presses. NULL or '' means BRLTTY commands are required, whereas a driver name means that raw key codes returned by this driver are expected. WINDOWPATH and WINDOWID should be propagated when running remote applications via ssh, for instance, along with BRLAPI_HOST and the authorization key (see SendEnv in ssh_config(5) and AcceptEnv in sshd_config(5)) Returns: the used tty number on success, -1 on error See Also: brlapi_leaveTtyMode() brlapi_readKey() int BRLAPI_STDCALL brlapi_enterTtyModeWithPath (int *ttys, intcount, const char *driver) Ask for some tty specified by its path in the tty tree, with some key mechanism Parameters: ttys points on the array of ttys representing the tty path to be got. Can be NULL if nttys is 0. count gives the number of elements in ttys. driver has the same meaning as in brlapi_enterTtyMode() Providing nttys == 0 means to get the root. See Also: brlapi_enterTtyMode() int BRLAPI_STDCALL brlapi_leaveTtyMode (void) Stop controlling the tty Returns: 0 on success, -1 on error. See Also: brlapi_enterTtyMode() int BRLAPI_STDCALL brlapi_setFocus (inttty) Tell the current tty to brltty This is intended for focus tellers, such as brltty, xbrlapi, screen, ... brlapi_enterTtyMode() must have been called beforehand to tell where this focus applies in the tty tree. Returns: 0 on success, -1 on error. See Also: brlapi_enterTtyMode() brlapi_leaveTtyMode() Author Generated automatically by Doxygen for BrlAPI from the source code. Version 1.0 Fri Jun 7 2013 Entering & leaving tty mode(3)
All times are GMT -4. The time now is 07:09 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy