10 More Discussions You Might Find Interesting
1. Windows & DOS: Issues & Discussions
Hi all,
I am trying to run below python code for connecting remote windows machine from unix to run an python file exist on that remote windows machine..
Below is the code I am trying:
#!/usr/bin/env python
import wmi
c = wmi.WMI("xxxxx", user="xxxx", password="xxxxxxx")... (1 Reply)
Discussion started by: onenessboy
1 Replies
2. Shell Programming and Scripting
I have bash shell script which is internally calling python script.I would like to know how long python is taking to execute.I am not allowed to do changes in python script.Please note i need to know execution time of python script which is getting executed inside shell .I need to store execution... (2 Replies)
Discussion started by: Adfire
2 Replies
3. Programming
Hi,
I am getting the below error:
AttributeError: 'tuple' object has no attribute 'field_id'
This line is complaining on the below code snippet:
field_list =
for f in source_rows:
field_list.append(f.field_id)
Where source_rows returns multiple rows of... (1 Reply)
Discussion started by: ChicagoBlues
1 Replies
4. Shell Programming and Scripting
Hi There,
I have the following code:
import time
import paramiko
node_list =
for node in node_list:
ssh = paramiko.SSHClient()
ssh.set_missing_host_key_policy(paramiko.AutoAddPolicy())
ssh.connect(node, username='lord', password='xxxx')
variables = {}
stdin,... (3 Replies)
Discussion started by: infinitydon
3 Replies
5. Shell Programming and Scripting
I'm trying to pull a google calendar (successful) and then put the contents into a mysql db (almost successful). On one of the field I keep getting an encode error:
#!/usr/bin/python
from xml.etree import ElementTree
import gdata.calendar.data
import gdata.calendar.client
import... (12 Replies)
Discussion started by: unclecameron
12 Replies
6. Programming
Hey all,
I'm trying to enter some data into a database and I keep getting this error:
Traceback (most recent call last):
File "./ais_file_parser.py", line 77, in <module>
cursor.execute(sql)
File "/usr/lib/pymodules/python2.7/MySQLdb/cursors.py", line 166, in execute
... (1 Reply)
Discussion started by: pmd006
1 Replies
7. Shell Programming and Scripting
I have a shell script main.sh which inturn call the python script ofdm.py, I want to pass two variables from shell script to python script for its execution. How do i achieve this ?????
Eg:
main.sh
a=3 b=3;
c= a+b
exec python ofdm.py
ofdm.py
d=c+a
Thanks in Anticipation (4 Replies)
Discussion started by: shashi792
4 Replies
8. Programming
hi
i have an error in script language when run it
i use python 2.4, CentOS 5.5, Qt C++ 2010/04
the error is
SystemError: null argument to internal routine
the Python Code
def main(i):
print i
if __name__ == "__main__":
main(i)
the C++ Code
PyObject *objModule =... (0 Replies)
Discussion started by: HanyM.Magdy
0 Replies
9. Shell Programming and Scripting
Hi
I need to run a shell script from a TCL script,the shell script in trun will run a python script
1.Tcl script
set filename "./GopiRun.sh"
2.GopiRun.sh
python ./psi.py $MYSB/test_scripts/delivery/gpy1.py
3.I have my gpy1.py script.
Here the problem i am facing is on running... (0 Replies)
Discussion started by: nathgopi214
0 Replies
10. Shell Programming and Scripting
Hi
I have a python script,i need to run this script from a tcl script.Can anyone let me know how to do this (1 Reply)
Discussion started by: nathgopi214
1 Replies