When I am doing automatic PuTTY login from Windows bat file, after login command prompt is showing only dollar sign in UNIX terminal. But when I am doing manual login in PuTTY, after login, it is showing full directory name in UNIX terminal.
I am doing automatic PuTTY login this way:
putty.exe -ssh [email protected] -pw mypasswordforsomewherecom -m cmd.txt -t
In cmd.exe file there are some UNIX commands to run in remote computer:
mkdir test
/n
sh
What I have observed that .profile
of user is not executing when I am doing automatic PuTTY login. But .profile
is executed when doing manual PuTTY login to the same server.