From owner-freebsd-questions Wed Mar 27 12: 0:47 2002 Delivered-To: freebsd-questions@freebsd.org Received: from antares.surnet.ru (antares.surnet.ru [195.54.2.5]) by hub.freebsd.org (Postfix) with ESMTP id 645EB37B41E for ; Wed, 27 Mar 2002 12:00:22 -0800 (PST) Received: (from uucp@localhost) by antares.surnet.ru (8.11.6/Joy) with UUCP id g2RK0Jv69584 for questions@FreeBSD.ORG; Thu, 28 Mar 2002 01:00:19 +0500 (YEKT) Received: from localhost (localhost [127.0.0.1]) by sol.chel.skbkontur.ru (8.11.6/8.11.6) with ESMTP id g2RJADT83944 (using TLSv1/SSLv3 with cipher EDH-RSA-DES-CBC3-SHA (168 bits) verified NO) for ; Thu, 28 Mar 2002 00:10:16 +0500 (YEKT) (envelope-from ilia@chel.skbkontur.ru) Date: Thu, 28 Mar 2002 00:10:13 +0500 (YEKT) From: =?koi8-r?B?6czY0SD7ydDJw8nO?= To: questions@FreeBSD.ORG Subject: perl thing (again) Message-ID: <20020328000648.J83795-100000@sol.chel.skbkontur.ru> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=koi8-r Content-Transfer-Encoding: QUOTED-PRINTABLE Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Well, I was told by the list to use $ENV{'OSTYPE'} to ensure whether program runs under FreeBSD or not. It works well from regular user shell, but from crontab it says "Use of uninitialized value". what is "good" way to ensure that program runs under FreeBSD ? I mean, I need something which will work either from regulat shell or from crontab or from whatever else ... Regards, (=EE=C1=C9=CC=D5=DE=DB=C9=C5 =D0=CF=D6=C5=CC=C1=CE=C9=D1) Ilia Chipitsine (=E9=CC=D8=D1 =FB=C9=D0=C9=C3=C9=CE) To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message