Source

Raspberry Pi GPIO Web Control / src / test / resources / extcmdtest2.sh

Full commit
#!/bin/bash

# set the parameter (just as an example)
PARAM=$1

echo test on stdout, param was $PARAM
echo test on stderr >&2

# sleep a little
sleep $PARAM

# return parameter+1
exit  $[ PARAM - 1 ]