4glWorks reference: Operating System utilities

executable

file cshlc.c
declaration
function executable(a)
    define a	char(32000)
returns true if the file passed as argument has the executable flag set
purpose self explanatory
example none
notes none

get_login

file cshlc.c
declaration
function get_login()
returns user, char(80), user name
purpose Returns the current user id
example none
notes implemented to provide functionality equivalent to user from within 4gl

get_process

file cshlc.c
declaration
function get_process()
returns pid, integer, current process id
purpose returns the process id of the current process
example none
notes none

get_time

file iusrc.c
declaration
function get_time()
returns time, integer, seconds elapsed since Jan 1, 1970, 00:00:00
purpose returns the current time as reported by the OS
example none
notes none

shell

file cshlc.c
declaration
function shell(c)
    define c	char(32000)
returns nothing
purpose invokes the shell to execute the commands passed to it
example none
notes Was written before RUN...IN FORM MODE was implemented, retained for backward compatibility