A "Where am I" routine
- Date: Fri, 6 Jul 2018 06:25:43 -0500
- From: Richard Owlett <rowlett@xxxxxxxxxxx>
- Subject: A "Where am I" routine
I multi-boot several configurations &/or releases of Debian.
I will run identical test scripts on each.
I want to store the results in a common logging file.
I can set up an appropriate environment with a custom fstab containing:
# create a common area
LABEL=owlcommon /home/richard/Documents/tst_common vfat user,rw,umask=000 0 0
# a dummy mount labeled to show which instance
LABEL=dummy /home/richard/Documents/where/sda14 ext4 user,ro 0 0
The first statement gives me a directory usable by all.
The second tells me where I am by using:
in any test script.