Hello,
I want to create file in $PBS_O_WORKDIR few minutes before specified walltime exceeds.
anyone have idea about above query please let me know.
Thank you in advance.
Hello,
I want to create file in $PBS_O_WORKDIR few minutes before specified walltime exceeds.
anyone have idea about above query please let me know.
Thank you in advance.
server periodic hook or cronjob
implement some kind of timer within the script, when it is about to hit the 98% threshold of your requested walltime , then write a file.
@adarsh Thank you for possible solutions,
Specific jobs needs to be tagged for this , requesting
And can I fetch job_ib in submission script after qsub command, As right now I’m trying to echo $PBS_JOBID but it is showing my remote session jobid through which I’m submitting my job.
Hi
A hook is the best way but for a quick and dirty way you could implement it using bash within the submission script:
A hack but it would probably work with little effort.
Might be helpful: shell - How to create a cron job using Bash automatically without the interactive editor? - Stack Overflow
Mike