Hi,
I am trying to write a bash script for rc(8) but I got an error such as:
My example code part:
Errors:
I am trying to write a bash script for rc(8) but I got an error such as:
My example code part:
Code:
#!/bin/sh
. /etc/rc.subr
diskCheck=`/sbin/mount | /usr/bin/grep zfs`
echo "Result : "${diskCheck}
echo "Result2: "$(which grep)
echo "Result3: "$(/usr/bin/which grep)
Errors:
Code:
eval: /usr/bin/grep: not found
Result :
which: not found
Result2:
eval: /usr/bin/which: not found
Result3: