Date: Wed, 15 Jul 1998 21:20:21 -0400 (EDT) From: Peter Philipp <philipp@globalserve.net> To: AAZ <187@leopard.com> Cc: Scott Sewall <scott@iprg.nokia.com>, freebsd-stable@FreeBSD.ORG Subject: Re: help! Message-ID: <Pine.NEB.4.00.9807152115100.5030-100000@geeklab.globalserve.net> In-Reply-To: <199807160038.SAA26783@smtp.leopard.com>
next in thread | previous in thread | raw e-mail | index | archive | help
it's a short form for test, that's why it's linked to test, when in a shell script you do the following if [ -f /var/run/program.pid ]; then echo "program already running, exit.."; exit 1 fi this is in it's long form written if test -f /var/run/program.pid; then echo "program .." .. fi Hope that helps, Peter Philipp (PP2441) Globalserve System Administration "How I wish you were here..." - Pink Floyd On Wed, 15 Jul 1998, AAZ wrote: > Hi all, > Thanks, I'm a newbie to this and yes that was the problem. I went to the > 2nd cdrom, and found the [ binary. Brought the network up manually and > moved it over. > Rebooted and everything is A-OK. Now, can anyone explain to me what the > function of the [ binary is? > > thanks a ton everyone. > -aaz > > At 05:11 PM 7/15/98 -0700, Scott Sewall wrote: > >As noted by tom@uniserve.com, a program named [ should be > >in /bin. This program is a link to /bin/test. No need to > >restore from backups. > > > >>From my system: > > % ls -li /bin/[ /bin/test > > 239 -r-xr-xr-x 2 bin bin 45056 Mar 24 17:51 /bin/[* > > 239 -r-xr-xr-x 2 bin bin 45056 Mar 24 17:51 /bin/test* > > > >If you have /bin/test then all you need to do is create > >the link for [. > > > >-- Scott > > > > > > > >AAZ wrote: > >> > >> Hi all, > >> I have been running freeBSD for about a 2 weeks now with no problem. Today > >> I was just configuring some printer stuff and everything was working fine. > >> Anyways, I rebooted the box and when it came back up it the console pompt > >> said "freeBSD (Amnesiac)". > >> > >> During bootup the system got done fscking the main disk, turned on the swap > >> partition (swapon) then began and spitting things out on the console in the > >> form: > >> [: not found > >> [: not found > >> Starting network daemons: [: not found > >> [: not found > >> > >> bizarre. Need help please! > >> thanks a ton. > >> > >> To Unsubscribe: send mail to majordomo@FreeBSD.org > >> with "unsubscribe freebsd-stable" in the body of the message > > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-stable" in the body of the message > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.NEB.4.00.9807152115100.5030-100000>