Jpp 20.0.0-72-g597b30bc9
the software that should make you happy
Loading...
Searching...
No Matches
qlib.sh
Go to the documentation of this file.
1#!/usr/bin/env zsh
2#
3#
4# \author mdejong
5#
6#--------------------------------------------------------------------------------------
7#
8# Utility script for batch queue functions.
9#
10#--------------------------------------------------------------------------------------
11
12
13#
14# Put command(s) in given queue; do not submit job.
15#
16# \param 1 queue name
17# \param 2-N command(s)
18#
19function put_queue()
20{
21 queue_name=$1
22 shift
23
24 echo -n "$*;" >> $queue_name
25}
26
27
28#
29# Put command(s) in given queue and submit job.
30#
31# \param 1 queue name
32# \param 2-N command(s)
33#
34function puts_queue()
35{
36 queue_name=$1
37 shift
38
39 echo "$*" >> $queue_name
40}