# How to view job output without having to ssh to compute node?

**URL:** <https://community.openpbs.org/t/how-to-view-job-output-without-having-to-ssh-to-compute-node/2470>\
**Category:** Users/Site Administrators\
**Created:** [February 3, 2021, 6:20pm UTC](https://community.openpbs.org/t/how-to-view-job-output-without-having-to-ssh-to-compute-node/2470 "2021-02-03T18:20:10Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![feacluster](https://avatars.discourse-cdn.com/v4/letter/f/8edcca/32.png) [@feacluster](https://community.openpbs.org/u/feacluster)\
**Post date:** [February 3, 2021, 6:20pm UTC](https://community.openpbs.org/t/how-to-view-job-output-without-having-to-ssh-to-compute-node/2470/1 "2021-02-03T18:20:10Z")

</div>

I believe one has to ssh to the compute node and then “cd” into /var/spool/pbs or something to find your running job’s standard output. Is there a way to have standard output writting directly to the PBS\_O\_WORKDIR and have it update on the fly?

---

<div class="post-metadata">

**Author:** ![adarsh](https://avatars.discourse-cdn.com/v4/letter/a/f07891/32.png) [@adarsh](https://community.openpbs.org/u/adarsh)\
**Post date:** [February 3, 2021, 8:12pm UTC](https://community.openpbs.org/t/how-to-view-job-output-without-having-to-ssh-to-compute-node/2470/2 "2021-02-03T20:12:48Z")

</div>

Please check the below from the PBS Professional Administrator guide [https://www.altair.com/pdfs/pbsworks/PBSAdminGuide2020.1.pdf](https://www.altair.com/pdfs/pbsworks/PBSAdminGuide2020.1.pdf)

1. $usecp
2. qsub -k oed

Note: if you have your /home common across PBS Server host and compute node(s). Then you can have this $usecp parameter populated in the $PBS\_HOME/mom\_priv/config as below  
$usecp \*:/home/ /home/  
( restart the pbs\_mom services on the compute node (s) )

Say userA, with home directory /home/userA submits a job (qsub -k oed pbsscript.sh) from this directory, then the standard out and standard error will be make available in the /home/userA when the job is in running state. If there an issues, then you will find it in the $PBS\_HOME/mom\_logs on the compute node , of why the stdout and stderr is not copied while the job is running.

Hope this helps

---

<div class="post-metadata">

**Author:** ![agurban](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.openpbs.org/agurban/32/67_2.png) [@agurban](https://community.openpbs.org/u/agurban)\
**Post date:** [February 3, 2021, 10:54pm UTC](https://community.openpbs.org/t/how-to-view-job-output-without-having-to-ssh-to-compute-node/2470/3 "2021-02-03T22:54:11Z")

</div>

Consider looking at Chapter 3, “Job Input & Output Files”, in the PBS Professional User’s Guide: [https://www.altair.com/pdfs/pbsworks/PBSUserGuide2020.1.pdf](https://www.altair.com/pdfs/pbsworks/PBSUserGuide2020.1.pdf)
