no screen output


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers no screen output
# 1  
Old 09-17-2006
Question no screen output

I'm a newbie.
I'm having a problem at work with a script. What i'm trying to do is connect to a cisco switch from a sun station. After i run the script and telnet into the switch i don't get any output on the "xterm window" and all my commands from the script don't show up on the screen or on the saved file. If i hit the return on the keyboard those carriage returns show up in the file saved. It's also a pain to get out of the telnet session. Smilie Are my commands not showing up because i'm leaving the sun station and the script connection is lost?
Here's my script:

#!/bin/ksh
telnet $switch_ip $port >saved_file
pause 2 or sleep 2 <---- i don't remember.

#I've typed these below and nothing shows up when the file is saved.
type "type\n"
send "send\n"
sende "sende\n"
print "print\n"
echo "echo\n"
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

Screen Output Needed on every execution

Hi , A shell script being executed by multiple user in a host, but i need the output of each user who executed the script user should have screen output as well ...and unique log file name should generated on execution of script is there anyway to get it below file will overwrite... (5 Replies)
Discussion started by: amar1208
5 Replies

2. UNIX for Beginners Questions & Answers

Screen output to a file

Hi All, I am trying to out of shell script when i run it like sh /mypath/abc.sh ....a screen log should be generated whenever i input the values, when above the script prompt for values Regards Amarendra (3 Replies)
Discussion started by: amar1208
3 Replies

3. Shell Programming and Scripting

Screen Output to Specific Columns

User with moderate experience: I run a script (my addiction is KSH) that reads a file and reports certain parameters back to the user on screen and also piped to a file. The file(s) I read is/are located under different directories, and is usually called the same thing. Sometimes not. For... (3 Replies)
Discussion started by: Brusimm
3 Replies

4. Shell Programming and Scripting

Screen output

Is it possible to split the screen and show, lets say a local directory listing on the left and a remote directory listing on the right with shell scripting? I know it's usually done with curses/ncurses, but I'd really like to keep it simple as possible. I guess 'dialog' command could do it... (1 Reply)
Discussion started by: lochraven
1 Replies

5. UNIX for Dummies Questions & Answers

Suppressing output to the screen

I want to check whether the variable read from the console is number or character , so i used echo $option|grep and checked the reuslt returned by grep cmd using $? But since I use echo the value is getting printed in the screen , I want to supress the o/p. Can anyone suggest how this can be... (1 Reply)
Discussion started by: rolex.mp
1 Replies

6. UNIX for Advanced & Expert Users

how to force output to screen??

hi, is there anyway i can force a output of a command to the monitor. for example banner hello > /dev/console it will show a hello in the console, so how do i make it to appear on the monitor screen when the console is been minmize. (6 Replies)
Discussion started by: ckng
6 Replies

7. Shell Programming and Scripting

Turn off Screen Output

Is there a way to turn off standard output while processing is going on? I have tried redirecting to /dev/null but that is not working because some of the commands invoke a profile. I would like to temporarily turn off the screen output until the processing is complete. Sort of like a splash... (3 Replies)
Discussion started by: bestbuyernc
3 Replies

8. Shell Programming and Scripting

screen output

I need to put the following in a script: echo $CCPDB will give me the db name on the screen. I need to use this name to tar cvfEh <newtarname> <dbname.exp>. I am not sure how to use the output that display on the screen in a script. I tried this echo $CCPDB > file didn't work Gundu (1 Reply)
Discussion started by: gundu
1 Replies

9. UNIX for Dummies Questions & Answers

Supress screen output...

I need to suppress the output to the screen. I am appending to a file so do not need the output on the screen in the CLI environment. eg. cat $HOME/somefile >> $HOME/anotherfile I am doing this a number of times with SQL output files so I can look at the finished file not on the screen in the... (3 Replies)
Discussion started by: jagannatha
3 Replies

10. Shell Programming and Scripting

need to hide output to screen

I have a script that askes users to enter in an oracle account and password, The information is displayed on the screen as they type it. Does anyone know how I can hide this output? :confused: (1 Reply)
Discussion started by: boat73
1 Replies
Login or Register to Ask a Question
VDETELWEB(1)						      General Commands Manual						      VDETELWEB(1)

NAME
vdetelweb - Virtual Distributed Ethernet Telnet and/or Web management module SYNOPSIS
vdetelweb [ --web ] [ --telnet ] [ --nodename nodename ] [ --daemon ] [ --rcfile rcfile ] mgmt_socket DESCRIPTION
vdetelweb implements a tiny telnet server and/or a tiny web server for the remote management of a VDE2 switch. OPTIONS
-w, --web start the web server. At least one of --web or --telnet must be set. -t, --telnet start the telnet server. At least one of --web or --telnet must be set. -n, --nodename nodename specify the nodename as seen from remote connections (e.g. in the command prompt or in the web page title). uname nodename is used when this option is not specified. -d, --daemon run as a daemon, using syslog for logging. -f, --rcfile rcfile rc file to set the initial switch configuration. When not specified, vdetelweb searches for ~/.vde/vdetelwebrc and /etc/vde/vdetel- webrc. At leas one rc file must exist and be readable. -h, --help print help. please use it for a more complete list of options. mgmt_socket is the managemnt socket used to communicate with the vde_switch. (This option must match the path used in the -M option for the vde_switch). NOTICE
Virtual Distributed Ethernet is not related in any way with www.vde.com ("Verband der Elektrotechnik, Elektronik und Informationstechnik" i.e. the German "Association for Electrical, Electronic & Information Technologies"). SEE ALSO
vde_switch(1), vde_plug(1), vdeq(1). dpipe(1). unixterm(1). AUTHOR
VDE is a project by Renzo Davoli <renzo@cs.unibo.it> Virtual Distributed Ethernet June 16, 2008 VDETELWEB(1)