Hi folks, new here.
On my website, I have this well it's a fragment of of it
<?php
error_reporting(0);
$fs = fsockopen('tux.isa-geek.org', 6881, $errno, $errstr, 30);
if(!$fs){
echo "<br><p> Images not available </p>";
echo "<iframe id=\"myFrameL\" align=\"center\"
src=\"/webcam/testcard.jp
echo "<br><p> Images not available </p>";
}
else {
echo "<br><p> LiveCam </p>";
echo "<iframe id=\"myFrameL\" align=\"center\"
src=\"http://tux.isa-geek.org
echo "<br><p> LiveCam </p>";
}
?>
What I'd like to beableto do is from a bash script, call
$fs = fsockopen('tux.isa-geek.org', 6881, $errno, $errstr, 30);
and return $fs to bash. this is so I know from bash if my webcam is on or off.
if that isn't possible, can I set a env varible so I can check that with bash.
I am running a ubuntu jaunty box.