Click to See Complete Forum and Search --> : Pipe Separator?


cartersk
06-14-2001, 10:10 PM
Hey,

I am having a problem running a script with the following line in it.

echo "${BBALPHAMSG}" | "/usr/bin/snpp -f $HOST"
(all on one line}

I get an error message saying that the file or directory "usr/bin/snpp" does not exist or is invalid.

but when I take out the | and move the /usr/bin/snpp -f $HOST to the second line it works fine... why would the | be causing such a problem? Or am I just using the pipe separator incorrectly?

"Mandrake 7.1 running Big Brother"

Thanks... :confused:

Craig McPherson
06-14-2001, 11:17 PM
Originally posted by cartersk:
<STRONG>echo "${BBALPHAMSG}" | "/usr/bin/snpp -f $HOST" </STRONG>

echo "${BBALPHAMSG}" | /usr/bin/snpp -f $HOST