On Thu, Nov 26, 2009 at 7:45 PM, Vivek Rajendran wrote:
>
> Hi,
> A doubt again...
> I have looked into apache.py file inside
> /usr/lib/python2.3/site-packages/... path and they have a method
> build_cgi_env(req)
>
> If we invoke this function it gives a dict of env variables.
> But I
Hi,
You are right. In that case we can use paramiko module.
But its less used. And it uses ssh2 protocol
Thanks
Vivek Rajendran
Ramdas S wrote:
>
> pexpect is a good choice, and its way simple, but getting it to work on
> windows is tough.
>
> On Thu, Nov 26, 2009 at 7:41 PM, Vivek Ra
Hi,
A doubt again...
I have looked into apache.py file inside
/usr/lib/python2.3/site-packages/... path and they have a method
build_cgi_env(req)
If we invoke this function it gives a dict of env variables.
But I don't know how to invoke this function ? with that 'req' argument
pexpect is a good choice, and its way simple, but getting it to work on
windows is tough.
On Thu, Nov 26, 2009 at 7:41 PM, Vivek Rajendran wrote:
>
> Hi,
> You want strictly to do this using socket?
> Else, you can use pexpect module. It doesn't come with default python
> installation
Hi,
You want strictly to do this using socket?
Else, you can use pexpect module. It doesn't come with default python
installation in both windows and linux.
You can download it seperately and install the module. Basically you will
spawn a process and then ssh into the remote machine.