I want putty to run a single command after login when its start up and then get control of the console.
Let's say every time I need to goto a specific directory to run some command there.
The command I execute will vary time to time but I need to go to that specific directory every time : lets say the directory is a/b/c/
So I need to run a
cd /a/b/c
command after every time i login.
currently I am using :
C:\Users\Administrator\Desktop\putty.exe [myhost] -l [user] -pw [password]
As the Target
value In putty.exe
shortcut file. Which working fine.
But now I want to execute a
cd /a/b/c
command after login automatically, Is it possible?
I have tried as suggested Here . But its execute the command and then exit putty. I don't want the putty to exit after the command has been executed.
~/.bash_profile
?