maheshkumarvk / superputty

Automatically exported from code.google.com/p/superputty
MIT License
0 stars 0 forks source link

Feature to automatically run a set of commands every time I open a session. #257

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Is there a feature in SuperPutty where I can automatically run a set of 
commands each time I open a new session. 

For example, everytime I open a new session, I am forced to execute the .com 
file which sets specific environment variables to be used. My Admin does not 
give access to edit .profile & .aliases files.

Original issue reported on code.google.com by dannydi...@gmail.com on 9 Nov 2012 at 1:23

GoogleCodeExporter commented 9 years ago
You could try this.

3.7.3.6 -m: read a remote command or script from a file

The -m option performs a similar function to the ‘Remote command’ box in 
the SSH panel of the PuTTY configuration box (see section 4.18.1). However, the 
-m option expects to be given a local file name, and it will read a command 
from that file. On most Unix systems, you can even put multiple lines in this 
file and execute more than one command in sequence, or a whole shell script; 
but this will not work on all servers (and is known not to work with certain 
‘embedded’ servers such as routers).

This option is not available in the file transfer tools PSCP and PSFTP.

http://the.earth.li/~sgtatham/putty/0.58/htmldoc/Chapter3.html

p.s. I didn't test this.

Original comment by strugare...@gmail.com on 13 Nov 2012 at 7:21