---
# System prepended metadata

title: SSH commands
tags: [Classical Computing]

---

###### tags: `Classical Computing`

# SSH commands

SSH(Secure Shell) is a system to remote control other PC.


## commands
There are commands to manage jobs.

### throw jobs
Execute shell scripts.
```
qsub run.sh
```

Execute shell scripts with some input scripts.
```
qsub -v INPUT=input.py run.sh
```

### see job status
```
qstat
```

Then you will get like
```
Job id            Name             User              Time Use S Queue
----------------  ---------------- ----------------  -------- - -----
47875.feynman     run.sh           kamoshita         06:47:38 R workq           
47876.feynman     run.sh           kamoshita                0 Q workq 
```

### delete jobs
```
qdel `Job id`
```

For example, 
```
qdel 47876.feynman
qstat
```
then, 
```
Job id            Name             User              Time Use S Queue
----------------  ---------------- ----------------  -------- - -----
47875.feynman     run.sh           kamoshita         09:11:51 R workq          
```
