Showing posts with label python perl. Show all posts
Showing posts with label python perl. Show all posts

Monday, April 9, 2012

perl with python

I am not sure how many times i have come across to a point where I had to use a perl script with python. And I realized that this could be a case for few of you guys too. thought why not put a post for this. here is a simple example of how to do it.


import os
os.system("perl ~perlfile~")

you could use sys.exit() to see if the execution was a success. This is the way i am using it. could solve problems at least for a few of you guys.

Friday, October 28, 2011

Trace32 API Config

like i posted in my previous blog , we need to have the application up and running . i will detail out the ways of configuring now . once you install the trace on your machine you will notice a c:/t32 folder listed ( if you choose to install it else where , find the t32 folder on your machine) . when you launch the trace32marm.exe it generally picks up the configuration from config file (categorized as t32 file ) . open the file ( any ide is fine or even a notepad ) and enter the below value .

RCL=NETASSIST
PACKLEN=1024
PORT=xxxx

you can choose to provide any port number available on your computer . this runs a udp port on your computer , you can check the list of open ports to see if it did pick the correct configuration.

this will be the port number that you will have to use to open a port from scripting language. this will open up the trace32 for subsequent actions