Hello,
I changed my way. This time I'm using plink under Putty.
My python code is:
os.chdir(c:\\Program Files\\Putty)
cmd = plink -ssh -l ufuk10.10.10.10 -pw password
process = subprocess.Popen(cmd)
inputdata=r van
result = process.communicate(inputdata)
But after the successful SSH, I cannot
Ufuk Eskici wrote:
Hello,
I changed my way. This time I'm using plink under Putty.
My python code is:
os.chdir(c:\\Program Files\\Putty)
cmd = plink -ssh -l ufuk10.10.10.10 -pw password
process = subprocess.Popen(cmd)
inputdata=r van
result = process.communicate(inputdata)
But
I used this code:
os.chdir(c:\\Program Files\\Putty)
cmd = plink -ssh -l ufuk 10.10.10.10 -pw password
process = subprocess.Popen(cmd, stdin=PIPE, stdout=PIPE,
stderr=subprocess.PIPE)
stdout, stderr = process.communicate ()
After running this code, just one black cmd screen appears, but it
On Fri, Dec 21, 2012 at 9:44 AM, Ufuk Eskici ufukesk...@gmail.com wrote:
cmd = plink -ssh -l ufuk10.10.10.10 -pw password
process = subprocess.Popen(cmd)
inputdata=r van
result = process.communicate(inputdata)
But after the successful SSH, I cannot continue, no command runs:
To use
On 19/12/12 14:54, boB Stepp wrote:
Now after the upgrades some machines now have Python 2.4.4
and others Python 2.4.6. For the purposes of creating/manipulating
text files and running Solaris-flavored Unix commands, is there
anything I should be specially aware of? I have been working entirely
On 18/12/12 01:36, Oscar Benjamin wrote:
I think it's unfortunate that Python's int() function combines two
distinct behaviours in this way. In different situations int() is used
to:
1) Coerce an object of some type other than int into an int without
changing the value of the integer that the
On Fri, Dec 21, 2012 at 5:57 PM, Steven D'Aprano st...@pearwood.info wrote:
Yes; using Python 2.4 is painful compared to Python 3.x because it is
missing so many cool and useful features. 2.4 is quite old now, and
there have been many, many bug-fixes and new features added since then.
Some
Oh, another comment...
On 18/12/12 01:36, Oscar Benjamin wrote:
I have often found myself writing awkward functions to prevent a
rounding error from occurring when coercing an object with int().
Here's one:
def make_int(obj):
'''Coerce str, float and int to int without rounding error