Hi folks,
again I'm trying to write a nice little script and again I've been encountering some problems.
Here are the facts:
I have an array with 10 values called MOJB.
I have a little tool called "scsitest" that requires 10 input values when run.
I don't want the output of my script to appear on the screen.
Now the problem is with the following line:
print ${MOJB[*]} | scsitest | grep "Jukebox"
I get the whole output on the screen ...
If I change it like this:
print ${MOJB[*]} | scsitest | grep "Jukebox" > /dev/null
it only affects the grep output and I still get the scsitest output on the screen.
If I change it like this:
print ${MOJB[*]} | scsitest 2&> | grep "Jukebox"
it perfectly suppresses the output of scsitest, but the grep does not get anything to grep anymore ...
How can I solve this problem ?
Thanks in advance !
Regards
Thomas
again I'm trying to write a nice little script and again I've been encountering some problems.
Here are the facts:
I have an array with 10 values called MOJB.
I have a little tool called "scsitest" that requires 10 input values when run.
I don't want the output of my script to appear on the screen.
Now the problem is with the following line:
print ${MOJB[*]} | scsitest | grep "Jukebox"
I get the whole output on the screen ...
If I change it like this:
print ${MOJB[*]} | scsitest | grep "Jukebox" > /dev/null
it only affects the grep output and I still get the scsitest output on the screen.
If I change it like this:
print ${MOJB[*]} | scsitest 2&> | grep "Jukebox"
it perfectly suppresses the output of scsitest, but the grep does not get anything to grep anymore ...
How can I solve this problem ?
Thanks in advance !
Regards
Thomas