| 1 | [[PageOutline]] |
| 2 | |
| 3 | = screen with script = |
| 4 | * screen と script を同時に「.bash_profile」内に書くことは出来ない |
| 5 | * scriptを先に書いた場合、scriptからexitした後でscreenが起動する |
| 6 | {{{ |
| 7 | /usr/bin/script ~/.script/`date +%y-%m-%d_%H%M%S`.log |
| 8 | /usr/bin/screen -d -RR -U |
| 9 | }}} |
| 10 | * Script started, file is XXXX -> $ exit -> Script done -> new screen... -> [screen is terminating] |
| 11 | * screenを先に書いた場合、screenがterminateした後でscriptが起動する |
| 12 | {{{ |
| 13 | /usr/bin/screen -d -RR -U |
| 14 | /usr/bin/script ~/.script/`date +%y-%m-%d_%H%M%S`.log |
| 15 | }}} |
| 16 | * [screen is terminating] -> Script started, file is XXXX -> $ exit -> Script done |