|
|
Question : Admin Script with a bit of Altiris
|
|
I have a scripting question
I have mulitple machines that i want to output data into a log file essentially they are running a job that erases the hard disk the job run from dos and is launched through an altiris server i want it to pass its results into a file. Im currently using the "echo %SERIAL_NUM% Has Completed > Erase.log" (the %SERIAL_NUM% are tokens built into altiris for this purpose) this works for one machine, my problem is however that i want multiple machines to write to the same file, and at the moment they just overwrite each others results. is there a way to make echo put each machines entry on a new line or is this an altogether more complicated problem...im not a programer help!
|
Answer : Admin Script with a bit of Altiris
|
|
Try >> instead of >
>> means append
Another idea is have each machine update its own file and the collidate at the end.
|
|
|
|