I am aiming to have a perl script on a test server, to be activated and run once an sql file is scp'd over from a web server.
Basically, I want the shellscript to run every 5 seconds, checking for the sql file on the test server (from the web server).
I have something like this now running on the test server:
while [true] ; do if [ -f pit[it/sq;]; then echo hi; fi; sleep 1; done
What am I doing wrong? My perl script is not being activated to run.
Any advice or help would be greatly appreciated! Thanks for your help!