Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/sh
- TelegramBotToken=
- Chatid=-
- SnapFile="/var/tmp/snapshot.jpg"
- URL="http://192.168.2.220/cgi-bin/api.cgi?cmd=Snap&channel=0&rs=wuuPhkmUCeI9WG7C&user=admin&password="
- wget -d -O $SnapFile $URL >> wget_start.log 2>&1
- curl -s -v -X POST "https://api.telegram.org/bot"$TelegramBotToken"/sendPhoto" -F chat_id=$Chatid -F photo="@$SnapFile" >> curl.log 2>&1
- /bin/rm $SnapFile
Advertisement
Add Comment
Please, Sign In to add comment