944,201 Members | Top Members by Rank

Ad:
  • Python Discussion Thread
  • Unsolved
  • Views: 3383
  • Python RSS
Aug 14th, 2006
0

port forwarding in Python

Expand Post »
I had a problem in connecting to remote MySQL server, which is being firewall protected. I searched in Internet to find possible solution, I found, I have to use port forwarding using SSH command, and I am using WinXP.

But unfortunately, SSH command is not there in Windows.

I used PLINK command for port forwarding. I was able to connect to MySQL on remote host. But the problem is, when I run command it opens a command prompt, which I don't to run as seperate window, when I run this command.

Is there any way I can hide this command prompt being displayed?

following is the code I run to port forwarding(local port forwarding)

Python Syntax (Toggle Plain Text)
  1. import os
  2. os.system("plink -v -l -N -batch username -pw password -L 3307:remote.MySQL.server:3306 remote.firewall.server")


Any advise is greatly appreciated.


Thanks.

Sudhir.
Similar Threads
Reputation Points: 19
Solved Threads: 34
Posting Whiz in Training
katharnakh is offline Offline
237 posts
since Jan 2006

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in Python Forum Timeline: Extract strings from HTML with Asian encoding
Next Thread in Python Forum Timeline: Chores Assignment Script





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC