There are some win apps that leaves their log in a share folder (Logs are updated every 2 minutes more less).

I need to do a script that monitors those files, these script must be in a linux server and right now I am using php.

I would like to do something as simple like this:

tail +500 $logFile | grep -i \"Message\"

Where logFile would be someting like: \\winserver\ShareFolder$\logfile.log

But I am having problems accessing the file. (reaching the file)

Any Help?