|
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 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.