Differences

This shows you the differences between the selected revisions of the page.

2013-08-14 2013-10-16
give credits (martin) specify that startup command refers to a session (not putty itself) (martin)
Line 31: Line 31:
==== [[putty_startup_directory]] Opening PuTTY in the Same Directory ==== ==== [[putty_startup_directory]] Opening PuTTY in the Same Directory ====
-If you want PuTTY to open in the same directory as WinSCP, you need to replace its startup command using ''-m'' argument. The syntax of the startup command would differ with the remote environment, particularly with operating system and shell.+If you want PuTTY to open in the same directory as WinSCP, you need to replace its session startup command using ''-m'' argument. The syntax of the session startup command would differ with the remote environment, particularly with operating system and shell.
For example with Unix-like system and ''bash'' shell the command will be like (note the ''!/'' [[ui_pref_integration_app#client_path|pattern]] to pass current remote path): For example with Unix-like system and ''bash'' shell the command will be like (note the ''!/'' [[ui_pref_integration_app#client_path|pattern]] to pass current remote path):
Line 39: Line 39:
</code> </code>
-As PuTTY needs to have the startup command to be stored in a file, you need to make use of ''!`command`'' [[ui_pref_integration_app#client_path|pattern]] to store the above command into a temporary file. Also as use of ''-m'' switch implies a non-interactive terminal, you need to force an interactive terminal back using ''-t'' switch.+As PuTTY needs the session startup command to be stored in a file, you need to make use of ''!`command`'' [[ui_pref_integration_app#client_path|pattern]] to store the above command into a temporary file. Also as use of ''-m'' switch implies a non-interactive terminal, you need to force an interactive terminal back using ''-t'' switch.
Complete PuTTY command line for this will be like (change the shell path according to your system and preferences): Complete PuTTY command line for this will be like (change the shell path according to your system and preferences):

Last modified: by martin