rc-list - mailing list for the rc(1) shell
 help / color / mirror / Atom feed
From: bengt <bengt@dynas.se>
To: joe@earthlight.co.nz
Cc: rc@hawkwind.utcs.toronto.edu
Subject: Re: problems with an rc script called from cron
Date: Tue, 26 May 1998 02:25:01 -0400	[thread overview]
Message-ID: <m0yeDAT-000JeeC@spirit.dynas.se> (raw)

 
> 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.

No suggestions yet, but could you answer the following.

What happens if you use "echo hello" insted of "telnet ..."?
What happens if you do the same thing using "sh"?

> ps. I am I still on this list as things seem to have been very quite
> recently.

Lists are full of 1) Bug reports or 2) Pleas for new features or 3) "How do I do 
this?"
My guess is that:
There is not many bugs left in rc.
The users of rc thinks there should not be more features (I do. I would actually 
like to get rid of else and reinstate ifnot).
The users of rc are competent enough to handle the things they want to do.



Best Wishes, Bengt
===============================================================
Everything aforementioned should be regarded as totally private
opinions, and nothing else. bengt@softwell.se
``His great strength is that he is uncompromising. It would make
him physically ill to think of programming in C++.''



             reply	other threads:[~1998-05-30 20:32 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1998-05-26  6:25 bengt [this message]
  -- strict thread matches above, loose matches on Subject: below --
1998-06-05 15:59 Byron Rakitzis
1998-05-31  5:56 Noel Hunt
1998-05-24 14:35 Joseph Skinner
1998-05-26 14:28 ` Paul Haahr

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=m0yeDAT-000JeeC@spirit.dynas.se \
    --to=bengt@dynas.se \
    --cc=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).