From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pandora.earthlight.co.nz ([203.97.8.121]) by hawkwind.utcs.utoronto.ca with SMTP id <24884>; Mon, 25 May 1998 17:47:37 -0400 Received: from joe by pandora.earthlight.co.nz with local (Exim 1.92 #1) id 0ydbsI-0004ou-00 (Debian); Mon, 25 May 1998 02:35:26 +1200 Message-ID: <19980525023525.59886@pandora> Date: Sun, 24 May 1998 10:35:25 -0400 From: Joseph Skinner To: rc@hawkwind.utcs.toronto.edu Subject: problems with an rc script called from cron Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.81 Hi I am having problems with the following script ============================================================ #! /usr/bin/rc res=`{telnet phoenix.earthlight.co.nz 4647 >[2] /dev/null} echo `{date} ' ' $res(10) >> /home/joe/bin/modemcheck.log if ( ~ $res 1 2 3 ) {killppp 900 } ============================================================ This script works fine when called from the command line but when run from cron nothing is returned in the variable $res. Anyone have any suggestions as to what is going wrong here. Joe. ps. I am I still on this list as things seem to have been very quite recently. -- ======================================================================= in real life: Joseph Skinner |There's no such thing as a wizard email: joe@earthlight.co.nz |who minds his own business Analyst/Programmer ECL | - Berengis the Black http: www.earthlight.co.nz/users/joe| Court Mage to the Earls Caeline ========================================================================