HP3000-L Archives

September 1997, Week 3

HP3000-L@RAVEN.UTC.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Reply To:
Date:
Mon, 15 Sep 1997 17:23:43 -0700
Content-Type:
text/plain
Parts/Attachments:
text/plain (34 lines)
Gavin writes:

>Symbolic links are useful in lots of "pure MPE" places that people don't
>usually think of using them because they are perceived as a "Posix"
>feature.

Here's one example. We have several programs that write to log files we
keep for statistical purposes. The normally, the log files are switched
daily, but the system runs 24 hours/day. So rather than having the
programs calculate the name of a log file, or try to read it out of a
configuration file, every program that wants to log opens, say,
SRCHLOG.PUB. SRCHLOG.PUB is a link to the current log file, whatever its
name.

Most of the time, a job runs at midnight which creates a new log file,
then (while holding appropriate locks) does a PURGELINK SRCHLOG.PUB,
followed by a NEWLINK SRCHLOG.PUB,<new log file name>. When we want to do
something special with the log data, the symbolic link makes it easy for
us to control which log files get written, without every changing the
program or job stream/command file.

-- Bruce


--------------------------------------------------------------------------
Bruce Toback    Tel: (602) 996-8601| My candle burns at both ends;
OPT, Inc.            (800) 858-4507| It will not last the night;
11801 N. Tatum Blvd. Ste. 142      | But ah, my foes, and oh, my friends -
Phoenix AZ 85028                   | It gives a lovely light.
btoback AT optc.com                |     -- Edna St. Vincent Millay
Unsolicited mail to [log in to unmask] will be inspected for a
fee of US$250. Mailing to said address constitutes agreement to
pay, including collection costs.

ATOM RSS1 RSS2