kaftab
July 16th, 2002, 08:44 AM
Hi gurus,
I am working on two programs that are called by a script (unix shell, or windows batch). The first program ouputs a file. The second program is to consume that file. I need a way to convey the name of the file created by the first progarm, to the second.
I was thinking of using an environment variable, however, it didn't work, and after I did a search on this forum, found out that it doesn't work (or is very complicated). The suggestion is to use a registry key. My programs, however, are portable, and are mostly going to be used on unix.
Is there another way I can pass this file name to the second program?
Thanks in advance.
Kamran
I am working on two programs that are called by a script (unix shell, or windows batch). The first program ouputs a file. The second program is to consume that file. I need a way to convey the name of the file created by the first progarm, to the second.
I was thinking of using an environment variable, however, it didn't work, and after I did a search on this forum, found out that it doesn't work (or is very complicated). The suggestion is to use a registry key. My programs, however, are portable, and are mostly going to be used on unix.
Is there another way I can pass this file name to the second program?
Thanks in advance.
Kamran