Hi,
I was looking to have some ideas on how I can get this connection working: I have a Unix shell script that runs a .pf file, but I was looking to have the username from the unix system assigned to the -U parameter within the pf file.
Sample of my unix script (Excerpt):
DBS=/dba/db
SRC=/dba/src
USR=$HOME/dev/dba
PROPATH=".,/dba/rt,/dba/prolibs/system.pl,"
PATH=.:/usr/bin:$DLC/bin
startpgm='-pf /export/home/adamk/bin/dba.pf -p systart.p'
tempdir='-T /var/tmp/protmp'
Sample of the pf file:
-db /dba/db/system -U
I have tried using the following for where the '-U' is... os-getenv("USER"), $USER
With no luck thus far, anyone have any suggestions on how to get this connection working? I know that if I set the -U parameter explicitly to the actual username like -db /dba/db/system -U "adamk" works, but I am needing the username to be set by the OS and not by manually entering it.
Thanks,
Adam
Openedge 10.2a
I was looking to have some ideas on how I can get this connection working: I have a Unix shell script that runs a .pf file, but I was looking to have the username from the unix system assigned to the -U parameter within the pf file.
Sample of my unix script (Excerpt):
DBS=/dba/db
SRC=/dba/src
USR=$HOME/dev/dba
PROPATH=".,/dba/rt,/dba/prolibs/system.pl,"
PATH=.:/usr/bin:$DLC/bin
startpgm='-pf /export/home/adamk/bin/dba.pf -p systart.p'
tempdir='-T /var/tmp/protmp'
Sample of the pf file:
-db /dba/db/system -U
I have tried using the following for where the '-U' is... os-getenv("USER"), $USER
With no luck thus far, anyone have any suggestions on how to get this connection working? I know that if I set the -U parameter explicitly to the actual username like -db /dba/db/system -U "adamk" works, but I am needing the username to be set by the OS and not by manually entering it.
Thanks,
Adam
Openedge 10.2a