---- Message ----
From: Klaus Meinhard
| Hallo John,
|| My application is this: our day shift with higher security clearance
|| goes home at about 17:00. She does not always log out (via an
|| encrypted database program using foxpro in a manner similar to
|| linux). The next shift does not have the security level that she
|| does, nor do I want them to perform tasks that are logged into a
|| database showing that the day person did them. I want to test the
|| time, and take action as a background task. the following works
|| but I would have to constantly be executing the command:
|| iff "%_time" gt "17:00" then
|| echo Time to go home.
|| echo Get back to work.
| Using only 4DOS (or 4NT, TCC, you don't write what CP or OS you are
| using) you could program a loop using DO, e.g.
| DO FOREVER
| IFF "%_time" lt "17:00" THEN
| DELAY 60
| ECHO Time to go home
| or, without the need to have a batch continously run, you might take a
| look at the task scheduler of your OS.
---- End Message ----
You should check to see if your login system includes automatic logout
for inactivity. Most secure systems include a feature that users inactive
for a selected time are automatically logged out. If your system includes
such a feature, turn it on. Your person who fails to log out at end of shift
may be inconvenienced during her shift, but it would reduce the likelihood
of a security breach. OTOH, in all facilities where I ever worked, and which
had security clearance requirements, it was a serious breach of security not
to log out. Repeated infractions resulted in suspension and even
termination of security clearance. IMHO a person who fails to terminate
accessibility of a system when such access is no longer authorized is not
sufficiently security conscious to be permitted access without close
As Klaus Meinhard wrote, your best bet is to use the scheduling features
of your (to us unknown) OS to run a process that will forcible log out the
user. Any OS where 4NT or TCC runs has such a feature. 4NT and TCC allow you
to send keystrokes to another process. This is likely to allow you to force
logging out the wayward personnel.