Re: host variable
From: Syed Azam <syed_azam_at_rsmi.com>
Date: 1997/02/10
Message-ID: <32FF502B.5ACA_at_rsmi.com>#1/1
I hope this will help.
Date: 1997/02/10
Message-ID: <32FF502B.5ACA_at_rsmi.com>#1/1
Andrea Pallotta wrote:
>
> Hi there!! I have a problem that seems to be simple but... i can't find the
> way!!
> How can i catch an host variable ( Unix environment ) inside a form
> (SQL*Forms 3)?
> Exactly, i have to catch a file name inside a field inside a form... just
> to display a location of a .dmp file!!
>
> Please, help me!! I'ts driving me crazy!!
>
> Thanks in advance
>
> Andrea Pallotta
Try this,
if ((home = getenv("Unix_env_Variable")) == NULL)
{
fprintf(log_file,"\nEnvironment Variable \"IUnix_env_Variable\" not
defind.\n");
printf("\nUnix_env_Variable not defined");
exit(1);
}
sprintf(fname, "%s/out/FM6700.log", home);
if ((log_file = fopen(fname,"w")) == NULL)
{
fprintf(log_file, "Could not create the log file: %s\n", fname);
exit(1);
}
I hope this will help.
Let me know if this works.
Syed Azam
McGladrey & Pullen
Received on Mon Feb 10 1997 - 00:00:00 CET
