I am using slay to detect if a process is running using the -p option but I
would like the -Q to override the printout to stdout if it is specified. Too
much to ask! Script is called start.fdc
start.fdc
Starting Floppy Driver and mounting as /tmp/fd/
1015818 <—***** PID of process, I would like it not to be there.
cat start.fdc
#! /proc/boot/sh
A usefull function
function waitfor {
typeset -i i=0
while test $i -lt 60 -a ! $1 -ef $1 ; do
sleep 1;
let i=i+1;
done
unset i
}
echo “Starting Floppy Driver and mounting as /tmp/fd/”
slay -Q -p devb-fdc <—*****
if test $? -ne 0; then
slay devb-fdc
fi
sleep 2
devb-fdc cam quiet &
waitfor /dev/fd0
mount /dev/fd0 /tmp/fd
I am using slay to detect if a process is running using the -p option but I
would like the -Q to override the printout to stdout if it is specified. Too
much to ask! Script is called start.fdc
start.fdc
Starting Floppy Driver and mounting as /tmp/fd/
1015818 <—***** PID of process, I would like it not to be there.
cat start.fdc
#! /proc/boot/sh
A usefull function
function waitfor {
typeset -i i=0
while test $i -lt 60 -a ! $1 -ef $1 ; do
sleep 1;
let i=i+1;
done
unset i
}
echo “Starting Floppy Driver and mounting as /tmp/fd/”
slay -Q -p devb-fdc <—*****
if test $? -ne 0; then
slay devb-fdc
fi
sleep 2
devb-fdc cam quiet &
waitfor /dev/fd0
mount /dev/fd0 /tmp/fd
Dennis Morehart <> demorehart@earthlink.net> > wrote:
I am using slay to detect if a process is running using the -p option
but I
would like the -Q to override the printout to stdout if it is specified.
Too
much to ask! Script is called start.fdc
start.fdc
Starting Floppy Driver and mounting as /tmp/fd/
1015818 <—***** PID of process, I would like it not to be there.
cat start.fdc
#! /proc/boot/sh
A usefull function
function waitfor {
typeset -i i=0
while test $i -lt 60 -a ! $1 -ef $1 ; do
sleep 1;
let i=i+1;
done
unset i
}
echo “Starting Floppy Driver and mounting as /tmp/fd/”
slay -Q -p devb-fdc <—*****
if test $? -ne 0; then
slay devb-fdc
fi
sleep 2
devb-fdc cam quiet &
waitfor /dev/fd0
mount /dev/fd0 /tmp/fd