Shell

From CUDOS
Revision as of 13:12, 21 April 2010 by Boris (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

shell is a keyword allowing the user to execute a shell command from within a fibre parameter file.

Usage

shell=command line

runs command line within the current shell environment. Note that multiple succesive spaces are condensed to one single space.

Example

When using fibre in a unix shell environment.

shell=tar -cf bcfmodes.tar *.bcf
shell=gzip -f bcfmodes.tar
shell=rm *.bcf

will compact all bcf files into one single bcfmode.tar.gz file and delete all bcf files. Note the use of the -f option of gzip to force overwrites.