Select to view content in your preferred language

Customize Logging for script which launch ISCommand

1203
2
07-20-2010 05:03 AM
FlavioPopolizio
Emerging Contributor
Hi there...
I have a set of script which do something for create a variables and after launch a .bat...
The file "bat" has inside a few ISCommand (createservices, add tiff, overview, compile etc....)
I know that Image Server, for each ISCommand that i run, create a log file in C:\Documents and Settings\All Users\Application Data\ESRI\Image Server\Logs\ISCommand\~Date Name~\

How can I insert the item of the ISCommand logging inside another file log that already exist?

Thanks....

F.
0 Kudos
2 Replies
GünterDörffel
Frequent Contributor
Hi Flavio,

just add a redirection to the end of your batch commands, like (example with lots of variables) ...
ISCommand MyAddTIFFs.ISCmd                                    ^
--ISDef=%ISDEF_Path%\%ISDEF_Name%.ISDEF\ImageService.ISDef --Folder=%ISDEF_Folder% >>%ISDEF_Path%\%ISDEF_LOGFILE%.txt


Hope this helps
Regards
Guenter
0 Kudos
FlavioPopolizio
Emerging Contributor
Perfect!!!!!

Really Thank You very much!


Flavio
0 Kudos