---
name: "oarhold"
section: "1"
platform: "linux"
package: "oar-user"
version: "2.6.1-1"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/oarhold"
---

# oarhold(1)

hold a job in OAR batch scheduler.

## NAME

oarhold - hold a job in OAR batch scheduler.

## SYNOPSIS

**oarhold** \[--array\]\[job\_ids\]\[--sql "sql syntax"\]\[-r\]\[-h\]\[-V\]

## DESCRIPTION

Ask OAR to not schedule jobs until oarresume command will be executed.

## OPTIONS

- **-r, --running**

  Manage not only Waiting jobs but also Running one (can suspend the job)

- **--array**

  Hold array job(s) passed as parameter (all the sub-jobs of the given array job(s))

- **--sql**

  Hold jobs which respond to the SQL where clause on the table jobs (ex: "project = 'p1'")

- **-V, --version**

  Print OAR version number.

- **-h, --help**

  Print help command message.

## SEE ALSO

[**oarsub**(1)](/oarsub/1.md), [**oardel**(1)](/oardel/1.md) [**oarstat**(1)](/oarstat/1.md), [**oarnodes**(1)](/oarnodes/1.md), [**oarresume**(1)](/oarresume/1.md)

## COPYRIGHTS

```
 Copyright 2003-2016 Laboratoire d'Informatique de Grenoble (http://www.liglab.fr). This software is licensed under the GNU General Public License Version 2 or above. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
```
