# Main # # This Perl script lists all of the partitions on the server. # It uses the virtual file services for NetWare on Linux. # Version 1.0 # Date: Sept. 12, 2008 # { # Global Variables $file = "+". "". ""; # Initializing the virtual file for sending a command. print $file; print "\n"; print $command; print "\n"; syswrite(NSSFILE, $command, length($command)) #Initialize the nss management file and write a command. or die "Error writing initialization to management file."; seek NSSFILE, 0, 0; # Make sure to start at the beginning of the file. sysread (NSSFILE, $reply, 10000); #Read the reply. print $reply; #Print the reply to the screen. print "\n"; print "\n"; close (NSSFILE); }