Skip to content

Instantly share code, notes, and snippets.

@hkskoglund
Created December 20, 2017 15:27
Show Gist options
  • Save hkskoglund/af5adb82df36ecf6d1d0cd233e267bd3 to your computer and use it in GitHub Desktop.
Save hkskoglund/af5adb82df36ecf6d1d0cd233e267bd3 to your computer and use it in GitHub Desktop.
Get root folderstring DCS-936L camera
curl --anyauth -u admin: 'http://192.168.0.110/eng/admin/adv_sdcard.cgi?folderpath=&command=video' -s -e 'http://192.168.0.110/eng/admin/adv_sdcard.cgi?folderpath=20171220&command=video&filesperpage=100' | grep folderstring | cut -d ">" -f 2 | cut -d "<" -f 1
@hkskoglund
Copy link
Author

folderstring=$(echo $config | tr ' ' '\n' | grep folderstring | cut -d ">" -f 2 | cut -d "<" -f 1)

@hkskoglund
Copy link
Author

totalpages=$(echo $config | tr ' ' '\n' | grep totalpages | cut -d ">" -f 2 | cut -d "<" -f 1)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment