Closed kadler closed 7 years ago
Original comment by Nathanael BONNET (Bitbucket: nbonnet_gaia, GitHub: nathanaelGaia).
Thanks Tony. I have validated some scripts.
Original comment by Tony Cairns (Bitbucket: rangercairns, GitHub: rangercairns).
Ok, added your change. I am assuming you tested to some level.
Original comment by Nathanael BONNET (Bitbucket: nbonnet_gaia, GitHub: nathanaelGaia).
Aaron, you're right, my client is a ILE SQL RPG program in this case.
I think the problem comes from any qsh command with a ' (quote).
I modified the source of PLUGILE module, ileExec procedure in order to duplicate all quotes in the command :
#!rpgle
cmdstr = 'STRQSH CMD('''
+ '/usr/bin/qsh -c '''''
+ %scanrpl( '''' : '''''' : %str(cmd:cmdLen)) // + %str(cmd:cmdLen)
+ ''''''')';
then it works !
Aaron, Bill, thanks !
Original comment by Aaron Bartell (Bitbucket: aaronbartell, GitHub: aaronbartell).
@starbg, I think his context is different. He's trying to invoke a shell script from XMLSERVICE; which is his client in this scenario.
@nathanaelGaia, take a look at these docs to see how error logging can be turned on.
Original comment by Anonymous.
Nathanaël, I have no official answer here (but just saw your report). The recommendation is generally to use a terminal app on your client computer to execute a shell with SSH. Here's a link to a Ryver discussion (enrollment link here) of the cross-platform one I'm currently using successfully.
Original report by Nathanael BONNET (Bitbucket: nbonnet_gaia, GitHub: nathanaelGaia).
Hi,
With version 1.9.8, I tried to use qsh.
It works for a simple commande like ls, but I got an error with /QIBM/ProdData/OS/WebServices/V1/server/bin/listWebServices.sh
myXmlOut contains :
I tried with using CDATA, several values for IPC and Ctl, qualifing by /usr/bin/sh.
Thanks Nathanaël