Digipede Community and Technical Support  

Go Back   Digipede Community and Technical Support > Products > Digipede Framework SDK

Reply
 
Thread Tools Display Modes
  #1  
Old 09-09-2005, 09:37 PM
sean sean is offline
User
 
Join Date: Apr 2005
Posts: 1
Default Job submission from Python.

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.
Attached Files
File Type: txt mcl2.py.txt (4.3 KB, 12 views)

Last edited by sean; 09-09-2005 at 09:41 PM. Reason: Dropping username and pwd
Reply With Quote
  #2  
Old 09-11-2005, 04:47 PM
Daniel Ciruli Daniel Ciruli is offline
Dan Ciruli
 
Join Date: Apr 2005
Posts: 110
Default That's great!

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!
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -7. The time now is 05:44 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Copyright 2007 Digipede Technologies, LLC. All Rights Reserved.