I am trying to create a new tmux session and run the 'vagrant up' command. "Vagrant up" takes more than 3 hours, so I want to disconnect the session in order to return later and check the status of this command, returning to the same session.
I have followed the answer indicated in the message https://stackoverflow.com/a/166648/16 to do the same.
I get an error message no session found. Here is my code:
no session found
$cat tmux_sh.sh #!/bin/bash echo "step 1" tmux new-session -d -s rtb123 'vagrant up' echo "step 2" tmux detach -s rtb123 $./tmux_sh.sh step 1 step 2 session not found: rtb123
Launch the shell and send it to the firewall so you can see the errors.
tmux new-session -d -s rbt123 tmux send-keys vagrant up C-m tmux detach -s rtb123
C-m means return to click.
C-m
-d. , , . , , , , , , , .
-d
Source: https://habr.com/ru/post/1613744/More articles:Несколько ролей в 'User.IsInRole' - c#How to return a string array with mongodb aggregation - mongodbMongoDB summary project returns _id array - mongodbChanging nested dictionary levels in python - pythonParsing a Complex XML File Using Coldfusion - coldfusionGlobal Char Pointer (C programming) - cHow to write a shell script that starts a tmux session and then runs a ruby script - ruby | fooobar.comfind all Karmaichel numbers in a given interval [a, b) - C - cSMTP Validation - Email ValidationDatabase type in Azure SQL data warehouse - sqlAll Articles