473,503 Members | 1,805 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Reuse ssh connection created using pxssh

1 New Member
Hi,

I am using pxssh to create an ssh connection with a server. this pxssh is defined in a script called session.py. in session.py i create an ssh connection and then send commands to be executed in that session and after execution of commends it will exit the ssh connection.

Now i am calling this script using subprocess.call() ,from master script called testrunner.py.

this testrunner.py calls sessioon.py again and again for eac test case. so for each testcases ssh is created and commands are executed.

I want that ssh creation happens only for 1st test case (i.e. when session.py is called for first time) and for subsequent calls it uses the same session.

is it possible to do like this?
Feb 25 '14 #1
0 1081

Sign in to post your reply or Sign up for a free account.

Similar topics

5
9084
by: Giles Brown | last post by:
I'm feeling quite dumb this morning. I'm trying to build a COM server DLL using py2exe and it ain't working. Here's what ain't working... setup_dll.py based on py2exe sample: """from...
0
4684
by: Ben Jones | last post by:
Hi there, I am looking into the ease of implementing the localization/globalization features of .NET using C#. I have a test app which creates a ResourceManager and attempts to load a resource...
0
1254
by: M | last post by:
Hi, I got a C# project which uses a "CORE" originally written in SDK. If I triger an event which bring up a Modeless dialog created using either old SDK C++ code or MFC/C++ code, the cursor keys...
6
2154
by: Vikram | last post by:
I have added some input elements on a page using javascript at client side. when i submit the page, i am unable to access the values of input elements created using request.form. Are elements...
2
4608
by: Maziar Aflatoun | last post by:
Hi guys, I'm using Windows authentication to connect to SQL Server 2000. On my computer the connection is fine. Now if I move it to a remote server, how to I hard code my Username/Password in...
5
1754
by: tshad | last post by:
I can't seem to find where to reset the parameter list. Dim objCmd as New SqlCommand(CommandText,objConn) with objCmd.Parameters .Add("@StateCode",SqlDbType.Char,2).value = ByState.SelectedValue...
2
5090
by: sk.rasheedfarhan | last post by:
Hi , i want to manage connection pooling using C++ code, below is the code i am using so can any body tell me if this code is correct or not ? if not plz send me a snap shot !!! if the code is...
2
3354
by: Rob Dob | last post by:
Hi, I have several reports ( .rdl) that I created using report designer, how can I let the end user make modifications to the text in some of these reports. As I am unable to use Report Builder...
1
4414
by: tereglow | last post by:
Hello, I am trying to convert some Expect/Tcl code into Python by using the Pexpect module. The environment is such that authenticated keys are disabled although SSH is available. I do not...
0
905
nev
by: nev | last post by:
i have used the dataset designer for the database of my forms. the dataset designer creates the connection automatically and is readonly. i have already tried to access the project properties menu...
0
7199
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7074
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7273
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7451
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
4667
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3150
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1501
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
731
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
374
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.