Carlos Santos [mailto:[EMAIL PROTECTED]] wrote:
> I need to write a couple of perl script to run on a SCO Unix
> (not sure if this message should be sent to this list...)
Are you aware of the Perl-Unix-Users list? It's probably better to ask
there, but I won't make you repost :)
> Two questions:
>
> 1) How do i open a Telnet connection to a given server, using PERL of
> course ? I need to open the connection, validate the user's
> login, run a
> couple of commands and then close the connection. Any ideas ?
Yep. Use Net::Telnet. Simple interface to do exactly that.
> 2) One of my scripts receives two parameters: username and
> password. How do
> i use these parameters to check if there is a system account
> that matches
> those parameters ? Basically, what i want the script to do is
> to verify if
> the user is indeed a system user. Any ideas ?
Using Net::Telnet, you can check for an error condition on the
login() method. Or parse the system's response.
--
Mark Thomas [EMAIL PROTECTED]
Sr. Internet Architect User Technology Associates, Inc.
$_=q;KvtuyboopuifeyQQfeemyibdlfee;; y.e.s. ;y+B-x+A-w+s; ;y;y; ;;print;;
_______________________________________________
Perl-Win32-Web mailing list
[EMAIL PROTECTED]
http://listserv.ActiveState.com/mailman/listinfo/perl-win32-web