Putty Input thru Windows


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting Putty Input thru Windows
# 1  
Old 04-10-2008
Question Putty Input thru Windows

Hi
anyone knows how to pass values to putty command prompt from MS windows.

since i am have a shell script to get input of several lines. i dont want to type it rather than input values from some windows based application

is there any way

thanks in advance.
# 2  
Old 04-10-2008
unalbe to get your question completely

but if you want to pass values to your shell script instead of typing them everytime.

User arguments while running your shell script.

Create a file at your home dir with the lines, now use a for loop to pass on the values or better you can use expect.

************************
for i in `cat file_with_values`
do

./shell_script.sh $i

done

************************

http://floppsie.comp.glam.ac.uk/Glam...ripting/5.html
# 3  
Old 04-10-2008
are u sure about passing values..... or u are talking about pasting... ??
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Windows & DOS: Issues & Discussions

Cant get responsive terminal when I ssh from Windows to Linux using putty.exe

I ssh from Windows to Linux server and execute a few commands. I have ssh keys setup between them and works fine. The commands get executed on the Linux server however I wish to stay on the Linux terminal that was opened by putty.exe. However, the terminal simply does the job and closes. ... (10 Replies)
Discussion started by: mohtashims
10 Replies

2. Shell Programming and Scripting

Multiple input and save in windows format

The below code works great if the user inputs a single value. The sed command applies the NM_ with the user input it is saved to a file. However, if two values are entered the below does not work. Can both values be saved at the same time if they are entered in windows format? Thank you :). ... (6 Replies)
Discussion started by: cmccabe
6 Replies

3. UNIX for Dummies Questions & Answers

Can we build a tool for Windows to retrieve data from UNIX servers (putty console)

Hi Friends, Is it possible to build a windows tool ( a java applet maybe? ) which can retrieve data and display after performing certain commands on unix servers ( simple grep / script output) after logging into putty console. I am on a company server so please bear that in mind. I might have... (23 Replies)
Discussion started by: srkmish
23 Replies

4. Windows & DOS: Issues & Discussions

Connecting to UNIX from Windows without using putty

Hi Is there any command which we can try connecting unix from windows without using any third party tool. Thanks in advance KVB (9 Replies)
Discussion started by: bikky6
9 Replies

5. UNIX for Dummies Questions & Answers

Putty Logging - Typed input only

Just a quick question, Does anyone know how to configure putty (or if you can) to log ONLY what you type in at the command prompt. e.g. I want to keep: grep -i edc_special SystemOut.log I don't want to keep the output printed to screen. If anyone has any ideas or links that would be... (1 Reply)
Discussion started by: Pedro72
1 Replies

6. Linux

Help!! trying to connect to linux SSH from windows putty client

Hi, i am trying to connect my Putty session on a windows box to a linux SSH, i have generated private and public key pairs using puttygen, i have set the public one to be in an OPENSSH format... and have put this in my authorized_keys file in linux, when i connect i get the following errors: ... (1 Reply)
Discussion started by: Jtyreman
1 Replies

7. UNIX for Dummies Questions & Answers

startX windows application during boot.....putty connection takes the windows

Dear all i am new to linux/debian i run my application on the computer...during startup in bashrc i wrk wid dis script to invoke startx..i do this above command and it works perfectly... if && ; then startx -- -br 1>/dev/null exit 0 fi i use winscp for file transfer and putty for... (1 Reply)
Discussion started by: venkat_330
1 Replies

8. UNIX for Advanced & Expert Users

Use putty problems in windows

Hello all, I have encountered a strange question. I installed a Ubuntu 8.10 in the VMware in the XP, and use putty to connect to ubuntu. Everything is fun except I can't use the wget in putty, neither does command "sudo apt-get ***". But they are OK in the VM. Can someone help me out? Thank... (2 Replies)
Discussion started by: tpltp
2 Replies

9. Shell Programming and Scripting

Renaming putty windows with a shell script

i frequently have to open multiple putty windows to ssh into a unix server running HP-UX 11.23. Since i use some of the windows for dedicated processes i would like to rename them (the caption displayed in the titlebar) to something more convenient than the standard <Host>.<Server>.com While... (4 Replies)
Discussion started by: orno
4 Replies

10. Red Hat

How to take printout of linux file from windows xp using putty?

Friends, I have installed Putty in my windows xp pc. I am connecting the RHEL AS 3 server using putty from my windows xp. My printer is connected to my windows xp. Now, i want to print text.txt of RHEL AS 3.0 in my windows xp printer through putty. For Example: my pc ip is 117.23.2.55... (3 Replies)
Discussion started by: sathyguy
3 Replies
Login or Register to Ask a Question