wiki:TipAndDoc/console

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

Attachments (1)

Download all attachments as: .zip