You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is it possible using libtmux to create a new session and then run a script in it from another python script?
Ideally, in a python program, I'd like to start a new tmux session, rename it, run 'python3 script.py' and then detach it.
I see how I can start the new session, but am missing how to run 'python3 script.py', which really is just a shell command.
Can it be done with server.cmd() somehow? I have experimented with it some without success and will work on it more, but wanted to know if it was even possible.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Is it possible using libtmux to create a new session and then run a script in it from another python script?
Ideally, in a python program, I'd like to start a new tmux session, rename it, run 'python3 script.py' and then detach it.
I see how I can start the new session, but am missing how to run 'python3 script.py', which really is just a shell command.
Can it be done with
server.cmd()somehow? I have experimented with it some without success and will work on it more, but wanted to know if it was even possible.All reactions