Quote:
Originally Posted by pan64
you should show us that script (or at least the important part). By default the shell waits for the programs until they are completed...
|
The code is as follows
#!/bin/bash
./finger/fingerprint /dev/ttyUSB0 /status.txt /template.txt;
wait
clear
fingerstatus=`cat /root/status.txt`
if [ "$fingerstatus" = "AUTH" ]
then
echo "successfully authinticated"
else
halt
fi
this is a part of my script which executes the compiled C program "fingerprint" and the next two lines are arguments passed to the program. This program when called communicates with a fingerprint device and tells if the finger is authenticated or not. This script runs as expected when called from a terminal but if included in the second stage of the boot process in init.d with symbolic links in rc2.d this script calls the program but exits before the program does its job. This is where I am stuck.