# Changing a jobs Output\_Path and Error\_Path values

**URL:** <https://community.openpbs.org/t/changing-a-jobs-output-path-and-error-path-values/3247>\
**Category:** Users/Site Administrators\
**Created:** [August 12, 2022, 8:28pm UTC](https://community.openpbs.org/t/changing-a-jobs-output-path-and-error-path-values/3247 "2022-08-12T20:28:38Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![steveheistand](https://avatars.discourse-cdn.com/v4/letter/s/6de8d8/32.png) [@steveheistand](https://community.openpbs.org/u/steveheistand)\
**Post date:** [August 12, 2022, 8:28pm UTC](https://community.openpbs.org/t/changing-a-jobs-output-path-and-error-path-values/3247/1 "2022-08-12T20:28:38Z")

</div>

for various reasons in a qsub hook the Job\_Name of a job needs to be changed.  
this as a side effect modifies the Output\_Path/Error\_Path values on the job.  
maybe its not really a “modification” but rather just a normal result now that the job name is different.

in the same qsub hook right after the Job\_Name change the job is held.

shortly there after the Job\_Name is put back to the original value from within a non-hook python  
script using the ptl package and connecting to the PBS server the job is sitting on.

The Job\_Name gets changed nicely.

The python script also sets the Output\_Path and Error\_Path values back to reflect the original job name.  
This change however does not seem to actually change anything on the job.

When it runs the eo files are using the “temp” job name.

any thoughts on why the Output/Error paths cant be externally changed?

thanks

steve

---

<div class="post-metadata">

**Author:** ![steveheistand](https://avatars.discourse-cdn.com/v4/letter/s/6de8d8/32.png) [@steveheistand](https://community.openpbs.org/u/steveheistand)\
**Post date:** [August 12, 2022, 9:34pm UTC](https://community.openpbs.org/t/changing-a-jobs-output-path-and-error-path-values/3247/2 "2022-08-12T21:34:41Z")

</div>

never mind, this was self inflicted.
