× 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'm getting intermittent issues when using the UNIXCMD utility, it's
raising an error closing the UNIXCMD file (File spec that specifies
'UNIXCMD/UNIXCMDOA'). The actual command does work.

I can't replicate the issue when when re-running the identical command.
The command is a literal with placeholders that are replaced with actual
values.

RPG snippet:
lUnixCmd = 'zipnote "&ZIP" > "&TMP" +
&& echo ''&COMMENT'' >> "&TMP" +
&& zipnote -w "&ZIP" < "&TMP" +
&& rm "&TMP"';
lUnixCmd = %scanrpl('&COMMENT' :commentText :
%scanrpl('&TMP' :lTmpFile :
%scanrpl('&ZIP' :zipFile
:lUnixCmd)
));

Here are the stdout values that are returned by reading UNIXCMD:
rm: 001-2103 Error found getting information for file or directory
qsh: 001-0019 Error found searching for command FontBold.
qsh: 001-0019 Error found searching for command FontBold.

It's the FontBold messages that confuse me the most. I have no idea where
they come from. Is it possible that UNIXCMD is getting stdout from a
different command, possibly a Java process?

Any ideas?

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:

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.