How to make bash script or file.sh to capture parameter? I try using $1 in script but it doesnt capture parameter
file.sh
#! /bin/bash
echo $1 >> text.txt
run file from FittaQuilla
/home/file.sh,@SUBJECT@
Try to test it, and I see from
- the filter log that the filter run
- no error from error console
but the text.txt is still empty, the permission is 777, try to run it from shell with
./file.sh helllo
and the test.txt have "hello" word in it.
Please help and thank you.
Recent Comments