11 Apr
2002
11 Apr
'02
11:14 a.m.
On Thu, 11 Apr 2002, Simon wrote:
i.e ftp a file onto a server in a particular directory, once uploaded, the file gets executed immediately... Possible yes/no?
The easiest way is to set up a cron job that runs a script once every 5 minutes or so. The script checks for the existence of the file and if it's there, runs it. Example of cron script: #!/bin/sh if [ -f "file" ] then sh file else echo "No script ran" fi Obviously, I'm sure I don't need to tell you that this is a REALLY DANGEROUS thing to do as you can never be sure what the file contains or who is uploading it. Proceed with EXTREME caution! Andrew. -- All views are my own .... who else would want them?