Paul.Igodt wrote:
Could anybody help me e.g. by showing the code to catch some of my cygwin (bash) environment-variables: e.g. 'PWD', 'HOME', 'TERM', ...
GetEnv
How do I ask a 'system call' to be executed from within a GPC program?
Execute (unit GPC).
E.g. assume I want to make a 'ls' of some directory, and to see if there is a file called 'testfile'.
If you want to capture the results of a system call, see the `Pipe' unit.
However, to find out it a file exists, you don't want to call ls. Instead, see `FileExists' and/or `ReadDir' etc.
Frank