From: Jeff J. <je...@bo...> - 2001-10-19 13:28:52
|
I was in tcsh, I tried from bash and it works great, thanks! > -----Original Message----- > From: web...@li... > [mailto:web...@li...]On Behalf Of Chuck > Esterbrook > Sent: Thursday, October 18, 2001 5:45 PM > To: Jeff Johnson; Web...@li... > Subject: Re: [Webware-devel] output redirect syntax? >=20 >=20 > At 05:21 PM 10/18/2001 -0400, Jeff Johnson wrote: > >I tried to redirect stdout and stderr to /dev/null but I get the > >following error. (FreeBSD 4.3) What am I doing wrong? > > > >dev5# ./AppServer start > /dev/null 2>&1 > >Ambiguous output redirect. >=20 >=20 > Different shells have slightly different syntaxes for this.=20 > So my first=20 > guess is that your shell is different from the one where 2>&1=20 > usually works. >=20 > Try > echo $SHELL to find out. Try switching from [ba]sh to=20 > [t]csh or the=20 > other way around. As in /bin/bash or /bin/csh. >=20 > Also, I don't think 2&>1 is right, but if the above doesn't=20 > work, you could=20 > try it. >=20 >=20 > -Chuck >=20 >=20 > _______________________________________________ > Webware-devel mailing list > Web...@li... > https://lists.sourceforge.net/lists/listinfo/webware-devel >=20 |