Replies: 5 comments 2 replies
-
One way, likely not the simplest, would be: GDL> spawn, 'echo $PPID', output & pid=fix(output) & print, pid
30593
GDL> $ps | grep gdl$
30593 pts/2 00:00:00 gdl HTH |
Beta Was this translation helpful? Give feedback.
-
Perfect!
Thanks!
… On 4. Jan 2024, at 17:06, Sylwester Arabas ***@***.***> wrote:
One way, likely not the simplest, would be:
GDL> spawn, 'echo $PPID', output & pid=fix(output) & print, pid
30593
GDL> $ps | grep gdl$
30593 pts/2 00:00:00 gdl
HTH
—
Reply to this email directly, view it on GitHub <#1708 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AOC5K6GQI2CQLBJQM7BXMSDYM4DVHAVCNFSM6AAAAABBNN4U2SVHI2DSMVQWIX3LMV43SRDJONRXK43TNFXW4Q3PNVWWK3TUHM4DAMJWGY4TK>.
You are receiving this because you authored the thread.
|
Beta Was this translation helpful? Give feedback.
-
My stupid question :
and reading the doc., if I understand well, we just have to ignore /cdecl when running on Linux, isn't it ? A. Ps: last point I forgot to copy, on my linux :
|
Beta Was this translation helpful? Give feedback.
-
Well, on my linux it works with and without /cdecl
I do not even remember any more why I put /cdecl at that time.
… On 4. Jan 2024, at 18:05, Alain ***@***.***> wrote:
My stupid question :
GDL> print, call_external('IDLetGDL/IDL88/idl88/bin/bin.linux.x86_64/libidl.so','getpid')
10142
GDL> print, call_external('IDLetGDL/IDL88/idl88/bin/bin.linux.x86_64/libidl.so','getpid',/cdecl)
% CALL_EXTERNAL: Keyword parameter <CDE> not allowed in call to: CALL_EXTERNAL
% Execution halted at: $MAIN$
GDL> #call_external
Internal FUNCTION : res=CALL_EXTERNAL([inf. Args],VALUE,ALL_VALUE,RETURN_TYPE,B_VALUE,I_VALUE,L_VALUE,F_VALUE,D_VALUE,
UI_VALUE,UL_VALUE,L64_VALUE,UL64_VALUE,S_VALUE,UNLOAD,ALL_GDL,STRUCT_ALIGN_BYTES,DEFAULT,PORTABLE,VAX_FLOAT)
and reading the doc., if I understand well, we just have to ignore /cdecl when running on Linux, isn't it ?
A.
—
Reply to this email directly, view it on GitHub <#1708 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AOC5K6AZQPESQWGBFQJCSETYM4KSLAVCNFSM6AAAAABBNN4U2SVHI2DSMVQWIX3LMV43SRDJONRXK43TNFXW4Q3PNVWWK3TUHM4DAMJXGE3TM>.
You are receiving this because you authored the thread.
|
Beta Was this translation helpful? Give feedback.
-
This works in IDL/FL, but not in GDL :-( |
Beta Was this translation helpful? Give feedback.
-
In linux I would do:
How can I do this in GDL?
Beta Was this translation helpful? Give feedback.
All reactions