![]() |
|
#1
|
|||
|
|||
|
The following is a port of the MasterCommandLine submission sample, ported to Python from the original Digipede Csharp code. We had originally planned to use the API through COM, but the PythonDotNet project, while still beta seems a better answer:
http://www.zope.org/Members/Brian/PythonNet/README.html Output from running the program shown below: ================================================== ====== C:\home\DigiPede>mcl2.py /u XXX /p XXX /host abalone abalone 3 3 Job submitted. JobId=54. Result 0. Standard output was: Command Line: /stdout /sleep 3 /outfile output.0.txt Executed on: SHELL1 Starting execution at: 9/10/2005 12:38:05 AM Finished sleeping at: 9/10/2005 12:38:08 AM Result 1. Standard output was: Command Line: /stdout /sleep 3 /outfile output.1.txt Executed on: SHELL1 Starting execution at: 9/10/2005 12:38:09 AM Finished sleeping at: 9/10/2005 12:38:12 AM Result 2. Standard output was: Command Line: /stdout /sleep 3 /outfile output.2.txt Executed on: SHELL1 Starting execution at: 9/10/2005 12:38:12 AM Finished sleeping at: 9/10/2005 12:38:15 AM Job finished. Last edited by sean; 09-09-2005 at 09:41 PM. Reason: Dropping username and pwd |
|
#2
|
|||
|
|||
|
Thanks for posting that, Sean! I'm sure other Python users will find it useful. You had experimented with COM and Python as well, right? Did you find that PythonDotNet was definitely easier to use?
One great thing about .NET is that it is now accessible from so many languages. According to this site, there are almost 50 .NET languages, and nearly 100 dialects. So no matter how you like to develop, there's almost certainly a .NET language out there for you now. I hope that if any other members of the Digipede Community decide to develop in a new .NET language, they'd consider porting a sample, too. It's a good primer for developing with the Digipede Framework, and it's a good proof-of-concept for seeing your chosen technology interact with the Digipede Network. Thanks again, Sean! |
![]() |
| Thread Tools | |
| Display Modes | |
|
|