Really need help on this one



Hi all,
I am posting this again as i really need help for this. Just
point me in the right direction and i'll run with it.
Is there a way to read the output of a particular command into
a variable. I am thinking something in the lines of

#! /bin/sh
# -*- tcl -*- \
exec tclsh "$0" ${1+"$@"}

# This is required to declare that we will use Expect
package require Expect

spawn telnet host_ip
send "password\r"

send "date\r"

Here the kernel will output the date on the screen. Is there
a way to read this output into a string variable.

Thanks,
ram
.



Relevant Pages

  • Re: Really need help on this one
    ... ram wrote: ... I am posting this again as i really need help for this. ... Here the kernel will output the date on the screen. ... are multiple problems with what you write. ...
    (comp.lang.tcl)
  • SUMMARY: Boot 64-bit kernel on HP DL380?
    ... Solaris relies on EMT64 capability, so, it's impossible to boot a 64-Bit ... posting below). ... Or the latest kernel patches/updates? ...
    (SunManagers)
  • Re: Question about Gimp Shop
    ... This is top posting, as it is on top of previous quotes. ... just how do you make a marquee in GimpShop? ... It gives me a warning saying it will exceed the max amount of ram it is ... But the vector Idea is great, well created vector drawings can scale to ...
    (alt.games.mame)
  • Re: FC3 core over RH9, now no BIND :(
    ... >>Reports and experience here suggest FC is not the best choice for such ... > posting are posting because they had an issue, ... If the advice to update the kernel is correct, ... I pretty sure way of hanging my laptop is to shut the lid, ...
    (Fedora)
  • Re: THE HOTTEST DEAL OF THEM ALL
    ... Dan wrote: ... According to the headers you two are posting from the same computer. ... With 16k RAM and 26k ROM and ...
    (rec.music.artists.springsteen)