Jpp  18.5.2
the software that should make you happy
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Functions | Variables
mkqueue.sh File Reference

Go to the source code of this file.

Functions

esac if (is_CCLyon)
 
then fatal This batch queue
processor is intended for use
on a desktop fi 
if (($QUEUE_SIZE< 1))
 
then notice $script is running with PID (s) $PID" else OPTION
 

Variables

 script
 
then echo Variable JPP_DIR
undefined exit fi source
$JPP_DIR setenv sh $JPP_DIR
&dev null source qlib sh 
set_variable
 
then print u2 $script[queue
name[queue size]]< option >
print u2 Possible 
options
 
then print u2 $script[queue
name[queue size]]< option >
print u2 Possible 
stop
 
then print u2 $script[queue
name[queue size]]< option >
print u2 Possible 
continue
 
then print u2 $script[queue
name[queue size]]< option >
print u2 Possible restart
exit fi case set_variable
QUEUE_SIZE 
$argv [2]
 
then fatal Invalid queue size
$QUEUE_SIZE fi 
if [[$OPTION!="start"&&$OPTION!="stop"&&$OPTION!="continue"&&$OPTION!="restart"]]
 
then PID
 
then notice Stop $COMMAND kill
$PID fi rm f $QUEUE_NAME 
OPTION
 

Function Documentation

esac if ( is_CCLyon  )
then fatal This batch queue processor is intended for use on a desktop fi if ( ($QUEUE_SIZE< 1)  )
then notice $script is running with PID ( )

Variable Documentation

script
Initial value:
=${0##*/}
if [ -z $JPP_DIR ]

Definition at line 5 of file mkqueue.sh.

then echo Variable JPP_DIR undefined exit fi source $JPP_DIR setenv sh $JPP_DIR& dev null source qlib sh set_variable

Definition at line 40 of file mkqueue.sh.

* fatal Wrong number of options

Definition at line 42 of file mkqueue.sh.

then print u2 $script [queue name [queue size]]<option> print u2 Possible stop

Definition at line 42 of file mkqueue.sh.

then print u2 $script [queue name [queue size]]<option> print u2 Possible continue

Definition at line 42 of file mkqueue.sh.

& set_variable OPTION $argv[-1]

Definition at line 42 of file mkqueue.sh.

then fatal Invalid option $OPTION fi if[[$OPTION=="stop"||$OPTION=="restart"]]

Definition at line 61 of file mkqueue.sh.

then PID
Initial value:
=(`get_pid $COMMAND`)
PID[$PID[(i)$$]]=
if [[ -n $PID ]]
const int n
Definition: JPolint.hh:786
then PID
Definition: mkqueue.sh:67

Definition at line 67 of file mkqueue.sh.

then notice Stop $COMMAND kill $PID fi rm f $QUEUE_NAME OPTION
Initial value:
=${OPTION/restart/start}
elif [[ $OPTION == "continue" ]]
then usage $script< detector >< run >< outputfile > fi case set_variable OPTION
Definition: JTuna.sh:26
*fatal Wrong option $OPTION
elif(($#==3))

Definition at line 78 of file mkqueue.sh.