| sysinfo (Aug2004) | rjtools | sysinfo (Aug2004) |
Note that in order for the returned 'username' to be non-empty, the user needs to add a line to the default 'login.cl' file, e.g., directly following the line defining the 'userid' (in fact, it may be a copy of that line):
set userid = "jdoh"
set username = "John/Jane D'Oh"
sysinfo() ; gdate(utc=yes)
print ("# WFPCSTACK: "//sysinfo.sysmsg//" "//gdate.adate//" UTC",
>> logfile)
which might result in the following message being logged to 'logfile':
# WFPCSTACK: IRAF2.12.1 raj@hasnap Wed 05-Dec-2003 00:57:29 UTC
2. To show the information that sysinfo has collected:
rj> sysinfo()
rj> lpar sysinfo
(host = "hasnap") Host system name
(arch = "redhat") Host system architecture
(userid = "raj") User id (short)
(username = "R.A. Jansen") User name (full)
(path = "/data2/raj/red/") Current working directory
(origin = "NOAO/IRAF") Origin of IRAF distribtion
(version = "V2.12.2-EXPORT") Version of IRAF running on host
(sysmsg = "IRAF2.12.2 raj@hasnap") Composite message for logging
(mode = "ql")