Take a look at the STRQSH command...

It can run QSH scripts/programs or PASE ones..

Just include a shabang line to PASE as the first line of your script..
#!/QOpenSys/usr/bin/sh

Helpful info: http://yips.idevcloud.com/wiki/index.php/PASE/SHELL

Charles



On Fri, Oct 30, 2015 at 10:42 AM, Jason Aleski <jason.aleski@xxxxxxxxx>
wrote:

I am relatively new to working on the iSeries. In the past (for a
previous non-IBMi employer), I've written PHP scripts on a Linux server
that would perform ETL functions on a web service and store the data to
local SQL server. The PHP script would not require a web server and run
from the CLI via cron. In the cronjob, I would call "0 1 * * *
/usr/bin/php /opt/scripts/fetchXMLData.php" every morning at 1:00am. I
would like to do the same on the iSeries to eliminate the need of building
a linux server, but I'm not sure how to call PHP and the script from
CLI/PASE; which would eventually be called from WRKJOBSCDE. Can anyone
point me in a direction; if this is even possible?

-JA-

--
Jason Aleski / IT Specialist

--
This is the Web Enabling the IBM i (AS/400 and iSeries) (WEB400) mailing
list
To post a message email: WEB400@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/web400
or email: WEB400-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/web400.



As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.