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



Walt,

By using spawnp (Qp0zSpawnp) instead of plain old spawn you will be able to
do what you want.  According to the UNIX-Type APIs SC41-5875 manual
"spawnp() takes the file parameter and searches the environment variable
PATH. The file parameter is concatenated to each path defined in the PATH
environment variable."

It's probably because I'm on an old release but environment variables always
seemed a little flaky in practice.  I had much better luck when I used
Qp0zPutEnv instead of putenv.

HTH 
Tom D.


 |  -----Original Message-----
 |  From: Walt Fles [mailto:wfles@xxxxxxxxxxx]
 
|  
 |  All,
 |  Im trying to use spawn to call a command without having to 
 |  specify a 
 |  complete path, ie
 |  without having to say "/qsys.lib/mylib.lib/mypgm.pgm"
 |  Is there something I have to set up in my environment?
 |  

This communication is confidential, intended only for the named recipient(s)
above and for the purposes stated herein. It may contain trade secrets or
other information that is exempt from disclosure under applicable law.
Except as otherwise authorized in writing, any use, dissemination,
distribution, or copying of this communication by or to anyone other than
the named recipient(s) or for any purpose other than the purpose as stated
or intended herein is strictly prohibited. If you have received this
communication in error, please immediately notify SDD by calling us at (561)
276-7004.


As an Amazon Associate we earn from qualifying purchases.

This thread ...


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.