Version 1 (modified by mitty, 15 years ago) (diff) |
---|
screen with script
- screen と script を同時に「.bash_profile」内に書くことは出来ない
- scriptを先に書いた場合、scriptからexitした後でscreenが起動する
/usr/bin/script ~/.script/`date +%y-%m-%d_%H%M%S`.log /usr/bin/screen -d -RR -U
- Script started, file is XXXX -> $ exit -> Script done -> new screen... -> [screen is terminating]
- screenを先に書いた場合、screenがterminateした後でscriptが起動する
/usr/bin/screen -d -RR -U /usr/bin/script ~/.script/`date +%y-%m-%d_%H%M%S`.log
- [screen is terminating] -> Script started, file is XXXX -> $ exit -> Script done
- scriptを先に書いた場合、scriptからexitした後でscreenが起動する
Attachments (1)
-
screen.c
(69.1 KB) -
added by mitty 15 years ago.
via 4.0.3-7ubuntu1/screen.c
Download all attachments as: .zip