Actualmente, estoy usando la pantalla GNU en mi iPad y utilizando la pantalla como seguridad en caso de que se pierda la conexión. Actualmente, solo ejecuto la pantalla -S ipad como el primer comando, pero ¿hay alguna manera de que se conecte automáticamente a la vieja sesión ipad si existe (y créela si no es así)? Mi única advertencia es que me gustaría hacer esto en un solo comando, y de forma automática.Pantalla GNU connect if exists, create if not
11
A
Respuesta
20
Las opciones -D -R
harán que la pantalla intente despegar o crear si es necesario.
screen -D -R -S ipad
te recomiendo echar un vistazo a todas las opciones -d|D -r|-R|-RR
en el manual de la pantalla, ya que hay muchos con resultados similares.
-d -r
Reattach a session and if necessary detach it first.
-d -R
Reattach a session and if necessary detach or even create it first.
-d -RR
Reattach a session and if necessary detach or create it. Use the first session if more than
one session is available.
-D -r
Reattach a session. If necessary detach and logout remotely first.
-D -R
Attach here and now. In detail this means: If a session is running, then reattach. If necessary
detach and logout remotely first. If it was not running create it and notify the user. This is
the author's favorite.
-D -RR
Attach here and now. Whatever that means, just do it.
Note: It is always a good idea to check the status of your sessions by means of "screen -list".
Cuestiones relacionadas
- 1. Mysql: RENAME TABLE IF EXISTS
- 2. xpath find if node exists
- 3. php if not statements
- 4. {if not isset} Smarty
- 5. Oracle sql return true if exists question
- 6. Implementando if-not-exists-insert usando Entity Framework sin condiciones de carrera
- 7. Cómo utilizar DROP TABLE IF EXISTS en MySQL Stored Procedure
- 8. WHERE Cláusula solamente IF NOT NULL
- 9. Usando el operador NOT en condiciones IF
- 10. Error de sintaxis con IF EXISTS UPDATE ELSE INSERT
- 11. UNIÓN dentro de la instrucción IF EXISTS no funciona
- 12. if {} en if: endif
- 13. SQL Select: Actualizar si existe, Insert if if not - ¿Con la comparación de partes de fechas?
- 14. ¿Por qué es "if not someobj:" better than "if someobj == None:" en Python?
- 15. cláusula NOT EXISTS en Postgresql
- 16. if..else vs if() {return}
- 17. Sentencias Bash script if if
- 18. MySQL INSERT IF NOT EXIST else ELIMINAR fila
- 19. jQuery - cómo escribir 'if not equal to' (al contrario de ==)
- 20. MySQL IF NOT NULL, luego mostrar 1, else mostrar 0
- 21. SQL "IF", "BEGIN", "END", "END IF"?
- 22. SQL Server: ¿Existe una prueba "IF EXISTS" para un servidor vinculado?
- 23. if-modified-since vs if-none-match
- 24. if, else, else if y end Lua
- 25. Analizando el algoritmo if-else if statement
- 26. IF - ELSE IF - Estructura ELSE en Excel
- 27. ¿Existe tal cosa como demasiadas sentencias if if?
- 28. SQLite IF Existe la Cláusula
- 29. Haskell IF
- 30. Lambda "if"?
¡Perfecto! esto era exactamente lo que estaba buscando. – bswinnerton