I had developed a perl script to execute SNMP commands. The program is working fine.
For windows, the program takes the input from c:\snmpauto.
For linux, the program takes the input from /root/snmpauto.
My problem is that i need to manually tell the program if i am running a windows os or linux os. Is there a way that the program recognizes the os currently running and pick up the input files from the location.