Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

rsh and cron

33 views
Skip to first unread message

ma...@matt.com

unread,
Apr 1, 1999, 3:00:00 AM4/1/99
to
Hello

I've been racking my brain to get this working and can't.

/bin/rsh cisco-router show version

From the command line, this works. The rsh executes the command and I
get the return value.

From cron, this does not work. I get one line of output, sometimes
none, and that's it.

I've tried running the command from a shell script and perl (with
STDOUT autoflushed), sleeping after the command, doing a wait ... no
luck.

Any ideas?

Thanks

--matt hempel

Rev. Don Kool

unread,
Apr 4, 1999, 4:00:00 AM4/4/99
to

I'm not sure about interogating routers with "rsh" but I will
mention that "cron" runs with a much reduced set of shell parameters
than the command line. You would be best served to have "cron" call
a shell script (or program) that specifically set the environment
you need.

Hope this helps,
Don


--
********************** You a bounty hunter?
* Rev. Don McDonald * Man's gotta earn a living.
* Baltimore, MD * Dying ain't much of a living, boy.
********************** "Outlaw Josey Wales"
http://members.home.net/oldno7

Dan Richardson

unread,
Apr 10, 1999, 3:00:00 AM4/10/99
to
I would put in full path for "cisco-router".

<ma...@matt.com> wrote in message
news:3703f855....@news.infonent.com...


> Hello
>
> I've been racking my brain to get this working and can't.
>
> /bin/rsh cisco-router show version
>
> From the command line, this works. The rsh executes the command and I
> get the return value.
>
> From cron, this does not work. I get one line of output, sometimes
> none, and that's it.
>
> I've tried running the command from a shell script and perl (with
> STDOUT autoflushed), sleeping after the command, doing a wait ... no
> luck.
>

gradobo...@gmail.com

unread,
Jul 26, 2017, 8:23:15 AM7/26/17
to
in cron use -n option
examle: rsh -n -l [USER] [HOST] [command] > [file]
0 new messages