From: Joseph Skinner <joe@earthlight.co.nz>
To: rc@hawkwind.utcs.toronto.edu
Subject: problems with an rc script called from cron
Date: Sun, 24 May 1998 10:35:25 -0400 [thread overview]
Message-ID: <19980525023525.59886@pandora> (raw)
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
========================================================================
next reply other threads:[~1998-05-25 21:47 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
1998-05-24 14:35 Joseph Skinner [this message]
1998-05-26 14:28 ` Paul Haahr
1998-05-26 6:25 bengt
1998-05-31 5:56 Noel Hunt
1998-06-05 15:59 Byron Rakitzis
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=19980525023525.59886@pandora \
--to=joe@earthlight.co.nz \
--cc=rc@hawkwind.utcs.toronto.edu \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).