Skip to content

Instantly share code, notes, and snippets.

@wolftrax5
Created March 31, 2021 04:15
Show Gist options
  • Save wolftrax5/073fd087f1daf4fd139de78cb180d826 to your computer and use it in GitHub Desktop.
Save wolftrax5/073fd087f1daf4fd139de78cb180d826 to your computer and use it in GitHub Desktop.
Shell scripts
#!/bin/bash
# sprit to execute in a particular envionment
# rememeber made excutable sudo chmod +x werocomands.sh
# & run it where raspistill & v4l2 is enable
echo "Start wero's Scripts"
echo "Script one"
./raspistill -cs 0 -o test.jpg
sleep 1
echo "Script two"
timeout 2s v4l2-ctl --stream-mmap --stream-count=-1 -d /dev/video0 --stream-to=/dev/null
exit 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment