slay -Q -p process script trick request

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

How about

slay -p devc-fdc > /dev/null 2>&1

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


cburgess@qnx.com

how about…
test -x /tmp/fd


“Colin Burgess” <cburgess@qnx.com> wrote in message
news:9j7ds6$f5d$1@nntp.qnx.com

How about

slay -p devc-fdc > /dev/null 2>&1

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




\

cburgess@qnx.com