⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 imagereport.txt

📁 《嵌入式Linux-硬件
💻 TXT
字号:
#!/bin/bash# imageReport v1.0 12/31/01# www.embeddedlinuxinterfacing.com## The original location of this code is# http://www.embeddedlinuxinterfacing.com/chapters/12/## Copyright (C) 2001 by Craig Hollabaugh## This program is free software; you can redistribute it and/or modify# it however you want.## imageReport # imageReport is a bash script that executes on a target board# with an external video camera and its driver loaded. Loading# the driver, connects the camera to the /dev/video file. ## This script queries the tbdev1's apache HTTP server on port 80# using nc to obtain the image command. It then executes this command.# The command is formatted with all the command line parameters# for the specific target based on based on the target's IP address.# nc is configured with the -w flag which sets a connection timeout. # If tbdev1's apache server doesn't answer, this script will continue # to operate.## The image command will also contain a sleep statement to pause# the main loop.## Call this from inittab using the respawn option as in# T3:23:respawn:/usr/bin/imageReport# If imageReport should die, init will start it again## loop foreverwhile [ 1 ]do# get the command imageCommand=`echo "GET /cgi-bin/imageGetCommand" \               | nc -w 10 192.168.1.11 80`# execute the command and produce no output eval $imageCommand > /dev/null 2>&1 done

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -