steve kelly wrote:its for opening the error log file out on the server. I am open to suggestions(like reading in a portion of it etc) as the log files may be so large it will take a while.
But it appears you don't have a monitor connected to the server, or if you do, it's not configured correctly.
Servers often don't have monitors connected because they are sat in racks in data centres.
It would probably be better if you just notified the user or administrator in some way that there is an error that needs investigating and then let them open the error log manually to get more details.