Tuesday, 20 August 2013

Linux script that scans a folder for XML files

Linux script that scans a folder for XML files

I need a script that scans a folder on a webserver for XML files, and then
start a cron job for every XML file it finds.
The XML files look something like this:
invoice_ddmmyy_ttmmss.xml
When the script find files, it starts a cron job:
php
"/home/xxxxxxx/public_html/administrator/components/com_csvi/helpers/cron.php"
template_id="73" filname="invoice_ddmmyy_ttmmss.xml"
I'm fairly new to scrpting, but hope anyone could help me.
Thanks :-)

No comments:

Post a Comment