Sponsored Content
Top Forums Shell Programming and Scripting To run a shell script in remote server from windows batch file Post 302854399 by Corona688 on Tuesday 17th of September 2013 11:39:32 AM
Old 09-17-2013
Agreed, putty is bad at automating, which is why the same people made plink, which is designed with that in mind.
 

8 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

How can I run scripts in my unix account from batch file in Windows?

Hi all, I'm working on Windows, connecting to my Unix account by different ways: by FTP opening files in UltraEdit32, by mapping drive to browse, by Exceed or Telnet to compile at Unix account. Actually, that is what I would like to change: I'd like to make a batch file which would connect to... (7 Replies)
Discussion started by: olgafb
7 Replies

2. UNIX for Dummies Questions & Answers

Pull a file from a remote server through a shell script

Hi, I am writing a shell script to pull a file from a remote server (Let say its a windows based remote server). One of my criteria is to pull a file only if it is not empty. We have done a similar script to push a file from our end to a remote server and before pushing it we check for the... (2 Replies)
Discussion started by: sashankkrk
2 Replies

3. AIX

Script to start a remote batch job on another server

Hi , I am trying to execute one script residing on server B from server A and in automated way but with a trigger. My main quetion are 1) How I will login to the remote server automatically with user name and password. ( rsh or any other way ?) 2) Once logged in I need to execute... (2 Replies)
Discussion started by: agent47
2 Replies

4. Programming

Expect script to run a Shell script on remote server

Hi All, I am using a expect script to run a shell script on remote server, the code is as follows. But the problem is that it executes only first command, and hangs it doesn't run the next commands. spawn ssh $uid@$host expect "password:" send "$password\r" expect "*\r" send... (2 Replies)
Discussion started by: yashwanthsn
2 Replies

5. Shell Programming and Scripting

Running remote system shell script and c binary file from windows machine using java

Hi, I have an shell script program in a remote linux machine which will do some specific monitoring functionality. Also, have some C executables in that machine. From a windows machine, I want to run the shell script program (If possible using java). I tried with SSH for this. but, in... (1 Reply)
Discussion started by: ram.sj
1 Replies

6. Shell Programming and Scripting

FTP using script not working (for transfering file from a remote unix server to windows PC.)

hi, Im using the following code for FTP #!/usr/bin/ksh ftp -v -n "10.29.45.11" << cmd user "mahesva" "mahesva123" get rtl.tar quit cmd Below is the log when i run the above code ********************************** Connected to 10.29.45.11. 220 (vsFTPd 2.0.1) 530 Please login with USER... (20 Replies)
Discussion started by: dll_fpga
20 Replies

7. Shell Programming and Scripting

Need to run the batch script from shell scripting

Hi All, I am working on shell scripting.My script is completed but I have one task that is to trigger the batch script(with or without parameter) from my shell scripting(reside on linux system) and output which is geneareted by the batch should e.g. if batch script creates any files then I want... (5 Replies)
Discussion started by: anuragpgtgerman
5 Replies

8. Shell Programming and Scripting

Except script to run a local shell script on remote server using root access

local script: cat > first.sh cd /tmp echo $PWD echo `whoami` cd /tmp/123 tar -cvf 789.tar 456 sleep 10 except script: cat > first #!/usr/bin/expect set ip 10.5.15.20 set user "xyz123" set password "123456" set script first.sh spawn sh -c "ssh $user@$ip bash < $script" (1 Reply)
Discussion started by: Aditya Avanth
1 Replies
putty(1)							 PuTTY tool suite							  putty(1)

