2 votes
Accepted

Redirecting stdout of a script as the stdin of another script/command running in a tmux session

Is it possible to use any trick that plays with stdin redirection instead of a fifo that needs to be maintained? Ask tmux what tty is assigned to the only pane of the only window of the new session. ...
Kamil Maciorowski's user avatar
2 votes
Accepted

What is the difference of passing an sleep command to tmux new-session -d and not passing anything?

tmux new-session with a command starts the command in a new tmux pane in a new tmux window in a new tmux session. tmux new-session without any command starts an interactive shell instead. In your case ...
Kamil Maciorowski's user avatar
1 vote
Accepted

TERM ANSI escape sequences compatibility between xterm and screen although infocmp does not say so

It works because in a (ECMA-48) standard terminal, there is no difference in the effect of the two strings. Both send the cursor to the upper left corner of the screen. Then one (\E[J) clears the ...
Thomas Dickey's user avatar
1 vote

Redirecting stdout of a script as the stdin of another script/command running in a tmux session

I don't think you can do anything like that as tmux will close all fds above 2 it received (and 0, 1, 2 as well when detached). See close_range(3, 4294967295, 0) or equivalent in strace (or equivalent)...
Stéphane Chazelas's user avatar
1 vote

Redirecting stdout of a script as the stdin of another script/command running in a tmux session

I'm not clear exactly what you're asking.  Are you accepting the concept of using tmux to process the escape sequences, but you just want to eliminate the FIFO? Try just producing the output you want ...
G-Man Says 'Reinstate Monica''s user avatar
1 vote
Accepted

"tmx" (tmux) erroneously connects to existing session because of prefix matching

From man 1 tmux: target-session is tried as, in order: A session ID prefixed with a $. An exact name of a session (as listed by the list-sessions command). The start of a session name, for example ...
Kamil Maciorowski's user avatar
1 vote

systemd service terminates with error because the script (expectedly) returned

Reading from the documentation: The trivial service types for systemd are as follows: oneshot is a service that runs to completion in a short time and then exits completely. simple is a program that ...
davolfman's user avatar
  • 602

Only top scored, non community-wiki answers of a minimum length are eligible