How to open a tmux session in a remote machine using SSHLibrary?

120 Views Asked by At

Failed to create a tmux session in a remote machine with SSHLibrary in robot framework.

Code tried -

Execute Command   tmux new -s session01

Output-

   20211213 12:33:37.257 :  INFO : Executing command 'tmux new -s session01'.
   20211213 12:33:37.348 :  INFO : Command exited with return code 1.
1

There are 1 best solutions below

0
Manasjyoti Bhuyan On

I was able to execute in the following way -

Execute Command   tmux new-session -d -s session_name 'Command To Execute'