Linked Questions
10 questions linked to/from Construct a command by putting a string into a tty
9
votes
3
answers
13k
views
How do I run a command in a different tty? [duplicate]
Suppose there are two terminals, pts/0 and pts/1.
In pts/0, I have fired a command:
ls>/dev/pts/1
Then, we only get the output of the ls command in pts/1, but I want to run a command as well as ...
5
votes
3
answers
286
views
Output Output of command to command line directly, NOT variable [duplicate]
I am on the bash shell and I want the output of a command to appear directly in the command prompt that appears after the command has executed !
Example of what I envision it, to illustrate my idea:
...
0
votes
1
answer
3k
views
Control physical tty over ssh - send enter key [duplicate]
I have a machine which is hooked up to a physical display and to which I have ssh & root access, but which does not have a mouse or keyboard. It does not have X installed. I would like to run ...
0
votes
0
answers
43
views
Redirect hard return to other terminal [duplicate]
Possible Duplicate:
Construct a command by putting a string into a tty
Suppose I've run a command in a terminal ( /dev/pts/1 )
and it starts to ask me for input ( "press y to confirm" )
and I want ...
67
votes
10
answers
184k
views
How can I hook on to one terminal's output from another terminal?
I need to hook onto output of currently running terminal (tty1) from virtual terminal and capture it (running X server).
20
votes
3
answers
43k
views
Writing to stdin of a process
As far as I understand if i type the following...
python -i
... the python-interpreter will now read from stdin, behaving (obviously) like this:
>>> print "Hello"
Hello
I would expect it ...
3
votes
2
answers
2k
views
force output to input (buffer) like "\033[6n" in a script
I have tried using pipes and redirections to have (C program or scripts) output end up on the input buffer, the way printf "\033[6n" does, but no positive results.
Does anyone know how this ...
4
votes
1
answer
311
views
Will writing to /dev/pts allow me to source ~/.bashrc?
I have several terminal windows already open; I just made a change to ~/.bashrc, and I'd like to run source ~/.bashrc in each of the open terminals.
It seems to me that if I just
source ~/.bashrc | ...
2
votes
1
answer
734
views
Does each user get his/her own tty(s)?
I put a simple echo command in a CLI tty by user1 expecting it to reach user2 who is logged in a separate tty.
echo "Hello, world!" >> /dev/tty5
I expected user2 to get the echo message but ...
4
votes
1
answer
465
views
Simulating READLINE_LINE in Bash < 4.0
I am trying to make some of my code bash 3.X compatible and I have a key-binding that utilizes READLINE_LINE inside its callback function. 3.0 versions of Bash don't supply the READLINE_LINE, so I ...