![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !! |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Get real value from real-time systems | iBot | Complex Event Processing RSS News | 0 | 01-13-2008 10:10 PM |
| capturing the time stamp to get hours | pavan_test | UNIX for Dummies Questions & Answers | 0 | 07-24-2006 11:31 AM |
| capturing the time stamp | pavan_test | UNIX for Dummies Questions & Answers | 4 | 07-18-2006 10:35 AM |
| EPOCH to real time? | TheEngineer | UNIX for Advanced & Expert Users | 5 | 07-18-2006 05:30 AM |
| log users real time | chanfle | UNIX for Dummies Questions & Answers | 3 | 03-22-2006 01:31 PM |
|
|
Submit Tools | LinkBack | Thread Tools | Display Modes |
|
|||
|
Newbie question:
I wrote korn shell script that lets me connect to a cisco switch thru telnet from sun server. I'm wodering if or what command i would use to capture info that is being sent to standard output when the script is running. Putting part of my script below and results. #!/bin/ksh hostn='x.x.x.x xxx' (echo open $hostname sleep 1 echo "\r" sleep 1 echo "\r" sleep 2 echo "dir disk0:\r" sleep 1 echo "\r" sleep 2 ) | telnet exit Results: rommon > rommon > rommon > dir disk0: file A file B rommon > Connection closed by foreign host. What i'm trying to do is capture the files A or B and echo that back into the script. Or if i start booting it up i want to capture an error message in real time. Any ideas would be greatly appreciated. Thanks |
| Forum Sponsor | ||
|
|