Reading a file with a lock on it

(imported topic written by SystemAdmin)

I’ve read several other posts that said why it can’t be done

Is there any way around, to pull a log file with a lock on it in an analysis

can ascripting be used in an analysis to copy the file ?

I can open it with notepad and read it but bigfix cant open the file

Error

E: The expression could not be evaluated: class FileIOError

(imported comment written by BenKus)

Hi mamacher,

I think notepad and other txt utilities makes an in memory copy of documents when you open them so they can open files with write locks, but the agent doesn’t do that because it doesn’t want the memory penalty and so it can’t open a file with a write lock…

I think you would have to make a copy of the file with an action and then read the copy in the property…

Ben

(imported comment written by SystemAdmin)

That’s kind of what I was thinking, I just wanted to see if there was any other way. we are going to have to run a task

daily to copy the files

Thanks