I use BC to sync and mirror a lot of things every day. It's automated with Splinter Scheduler and works very well.
I'm in the process of creating an integrated log for ALL of the mirror and sync jobs so I can see it in one place. I would like to tie this to success or failure of the BC script.
What I have done so far is write a line that works for me to file x.txt and then have BC write a short log to the same file. Works OK.
I would really like to be able to write my own line from the BC script. There are a couple of ways to do this:
Allow a "Run" command to execute outside code. For example:
Run my.exe /xx "my parms"
Another option might be to have a WriteLog command that would create a line in the log. For example,
WriteLog "My text goes here"
would create an entry in the log like this:
9/25/2011 14:09:54 My text goes here
Any possibility of either of these options?
tia... Bob
I'm in the process of creating an integrated log for ALL of the mirror and sync jobs so I can see it in one place. I would like to tie this to success or failure of the BC script.
What I have done so far is write a line that works for me to file x.txt and then have BC write a short log to the same file. Works OK.
I would really like to be able to write my own line from the BC script. There are a couple of ways to do this:
Allow a "Run" command to execute outside code. For example:
Run my.exe /xx "my parms"
Another option might be to have a WriteLog command that would create a line in the log. For example,
WriteLog "My text goes here"
would create an entry in the log like this:
9/25/2011 14:09:54 My text goes here
Any possibility of either of these options?
tia... Bob
Comment