#138362 - 2005-04-21 03:21 PM
Re: retrieve executed script line number
|
Richard H.
Administrator
   
Registered: 2000-01-24
Posts: 4946
Loc: Leatherhead, Surrey, UK
|
Quote:
Actually, he said "like when a script has an error in it and kixtart would echo the last read line with the error in it".
Exactly, and he wants this facility because "I would love to add this info in some logging tools...."
If you are still in control you could be more explicit and log "I'm in section foo of script bar" or whatever, but if you are generating output to a log file it's simpler and more readable to use a common prefix to the log entry such as a timestamp, script name and line number.
I haven't tried tokenised scripts yet, so I can't comment on whether line counts are preserved.
|
|
Top
|
|
|
|
Moderator: Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart
|
0 registered
and 987 anonymous users online.
|
|
|