If you want to run shell script after connecting to the server via ssh on linux or unix. Simple edit this file (depend on your shell)
- ~/.profile
- ~/.bash_profile
- ~/.zprofile
- ~/.login
then try to logout and re-login, the script will be executed automatically.
ไม่มีความคิดเห็น:
แสดงความคิดเห็น