Home

Contact Us

Documentation

 

The Team

 

News

 

Bugs And Fixes

 

Feature Requests

 

Help Options

 

Donations

 

 

 

 

 

 

 

 

JCS - jcsh

 

 

Notes:

 

Include base preprocessor into jcsh.

[expr] defines expression to be evaluated. Can be changed through environment variables EXPRBEGIN, EXPREND and EXPRESCAPE.

Maybe add custom modules for expression evaluators (similar to Apache modules).

.jcrc file for startup options.

 

Commands

 

:autocont {on|off}

 

Sets implied continue for every command in the job

 

:alias cmd,cmdname [$nnn|text[...]]

 

:cierror {nnn|ERROR|WARN|FAIL|OK}

 

Sets a job’s execution state.

 

:continue

 

Continue job even if following job command fails.

 

:eoj [-nowait] [nnn|ERROR|WARN|FAIL|OK|cmd]

 

Specifies End of Jobstream. –nowait kills any executing background jobs.

 

:goto label

 

does an unconditional transfer to a label.

 

:jobcard jobname[,user[,group]] [job_modifier[ …]

 

Defines the job card for a job. If provided, must be the first line in a job file.

 

:label labelname

 

Provides a label location from which a job can be restarted or to which control can be transferred.

 

:try

.

.

.

[:recover [condition]]

.

.

.

:endtry

 

Sets up a try/recover block. First, the try block is executed. At the end of the try block (or

when it errors out), if the cierror >= ERROR, the first true recover block is executed.

 

:when condition

do

.

.

.

done


 

Base Preprocessor Expressions

 

chr nnn – Returns ASCII equivalent character.

 

date [+|-]nnn[.interval[.calendar][{+|-}...][;format] – date calculation displayed in a given format. Default format controlled by environment variable NLSDATEFMT.

 

do cmd – executes cmd while preprocessing input

 

for parmname%scope in list

do

.

.

.

done                - for loop inclusion

 

if cmd

.

.

.

else

.

.

.

fi                      - sets up conditional include blocks

 

include filename[,recurse] – includes contents of filename into stream.

 

my {user|usernum|group|groupnum|dir|shell|pty|source} – returns info about the user who launched the job.

 

parmname[%scope] – returns value of a JCS variable.

 

while cmd

do

.

.

.

done    - sets up include loops