post-data-curl-check.pl from EmStar at Krugle
Show post-data-curl-check.pl syntax highlighted
#!/usr/bin/perl
open(R, "/tmp/.curlkill");
while($line=<R>) { chomp($line); $OLDCURL{$line}=1; }
close(R);
foreach $line (`ps auxwww|grep -v grep|grep 'curl '`) {
if ($line=~/^(\w+)\s+(\d+)/) {
$id=$2;
if ($OLDCURL{$id}) {system("kill $id");}
}
$CURL{$id}=1;
}
if (%CURL) {
open(W, ">/tmp/.curlkill");
foreach $id (keys %CURL) { print W "$id\n"; }
close(W);
} else {
unlink "/tmp/.curlkill";
}
See more files for this project here
EmStar is a software system for developing and deploying wireless sensor networks involving Linux-based platforms. As the wireless sensor network community has attempted to deploy more complex designs---large-scale, long-lived systems that need self-organization and adaptivity---a number of difficult software design issues have arisen. Advances in software design have not kept pace with the capabilities of hardware. This is because designing for an adaptive, efficient, and useful sensor network has turned out to be surprisingly complex and difficult. EmStar is a Linux-based software framework, whose goal is to dramatically reduce this complexity, enabling work to be shared and reused, and simplifying and speeding the design of new sensor network applications.
Project homepage:
http://cvs.cens.ucla.edu/emstar/
Programming language(s): C,Shell Script
License: other
flash-stargate/
flash.sh
readme
regmon.o
uisp
CONSTANTS
active-queries
cron_ucla03_arm.ipk
curl.tar.gz
emstar
fusd
incr_read.pl
issue-query
managedata
post-data
post-data-curl-check.pl
post-data-realtime
real_time_sensorbase.py
reissue-query
sb_config.py
setup_script
synctime
tasksystem
timeupdate
up.php.txt