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