tmux
list-panes –a
session="my
name"
window=${session}:1
pane=${window}.1
echo $pane
tmux
send-keys -t "$pane" C-z 'test cmd 1' Enter
tmux
send-keys -t "$pane" 'test cmd 2' Enter
dd if=/dev/sdb of=/dev/sdcAfter an hour or so I became curious about the progress. I expected this to be quick thing while it was very slow. Probably I should have done something like this:
dd if=/dev/sdb of=/dev/sdc status=progressCopying was in progress and I didn't want to abort it. After doing some research I found a comment saying that I can open another terminal window and execute kill command there, then terminal where DD is running would show the progress. This indeed worked. In theory this should work too:
sudo kill -USR1 $(pgrep ^dd)