[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[ale] Am I Linux?
- Subject: [ale] Am I Linux?
- From: transam at cavu.com (Bob's ALE Mail)
- Date: Wed, 11 Dec 1996 23:16:13 -0500
An easy for a csh script to tell if it's running under Linux:
if ( -e /etc/lilo || -e /sbin/lilo ) then
One also could test for the existence of /etc/version and grep for Linux in
it. With the inappropriate syntax this could be used for other shells too.
Bob Toxen
bob at cavu.com
transam at cavu.com [ALE]
http://www.mindspring.com/~cavu
Fly-By-Day Consulting, Inc.
"Venimus, Vidimus, Dolavimus" (We came, we saw, we hacked)