NAME
putty - GUI SSH, Telnet and Rlogin client for X SYNOPSIS
putty [ options ] [ host ] DESCRIPTION
putty is a graphical SSH, Telnet and Rlogin client for X. It is a direct port of the Windows SSH client of the same name. OPTIONS
The command-line options supported by putty are: --display display-name Specify the X display on which to open putty. (Note this option has a double minus sign, even though none of the others do. This is because this option is supplied automatically by GTK. Sorry.) -fn font-name Specify the font to use for normal text displayed in the terminal. -fb font-name Specify the font to use for bold text displayed in the terminal. If the BoldAsColour resource is set to 1 (the default), bold text will be displayed in different colours instead of a different font, so this option will be ignored. If BoldAsColour is set to 0 and you do not specify a bold font, putty will overprint the normal font to make it look bolder. -fw font-name Specify the font to use for double-width characters (typically Chinese, Japanese and Korean text) displayed in the terminal. -fwb font-name Specify the font to use for bold double-width characters (typically Chinese, Japanese and Korean text). Like -fb, this will be ignored unless the BoldAsColour resource is set to 0. -geometry geometry Specify the size of the terminal, in rows and columns of text. See X(7) for more information on the syntax of geometry specifica- tions. -sl lines Specify the number of lines of scrollback to save off the top of the terminal. -fg colour Specify the foreground colour to use for normal text. -bg colour Specify the background colour to use for normal text. -bfg colour Specify the foreground colour to use for bold text, if the BoldAsColour resource is set to 1 (the default). -bbg colour Specify the foreground colour to use for bold reverse-video text, if the BoldAsColour resource is set to 1 (the default). (This colour is best thought of as the bold version of the background colour; so it only appears when text is displayed in the background colour.) -cfg colour Specify the foreground colour to use for text covered by the cursor. -cbg colour Specify the background colour to use for text covered by the cursor. In other words, this is the main colour of the cursor. -title title Specify the initial title of the terminal window. (This can be changed under control of the server.) -sb- or +sb Tells putty not to display a scroll bar. -sb Tells putty to display a scroll bar: this is the opposite of -sb-. This is the default option: you will probably only need to spec- ify it explicitly if you have changed the default using the ScrollBar resource. -log filename This option makes putty log all the terminal output to a file as well as displaying it in the terminal. -cs charset This option specifies the character set in which putty should assume the session is operating. This character set will be used to interpret all the data received from the session, and all input you type or paste into putty will be converted into this character set before being sent to the session. Any character set name which is valid in a MIME header (and supported by putty) should be valid here (examples are `ISO-8859-1', `windows-1252' or `UTF-8'). Also, any character encoding which is valid in an X logical font description should be valid (`ibm- cp437', for example). putty's default behaviour is to use the same character encoding as its primary font. If you supply a Unicode (iso10646-1) font, it will default to the UTF-8 character set. Character set names are case-insensitive. -nethack Tells putty to enable NetHack keypad mode, in which the numeric keypad generates the NetHack hjklyubn direction keys. This enables you to play NetHack with the numeric keypad without having to use the NetHack number_pad option (which requires you to press `n' before any repeat count). So you can move with the numeric keypad, and enter repeat counts with the normal number keys. -help, --help Display a message summarizing the available options. -pgpfp Display the fingerprints of the PuTTY PGP Master Keys, to aid in verifying new files released by the PuTTY team. -load session Load a saved session by name. This allows you to run a saved session straight from the command line without having to go through the configuration box first. -ssh, -telnet, -rlogin, -raw, -serial Select the protocol putty will use to make the connection. -l username Specify the username to use when logging in to the server. -L [srcaddr:]srcport:desthost:destport Set up a local port forwarding: listen on srcport (or srcaddr:srcport if specified), and forward any connections over the SSH con- nection to the destination address desthost:destport. Only works in SSH. -R [srcaddr:]srcport:desthost:destport Set up a remote port forwarding: ask the SSH server to listen on srcport (or srcaddr:srcport if specified), and to forward any con- nections back over the SSH connection where the client will pass them on to the destination address desthost:destport. Only works in SSH. -D [srcaddr:]srcport Set up dynamic port forwarding. The client listens on srcport (or srcaddr:srcport if specified), and implements a SOCKS server. So you can point SOCKS-aware applications at this port and they will automatically use the SSH connection to tunnel all their connec- tions. Only works in SSH. -P port Specify the port to connect to the server on. -A, -a Enable (-A) or disable (-a) SSH agent forwarding. Currently this only works with OpenSSH and SSH-1. -X, -x Enable (-X) or disable (-x) X11 forwarding. -T, -t Enable (-t) or disable (-T) the allocation of a pseudo-terminal at the server end. -C Enable zlib-style compression on the connection. -1, -2 Select SSH protocol version 1 or 2. -i keyfile Specify a private key file to use for authentication. For SSH-2 keys, this key file must be in PuTTY's format, not OpenSSH's or any- one else's. -sercfg configuration-string Specify the configuration parameters for the serial port, in -serial mode. configuration-string should be a comma-separated list of configuration parameters as follows: o Any single digit from 5 to 9 sets the number of data bits. o `1', `1.5' or `2' sets the number of stop bits. o Any other numeric string is interpreted as a baud rate. o A single lower-case letter specifies the parity: `n' for none, `o' for odd, `e' for even, `m' for mark and `s' for space. o A single upper-case letter specifies the flow control: `N' for none, `X' for XON/XOFF, `R' for RTS/CTS and `D' for DSR/DTR. SAVED SESSIONS
Saved sessions are stored in a .putty/sessions subdirectory in your home directory. MORE INFORMATION
For more information on PuTTY, it's probably best to go and look at the manual on the web page: http://www.chiark.greenend.org.uk/~sgtatham/putty/ BUGS
This man page isn't terribly complete. PuTTY tool suite 2004-03-24 putty(1)
All times are GMT -4. The time now is 04:25 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy