lpcmanager
Clone
Summary
Browse
Changes
Graph
Add check_if_url_is_reachable POU to test whether input URL returns status 200 when invoked from PLC
py2compat
10 months ago, Dino Kosic
d7d8098e92f7
file is
Executable
Add check_if_url_is_reachable POU to test whether input URL returns status 200 when invoked from PLC
#!/bin/sh
INKSCAPE=inkscape
for fname in `ls *.svg`; do
for i in `cat $fname |grep -o -e '%%[^%]*%%'|sed 's/%//g'`
do
if [ $i.png -nt $fname ]; then
echo "Skip $i"
else
rm -f $i.png
echo "$INKSCAPE" $fname -z -e $i.png -i $i
"$INKSCAPE" $fname -z -e $i.png -i $i
fi
done
done