remotely executing commands via telnet
From: Chris (chess76_at_hotmail.com)
Date: 08/04/04
- Next message: bill skipton: "Re: Using variables defined later"
- Previous message: scanman20: "Reading a list of NT groups a user belongs to"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 3 Aug 2004 19:05:19 -0700
I know somebody must have already done this so i don't want to
re-invent the wheel.
I basically just want to do this in a php script:
1. Connect to another machine via telnet.
2. Login
3. Execute Command & Return Result
4. Exit
And possibly do multiple step 3's. Has somebody written a php telnet
class for this already that I can just go grab? I really don't want
to have re-write this if it's already done and somebody is willing to
share. I have a working implementation with using PHP to execute an
EXPECT script but the overhead of connect each time in the scripts
when I need to run multiple commands is taking too long. I'd like to
be able to make a connection at the beginning of my PHP script and
exit at the end of the script and execute various commands in-between
and storing/displaying the results of the commands.
Thanks,
Cristov
- Next message: bill skipton: "Re: Using variables defined later"
- Previous message: scanman20: "Reading a list of NT groups a user belongs to"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|