As I can understand, after you submit the job, PBS mom daemon create 2 files (output and error) and upload it into work dir after a job is finished.
So my question is: can I set up the PBS in that way when PBS mom daemon will create the file in the selected directory after job submitted and will update it on the spot?
PBS ver 14.1.2
I think you misunderstand me. Need to create the file in users directory (NOT IN MoM’s HOST DIR) immediately after job START and write all information to file meanwhile job is running.
We cannot specify a path in the qsub command line to write stderr/err files to their final destination.
You can use the below to write stderr/out
qsub -o :/path/to/stdout -e :/path/to/stderr (but this will be copied only after job is finished ). which was not your requirement
To directly write to a destination, you need to use the $usecp directive in the mom_priv/config file, which means you are not allowed to use qsub -k :/path/to/stdout
You can chose the path using -o and -e option while submitting a job. But the output and error path should have been mapped using $usecp in mom config file unless the path is part of the mom.