# Monitoring if job is running

**URL:** <http://hpc-community.unige.ch/t/monitoring-if-job-is-running/2790>\
**Category:** HPC Technical\
**Created:** [March 24, 2023, 11:16am UTC](http://hpc-community.unige.ch/t/monitoring-if-job-is-running/2790 "2023-03-24T11:16:53Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Raphael.Guex](http://hpc-community.unige.ch/letter_avatar_proxy/v4/letter/r/a183cd/32.png) [@Raphael.Guex](http://hpc-community.unige.ch/u/Raphael.Guex)\
**Post date:** [March 24, 2023, 11:16am UTC](http://hpc-community.unige.ch/t/monitoring-if-job-is-running/2790/1 "2023-03-24T11:16:53Z")

</div>

-I tried to monitor my job: but I could not find the job ID in the slurm output: how could I change my .sh so this info is saved somewhere along with the name of the matlab file running please ? Many thanks

-I would also like to know which jobs are still running, I looked into the webpage and i found some code to monitor my personal queue /pending statue, but not about the running jobs. I tried something like: squeue -u $user -t RUNNING: but unsuccessfully. any idea please ? Many thanks again for your help!

---

<div class="post-metadata">

**Author:** ![Yann.Sagon](http://hpc-community.unige.ch/user_avatar/hpc-community.unige.ch/yann.sagon/32/3_2.png) [@Yann.Sagon](http://hpc-community.unige.ch/u/Yann.Sagon)\
**Post date:** [March 27, 2023, 8:45am UTC](http://hpc-community.unige.ch/t/monitoring-if-job-is-running/2790/2 "2023-03-27T08:45:35Z")

</div>

Dear @Raphael.Guex

> [@Raphael.Guex](#):
>
> -I tried to monitor my job: but I could not find the job ID in the slurm output: how could I change my .sh so this info is saved somewhere along with the name of the matlab file running please ? Many thanks

Please show your `sbatch` script.

> [@Raphael.Guex](#):
>
> I tried something like: squeue -u $user -t RUNNING: but unsuccessfully. any idea please ?

Did you typed: `squeue -u guexr -t RUNNING` it should work.

Best
