#!/bin/bash # Long attribute value trap "/usr/bin/killall -q -u $USER ./ParseGPX 2>/dev/null" 0 1 2 3 9 15 trap "/bin/rm -f $STDERR" 0 1 2 3 9 15 if [ ! -x ./ParseGPX ]; then echo './ParseGPX is missing or not executable' echo './ParseGPX is missing or not executable' 1>&2 exit 1 fi trap "/usr/bin/killall -q -u $USER long_token.sh 2>/dev/null" 0 1 2 3 9 15 trap "/bin/rm -f pipe" 0 1 2 3 9 15 # create and fill pipe mkfifo pipe # output of the next command (w/o > pipe &) is the input to your program $WHERE/long_token.sh value 1000 > pipe & $BIN/run -stderr=/dev/null ./ParseGPX < pipe # remove pipe rm -rf pipe