Skip to content

Instantly share code, notes, and snippets.

@matoken
Created August 28, 2020 06:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save matoken/fe660695cdccdb00369a5164a2c2bd08 to your computer and use it in GitHub Desktop.
Save matoken/fe660695cdccdb00369a5164a2c2bd08 to your computer and use it in GitHub Desktop.
crontab -l | grep -v ^# | grep firefox
4,9,14,19,24,29,34,39,44,49,54,59 * * * * ps ux|grep firefox | grep headless | awk '{print $2}' | xargs kill
*/5 * * * * ~/go/bin/sysbox chronic firefox -p headless1 --headless --private-window --screenshot ~/tmp/A会場_`date +\%Y-\%m-\%d_\%T`.png "https://www.youtube.com/watch?v=eBhPRgsnPA0"
*/5 * * * * ~/go/bin/sysbox chronic firefox -p headless2 --headless --private-window --screenshot ~/tmp/B会場_`date +\%Y-\%m-\%d_\%T`.png "https://www.youtube.com/watch?v=r1JbktuBTK4"
*/5 * * * * ~/go/bin/sysbox chronic firefox -p headless3 --headless --private-window --screenshot ~/tmp/C会場_`date +\%Y-\%m-\%d_\%T`.png "https://www.youtube.com/watch?v=heVrxf8M1SU"
*/5 * * * * ~/go/bin/sysbox chronic firefox -p headless4 --headless --private-window --screenshot ~/tmp/D会場_`date +\%Y-\%m-\%d_\%T`.png "https://www.youtube.com/watch?v=NpBbhKh0lfI"
*/5 * * * * ~/go/bin/sysbox chronic firefox -p headless5 --headless --private-window --screenshot ~/tmp/NEC会場_`date +\%Y-\%m-\%d_\%T`.png "https://www.youtube.com/watch?v=wp9Xc_Ex67c"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment