08-03-2015
bat is BATCH
sh is SHELL/BASH
Unless you are on a *nix like machine, or windows within a cygwin, you wont be able to run the shell script.
You upload the shell script first to the *nix machine.
Then you call your bat file, which calls putty.
But give putty some more args, like -e /remote/path/to/script.
See putty /help for more details (if its -e as well) about execute a command.
hth
6 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
Hi,
I am using the Korn-Shell (ksh) and would like to know all the shortcut keys. For example: Shift + Insert etc.
Thank you very much.
Take care (0 Replies)
Discussion started by: --crimson--
0 Replies
2. UNIX for Dummies Questions & Answers
How can the shortcut keys be defined that would open up a terminal window? When using a kvm switch, the mouse sometimes does not work, but the keyboard does, and by opening up a terminal window using a shortcut key combination, the mouse can be restarted by entering the predefined mouserestart... (0 Replies)
Discussion started by: figaro
0 Replies
3. UNIX for Dummies Questions & Answers
We currently use TUN as an emulation program to connect to various unix applications. I am looking at moving to PuTTY release 0.60 but am getting stuck as one application runs a macro at startup to run a program.
My question is, can you run a macro from PuTTY?
Any pointers would be great. (0 Replies)
Discussion started by: virtualpaul
0 Replies
4. OS X (Apple)
how can I do that?
I can paste a line with ctrl+p; but I dont know how to copy it?
ctrl+y - just deletes etc. (2 Replies)
Discussion started by: c_lady
2 Replies
5. Shell Programming and Scripting
Hi,
sorry if this is the wrong forum for this question but I couldnt spot another obvious forum for it.
I have a windows shortcut which opens up a saved session in putty. From this session I then ssh to another remote server. I was wondering is there a way that I can either edit my shortcut... (5 Replies)
Discussion started by: newb1000
5 Replies
6. Shell Programming and Scripting
-EDIT-
I have solved my problem below by using a different program. Instead of xsel I am using xclip which basically does the same thing and works fine from a script invoked by a global hotkey.
-END EDIT-
Hi,
I've written a simple script to copy my email address into both the... (0 Replies)
Discussion started by: gencon
0 Replies
psftp(1) PuTTY tool suite psftp(1)
NAME
psftp - interactive SFTP (secure file transfer protocol) client
SYNOPSIS
psftp [options] [user@]host
DESCRIPTION
psftp is an interactive text-based client for the SSH-based SFTP (secure file transfer) protocol.
OPTIONS
The command-line options supported by psftp are:
-V Show version information and exit.
-pgpfp Display the fingerprints of the PuTTY PGP Master Keys and exit, to aid in verifying new files released by the PuTTY team.
-b batchfile
Use specified batchfile.
-bc Output batchfile commands.
-be Don't stop batchfile processing on errors.
-v Show verbose messages.
-load session
Load settings from saved session.
-P port
Connect to port port.
-l user
Set remote username to user.
-batch Disable interactive prompts.
-pw password
Set remote password to password. CAUTION: this will likely make the password visible to other users of the local machine (via com-
mands such as `w').
-1 Force use of SSH protocol version 1.
-2 Force use of SSH protocol version 2.
-C Enable SSH compression.
-i path
Private key file for authentication.
COMMANDS
For a list of commands available inside psftp, type help at the psftp> prompt.
MORE INFORMATION
For more information on psftp it's probably best to go and look at the manual on the PuTTY web page:
http://www.chiark.greenend.org.uk/~sgtatham/putty/
BUGS
This man page isn't terribly complete. See the above web link for better documentation.
PuTTY tool suite 2004-03-24 psftp(1)