3SRT has asked for the wisdom of the Perl Monks concerning the following question:

Hello monks,

I am curious if you can use the 'nlist' command in perl, and if you can, how?

Currently, I am using a simple batch file to search a certain Novell group for active users. I am using the 'nlist' command and export the results to a spreadsheet. However, I need to format the spreadsheet a little differently, and Perl would give me this ability.

I've done some searching, but haven't found much relevant information. Any thoughts?

Thanks in advance!

Replies are listed 'Best First'.
Re: nlist command with Perl
by marto (Cardinal) on Apr 25, 2008 at 14:19 UTC
    Searching Google for perl novell nlist seems to have a quite a few results. Did you look at the first one?

    Function: Uses Novell's NLIST command to display active users in any number of NDS contexts. Alternatively, given a root context, the script will recursively scan all containers for active users. Automatically updates the HTML page with a user-specified period and the HTML page itself is coded to automatically refresh itself every 10 minutes. Also matches computer harware addresses held in a DHCP table with those generated by NLIST to identify which workstation the person is using."

    Update: Added description from first result.
      Thanks for the reply. Yes, I did visit the site. I should have worded my question different. Since Novell is on a Windows box and the code I am running is on a seperate Linux box, i get a 'nlist: command not found'. I take it this means there needs to be a module installed on the Linux box?

      Or would the code need to be run on a box that has Novell installed?
        <joke>What I am? Your personal interface to Google?</joke>

        This error means that there is no nlist executable available (which could simply mean that it is not in your PATH). However searching Google returns Novell client for Linux. Now I am no expert, but this client 'looks' like it is what you want to install.

        As a secondary note, yes your first post lacked the required detail (hence your second post), see How do I post a question effectively?, and also please do some searching (via super search or insert search engine of choice here) before you post here, so far that is what I have done to answer your questions.

        Thanks

        Update: added ending to last sentence. 2: s/could could/could/

        Martin