*BSD News Article 86594


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!news.mira.net.au!news.vbc.net!vbcnet-west!knews.uk0.vbc.net!idiscover.co.uk!cnt1.come.net.uk!news
From: "Ricky Chan" <ricky@come.net.uk>
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: HELP!!! the system keeps reseting....
Date: Thu, 16 Jan 1997 10:40:29 +0100
Organization: ComeNet Technology Ltd
Lines: 20
Message-ID: <ricky-1601971040290001@194.207.66.18>
NNTP-Posting-Host: 194.207.66.18
X-Newsreader: Microsoft Internet Mail and News for Macintosh - 1.1 (34)
Xref: euryale.cc.adfa.oz.au comp.unix.bsd.freebsd.misc:33892

When a user runs a script (on freebsd 2.1.6), the machine resets.  Any one
can help tell me why???

The scripts that cause problems are: ones that take large file as input, or
can't open a file

3 lines like this (in perl) will cause the machine to open:

open(FILE,"Doesn't exist) # didn't use || die
$line=<FILE>;
close(FILE);

I know I can use || die but I think the system should just exit the program
in a error state NOT reset the machine....

Thanks..
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Ricky Chan:
Email: ricky@come.net.uk
Web: http://www.come.net.uk/~ricky