picture.sh 250 B

1234567891011
  1. #!/bin/sh
  2. # author : bachir soussi chiadmi
  3. # date : 10/06/2016
  4. if [ ! -d "~/hehe-rover-pictures" ]; then
  5. mkdir ~/hehe-rover-pictures
  6. fi
  7. now=$(date +"%Y-%m-%d--%T")
  8. /opt/vc/bin/raspistill -e jpg -q 100 -o /home/alarm/hehe-rover-pictures/$now.jpg