Topic RSS
7:48 am
Oct 1, 8:56 am
Offline4:11 pm
Oct 1, 8:55 am
OfflineI get $processinfo output only when exclusive connection is opened as shown below .
(_detail) CONNECT_UROUTER:1 activate "OSUSR"."GET_OSID"( PID )
(_detail) CONNECT_UROUTER:2 [-155] putmess "output is is %%PID" <——————- before exclusive connection opening
output is is
(_detail) CONNECT_UROUTER:3 [-155] putmess "in connect urouter – %%$$FUNC_ID, %%$$SERVER"
in connect urouter – rsm2app2, SMART2AP
(_detail) CONNECT_UROUTER:4 [-155] open "|%%$$FUNC_ID|%%$PINFO$|%%$$SERVER /ex", "$LOG/NET"
(_detail) CONNECT_UROUTER:5 putmess "status is %%$status"
status is 0
(_detail) CONNECT_UROUTER:6 if ($status < 0)
(_detail) CONNECT_UROUTER:10 endif
(_detail) CONNECT_UROUTER:11 activate "OSUSR"."GET_OSID"( PID ) <—————after exclusive connetion opening
(_detail) CONNECT_UROUTER:12 putmess "output is is %%PID"
output is is rsm2app2
code in osusr services
==================
operation get_osid
params
string vPID : inout
endparams
vPID = $processinfo("user")
end
To get your local user, the process needs to run on the local client, so you shouldn't be routing that service via the urouter.
$processinfo will give you the user logged in with reference to the process which is running, and if that's on the server then the user will be userver/urouter or whoever runs the service on the server. To get the local (client) user, $processinfo needs to be run on the client.
Most Users Ever Online: 56
Currently Online:
3 Guest(s)
Currently Browsing this Page:
1 Guest(s)
Top Posters:
ulrich-merkel: 1156
FiresongKt: 284
Theo Neeskens: 196
-GHAN-: 171
lalitpct: 158
rogerw: 128
diseli: 110
uniface8: 95
istiller: 84
Thomas.Young: 81
Member Stats:
Guest Posters: 0
Members: 1735
Moderators: 0
Admins: 9
Forum Stats:
Groups: 1
Forums: 61
Topics: 985
Posts: 4407
Newest Members: icecracker, StephanieHall, BlackDog, paul.hewison, vissini, ballaran, curly9, worthy1, aesserman, gnavarropa
Administrators: admin (6), timblankers (0), timblankers (0), timblankers (0), timblankers (0), timblankers (0), timblankers (0), Tim Blankers (7), Adrian Gosbell (14)

Log In
Register
Home


