P
P
paralolik2020-12-13 09:04:49
bash
paralolik, 2020-12-13 09:04:49

How to use a bash script to enter a command in a tmux window?

Could not understand this question, in screen I use Is there something similar in tmux?
screen -r ${sname} -p ${name} -X stuff "$cmd$nl"

Answer the question

In order to leave comments, you need to log in

1 answer(s)
P
paralolik, 2020-12-13
@paralolik

tmux send -t ${session}.0 '$cmd' ENTER

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question