"Fossies" - the Fresh Open Source Software Archive

Member "multirun-1.0.1/example.sh" (25 May 1999, 994 Bytes) of package /linux/misc/old/multirun-1.0.1.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) Bash source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file.

    1 #!/bin/sh
    2 #
    3 # Example use of the `multirun' shell script.
    4 #
    5 # 25 May 1999 - Andrew Wood <andrew.wood@poboxes.com>
    6 
    7 version=`./multirun --version | sed -n '1s/^.* version //p'`
    8 distfiles="BLURB COPYING README LSM example.sh multirun"
    9 
   10 name=multirun-$version
   11 
   12 bash ./multirun \
   13            --title="Test messages 1 (2 seconds)" \
   14            "(echo Test message 1; sleep 1; echo Test message 2)" \
   15 \
   16            --title="Test messages 2 (3 seconds)" \
   17            "(echo Test 2A; sleep 1; echo Test 2B; sleep 1; echo Test 2C)" \
   18 \
   19            --title="Build distribution archive" \
   20            --title-foreground=blue \
   21            --title-background=cyan \
   22            --title-attribute=reversed \
   23            --foreground=cyan \
   24            "(mkdir $name && chmod 755 $name && cp -a $distfiles $name && \
   25              tar cvvf - $name | gzip -9 > $name.tar.gz && rm -rf $name && \
   26              echo && echo -n 'Completed: ' && ls -o $name.tar.gz && \
   27              du $name.tar.gz \
   28             )"
   29 
   30 # EOF