Questions tagged [pty]

A pty is a pseudo-terminal - it's a software implementation that appears to the attached program like a terminal, but instead of communicating directly with a "real" terminal, it transfers the input and output to another program.

420 questions
0
votes
1 answer

unable to run script on other pty - solaris

When I am running a bash script on a different terminal , I see an error, bash command not found, whereas general commands work fine my script reads input for a name and runs a query against a db and returns output OS solaris best regards dpn
0
votes
1 answer

Do I need to implement terminal emulation if I have a ptty?

If I have a pseudo terminal given to me (from say a pty-req (http://www.ietf.org/rfc/rfc4254.txt)) do I need to emulate the data coming back, or is that already emulated data?
Zombies
  • 25,039
  • 43
  • 140
  • 225
0
votes
2 answers

How to emulate ANSI terminal in C#?

I have an application in Mono that creates a putty window, connects to it's PTY and communicates with the world via it. Thanks to Putty I have a full terminal, I can send special codes (like Ctrl+C, Ctrl+Z) to my app. I would like to go back to my…
Piotr Zierhoffer
  • 5,005
  • 1
  • 38
  • 59
0
votes
1 answer

Using the linux pseudo terminal API for multiple debug terminals

Ubuntu Linux: How can one acquire a path that refers to the master side of a of a pseudo terminal pair?... the slave side is easy... but the master side only seems to exist as an open file descriptor, but seems not possess a valid Linux path. With…
Peter Li
  • 295
  • 1
  • 2
  • 9
0
votes
1 answer

How to bypass screen/byobu conflicts with zssh file transfers (rz/sz)

I've been trying out zssh's sz and rz because it seems like a quick/easy way to send files back and forth (local <-> remote) over ssh. The problem is that I use byobu (basically screen) on my remote server and this somehow conflicts with the sending…
tester
  • 22,441
  • 25
  • 88
  • 128
0
votes
1 answer

Pseudo terminal to use with ssh in java

I am writing a program to connect to a remote server with ssh and provide the user with a shell terminal. I've tried JSch and sshj -- both can connect properly but just hooking up the input/output streams of their shell channels to System.in and…
wczwe
  • 1
  • 1
  • 2
0
votes
1 answer

sshpass throwing error 'Failed to get a pseudo terminal: Success'

I am trying to run the sshpass tool to automate an sftp action. On another server, the command works, but on this server it just returns one line of error mesage. Here is the command I am using: sshpass -p Password sftp Uname@Host And I get the…
Zech
  • 11
  • 1
  • 3
-1
votes
5 answers

Executing string sent from one terminal in another in Linux pseudo-terminal

Lets say I have one terminal where the output of "tty" is "/dev/pts/2" From another terminal, I want to send a command to the first terminal and execute it. Using: echo "ls" > "/dev/pts/2" only prints "ls" in the first terminal Is there a way to…
Ameet Gohil
  • 93
  • 1
  • 6
-1
votes
1 answer

Using ncurses with custom pseudoterminal file descriptor

I am trying to write a single-process, multi-threaded terminal application (not a multi-process, individually single-threaded terminal application as seems to be far more common). I want it to be single-process so that the different terminal…
InterLinked
  • 1,247
  • 2
  • 18
  • 50
-1
votes
1 answer

How do I correctly shut down a connection to force the client to disconnect after a tty disconnects?

I apologize for the length, but I suspect the bug might be in the error handling and there's a bit of necessary boilerplate for networking. I start the following implementation of a single-file forking tcp server. #include #include…
merlin2011
  • 71,677
  • 44
  • 195
  • 329
-1
votes
1 answer

xtermjs, few questions regaring the usage

Struggling to get using xtermjs, and have some questions which aren't covered in the official documentation, at least I didn't find. I understand that when I use some app within the terminal, for example, Vim terminal need to be switched to…
Anatoly
  • 5,056
  • 9
  • 62
  • 136
-1
votes
1 answer

How to include «pty.h» Header File on Unix / Add «pty.h» to Standard library C / C++

I would like to include pty.h which is not normally available on Unix (Not included in standard library). On the Internet, you can get the related header file content. So how do you add this header file to the standard library, so that it's possible…
Tthrow
  • 55
  • 4
-1
votes
1 answer

How does ssh receive password from tty?

I was wondering how openssh gets the password when login, cause I got stuck in automating entering passwords to the similar tools in linux which requires getting password from tty like ssh. Tried to understand sshpass and found that sshpass forks a…
-2
votes
1 answer

How to solve the pty master write slave read. Master write the data master will also read?

void epoll_func(epoll_event event){ char str[BUFSIZE] = {'\0'}; int c =0; if(event.data.fd == connfd && EPOLLIN){ while(true){ c = read( connfd, str, BUFSIZE); write( 1, str, c); if(c
bob.smart
  • 35
  • 1
  • 7
-2
votes
1 answer

openpty() not recognised in C++ Xcode

I have a weird error occurring, where if I use the function openpty() in C program it compiles ok but if I have the exact same code in a C++ program I get a compiler error: error: 'openpty' was not declared in this scope Both Xcode projects have…
sazr
  • 24,984
  • 66
  • 194
  • 362
1 2 3
27
28