I'm writing a front-end script to enable users to simply submit and query jobs to a gridengine cluster. Specifically, we want to be able to display via this script info about all of the queues including the name of the logfile for the currently running job in that queue.
I see how to tell SGE/OGE to write to a specific logfile, but our logfiles typically have the name of the host that ran the job in their paths (this gridengine system is being fitted into an already existing system). So we can't construct the logfile name at submittal time, but rather at the time of the job's start on the execution node.
What we'd like to do is take that logfile path and somehow associate it with the job such that SGE knows about it and could display it back to us via qstat or qacct. Is there any way to stuff the logfile name into some structure that qstat has access to?
I was initially thinking of adding an env var to the job via qalter, but if I'm understanding the docs correctly I'd need to kill and resubmit the job in that case as qalter only works on pending jobs.