package - Ruby: cross-platform way to determine whether NFS is installed? -


i need detect whether nfs installed or not on running server in ruby code.

if there way can in cross-platform way(or @ least in unix/linux)?

i can't think of cross platform way there's no standards getting kernel info. think have specific guest os type. linux "modinfo nfs". solaris boxes use modinfo , search nfs in output or in /etc/dfs/fstypes. using "uname -s" tell method use.


Comments

Popular posts from this blog

android - Spacing between the stars of a rating bar? -

html - Instapaper-like algorithm -

c# - How to execute a particular part of code asynchronously in a class -