[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[ale] Am I Linux?



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)