Hi All,
These are the following things which i want to do:-[list]
1. I will be taking the ipaddress, username and password from the user using cgi ffrom the browser.
2. Now i want to get the mac address which i can get by connecting to the remote machine and by executing ifconfig command.
Now to connect to a remote machine in python i tried using pexpect module by which i can ssh to remote machine and get the mac address.
I was successful in using the pexpect module but its working only from the linux terminal i.e. when i run the program at the command prompt, but when i use that program through cgi, it gives me a pexpect exception which is as follows.
pexpect.ExceptionPexpect: Error! pty.fork() failed: out of pty devices\
Am i using the right module plz help me out.....................
Thank You,
Vinoj Davis