Skip to Main Content

DevOps, CI/CD and Automation

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

How to set a Environment variable in a C program a

807578Jun 16 2001 — edited Jun 20 2001
I 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
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jul 18 2001
Added on Jun 16 2001
1 comment
118 views