We have an application on our AS/400 where we are passing changes to data down to a MYSQL DB on a server. Using a purchased product we have issues when passing large amounts of data, Were get JAVA heap dumps. So I am replacing this with a PHP process. The RPG code writes SQL statements to a file (PHPIN), then we have a PHP script that gets called and executes a script that reads through the file running thousands of SQL statements. This works fine, except it take human intervention to start the script. I need to be able to submit a batch job on the AS/400 that will run the script. Anyone have any ideas on how to do this?