Home/Support/Support Forum/Transport WR21 Auto Run on Power Up
Welcome to Digi Forum, where you can ask questions and receive answers from other members of the community.

Transport WR21 Auto Run on Power Up

0 votes
I can manually start a program made from the Digi ESP by running "python dpdsrv.py" in an SSH terminal. Everythin runs just fine.

But when I run 'cmd 0 autocmd "python dpdrsrv.py" ', followed by "config 0 save", the program never auto starts on power up.

Have also tried this via the web config console under Configuration->System->General->Command.

This seems to be an issue with multiple firmware versions I have tried 5212, 5223.

Nothing seems to work. Any suggestion?
asked May 27, 2014 in Digi TransPort Cellular by radix07 New to the Community (26 points)

Please log in or register to answer this question.

2 Answers

0 votes
Seems that the program would autoexec as expected, but the program would crash. I put a delay at the beginning of the program and all seems to work as expected.

This sounds like there are dependencies in my program (such as rci,sms,sarcli) that are not loaded on the device before the program starts. Is there a better way to handle this?

Would also be helpful to be able to catch everything coming out of the python command line once execution starts...
answered May 27, 2014 by radix07 New to the Community (26 points)
Not sure this helps

if you
 
import sys
sys.stdout = open ("<FILE>","w")

this sends all print statments out to a file
0 votes
contact Digi Technical Support team for the python related questions.
answered Jun 19, 2014 by sans0909 Veteran of the Digi Community (280 points)
Well Digi Tech Support says to setup a support agreement or ask here...
...