It has been long time I have scripted something. Could somebody let me know to write a script where in I have to check the version of UNIX OS, e.g if the version of unix is SUN run the /usr/sbin/* and if it is UNIX run the /usr/...
What I want to do is I need to check the version of OS if it is Solaris then I need to run the command /usr/sbin/snmpd, if it is AIX then I need to run the command /usr/bin/startsrc –s snmpd. Could you please help on this.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.