#!/usr/bin/php -q '."\n"); $funkt = $argv[1]; if(is_numeric($funkt) && ($funkt <= 3600)) file_get_contents("http://$srv:$cp/0/config/set?ffmpeg_timelapse=$funkt"); echo substr(strrchr(trim(strip_tags(@file_get_contents("http://$srv:$cp/0/config/get?query=ffmpeg_timelapse"))),' '),1)."\n"; exit; ?>