Score:0

How to assign a tty to a process?

fi flag

I can configure a command which will be run without a tty (similar to a cronjob). The problem is that the binary to be run seems to require a terminal. Is there a way to run a process with a new tty assigned? I don't really care about the output, but the binary seems to fail without it.

I tried to run it with tmux, but it seems like tmux fails if there is no terminal.

user10489 avatar
nc flag
Likely the best way would be to use pseudo terminals for this. You need to have a consumer too though. This is how things like tmux and screen (and ssh) work. I may write a longer answer later.
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.