Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!


New on LowEndTalk? Please Register and read our Community Rules.

All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.

Help with a script

martip07martip07 Member
edited May 2015 in Help

Hi:

I have to run a comand, for example:

python2.7 /dir/modulo.py

modulo.py has an error (it doesnt matter what kind of error)

The output is:

Starting script...

File " /dir/modulo.py", line 77, in
main(config)
File " /dir/modulo.py", line 62, in main
rows = motorMySQL.getPortalDax(config)
NameError: global name 'motorMySQL' is not defined

I want to save the error in a file, problem is I don't know how to do it.

I tried with:

  python2.7 /dir/modulo.py > error.log

But it just save: "Starting script..." and not the error.

Thanks guys.

Comments

Sign In or Register to comment.