Plugin to simulate a user login?

Mark Duling Mark.Duling at biola.edu
Sat May 29 00:02:24 CEST 2004


>The only way I can think to do this is with an Expect script of some
>sort.  Has anyone already written such a thing, or know of a better way
>to solve this problem?  Thanks!

>expect expect expect expect.  if you need help writing one just let me
>know
>off list but imho this is the only way to do what you need to do
>(properly).

There is a utility with expect called 'autoexpect' which will watch you do
a login and record the session so you don't have to do the coding from
scratch.  You can tweak the autolearned script if necessary after you see
how expect works.  My distro doesn't include the autoexpect script and if
yours doesn't either just download expect and get it.  Here is the manpage
for autoexpect.  http://expect.nist.gov/example/autoexpect.man.html

Mark



-------------------------------------------------------
This SF.Net email is sponsored by: Oracle 10g
Get certified on the hottest thing ever to hit the market... Oracle 10g. 
Take an Oracle 10g class now, and we'll give you the exam FREE.
http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null





More information about the Users mailing list