Sign in to follow this  
Followers 0
Kmeersch

Pipe errors form compiled script to logfile

7 posts in this topic

Is it possible to pipe errors form compiled script to a logfile.

Is /ErrorStdOut an option?

example.exe /ErrorStdOut > error.txt

thx for the response.

Share this post


Link to post
Share on other sites



Yes, it works.


[font="Tahoma"]"Tougher than the toughies and smarter than the smarties"[/font]

Share this post


Link to post
Share on other sites

?? error.txt is empty ...

Share this post


Link to post
Share on other sites

#4 ·  Posted (edited)

Just created a script that generates an error.

Then ran it from the cmd prompt with "OpenInScite33.exe /ErrorStdOut > error.txt" and the error.txt contained the error.

OpenInScite33.exe (-1) : ==> Variable used without being declared.:

Which errors are you trying to capture?

Edited by Jos

Visit the SciTE4AutoIt3 Download page for the latest versions  - Beta files                                How to post scriptsource        Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites

line -1

array have incoorect number of subscripts or subscript dimension range exceeded

code for the compiled script:

$a=$cmdline[5]

Share this post


Link to post
Share on other sites

is it possible to get the line number of the script where the error occurs?

line -1

array have incoorect number of subscripts or subscript dimension range exceeded

code for the compiled script:

$a=$cmdline[5]

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0