How to set a Environment variable in a C program a
807578Jun 16 2001 — edited Jun 20 2001I have a C program creating a file.This program is called through a shell script, the shell script also FTP's the file. The problem is how do get the file name known to shell script. I don't want to use commands like ls -lt | head -1. I have tried using putenv() to set a environment variable, but value of the environment is known only for the execution period of the program. Please suggest some solutions.
Thanks, Murali