× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



I whipped up a quick test using example4 as a base.

output is in the spool file

http://code.midrange.com/8e02ce355b.html


good Luck,
Bryan



Mario Martoriello wrote on 2/12/2016 5:43 AM:
Hi all
I have to call a php function from my rpg program. I have already used the Scott’s utility UNIXCMD to call a program Pase from rpg and it worked fine. Now I have a problem that after the call I have no errors but it seems that the php function doesn’t run. If I run the php function from qshell it works fine. When I call it from rpg I have no joblog and no errors at all so I don’t understand why it doesn’t work.
Can anyone suggest me what I have to check?.
My code is the following
FUNIX IF F 1000 SPECIAL PGMNAME('UNIXCMD')
F PLIST(UNIXPARM) USROPN
D cmd s 5000a
C UNIXPARM PLIST
C PARM CMD
Cmd = '/usr/local/zendsvr6/bin/php-cli +
/www/zendsvr6/htdocs/sepaxml/generaBonifici.php '+
%Trim(CDCUCX) + blank + %Trim(nomefile) + blank +
%Trim(nomefil2) ;
open UNIX;
close(e) UNIX;
If %error ;
...
Endif;
Mario

If I put the program under debug I see the variable cmd correct and if I cut the contents and run by qshell it works fine.

Regards










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.