I had a client who was worried about orders, visitors etc, they had converted from another solution to Actinic, and were used to being told how many orders, visitors, payments etc they had received, all without actually logging into their web based back end...
So I knocked up a short shell script (*nix obviously - perhaps someone will convert to perl for you windows users) - anyway, I figure it might be useful to other users, so here it is...
Just change the WD definition line - upload to your web server, configure as executable and you can now use a browser to find out if you have 1 order or 100... how many have already paid, and how many sessions are currently hanging around on the server - so you know you have at least had visitors!
Hope this helps...
regards
Greg Hewitt-Long
ps - don't tell anyone what your script is called when you upload it!
So I knocked up a short shell script (*nix obviously - perhaps someone will convert to perl for you windows users) - anyway, I figure it might be useful to other users, so here it is...
Code:
#!/bin/bash echo "content-type: text/html `date` " WD="/home/sites/www.yoursite.com/web/acatalog/" ORDERS="`ls -1 *.ord 2>>/dev/null`" OCCSESS="`ls -1 *.occ 2>>/dev/null`" SESSIONS="`ls -1 *.session 2>>/dev/null`" cd $WD if [ "X" = "X$ORDERS" ] then echo '<H2>No Orders Found</H2>' else echo "<H2>Orders found: "`echo "$ORDERS" | wc -l`"</H2>" fi if [ "X" = "X$OCCSESS" ] then echo '<H2>No OCC Sessions Found</H2>' else echo "<H2>OCC Sessions found: "`echo "$OCCSESS" | wc -l`"</H2>" fi if [ "X" = "X$SESSIONS" ] then echo '<H2>No Shopping Sessions Found</H2>' else echo "<H2>Shopping Sessions found: "`echo "$SESSIONS" | wc -l`"</H2>" fi
Hope this helps...
regards
Greg Hewitt-Long
ps - don't tell anyone what your script is called when you upload it!
Comment