![]() |
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Telnet and ssh in a script | marwan | UNIX for Dummies Questions & Answers | 3 | 06-11-2007 11:58 AM |
| Telnet in a script | insania | Shell Programming and Scripting | 5 | 04-15-2007 02:32 PM |
| telnet through script | arun.viswanath | UNIX for Dummies Questions & Answers | 1 | 03-26-2006 01:33 PM |
| telnet in a script | vaccari | UNIX for Dummies Questions & Answers | 10 | 10-10-2001 12:37 PM |
| telnet in a script | vaccari | IP Networking | 4 | 12-15-2000 03:42 PM |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
Telnet Script
Hi, I have the following code ... Code:
(sleep 1; echo $USERID ; sleep 1; echo $PASSWD ; sleep 1 ; echo y ; sleep 1 ; echo "\r" ; sleep 1 ; echo "cd $FILEPATH" ; sleep 1 ; echo "pwd"; sleep 1 ; echo df -k .| tail -1| cut -d ' ' -f8 > aop.txt ; echo "pwd" ; cat aop.txt; sleep 3)| telnet $SERVER the problem is that if i want to get the value returned by df -k . command i am not able to store that value in a variable. If i redirect the output to a file and cat it then it's working fine but when i am opening that file manually it is displaying me the command that i have typed in. Extremely confused. Thanks
Last edited by King Nothing; 03-31-2009 at 03:57 PM.. |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|