1

How can I tell to screen to use different bash_profile? Problem is we use a technical user to log in, but I edited a custom PS1.

Normally I login with putty like: ssh user@host -t "bash --rcfile ~/.profile.custom -i"

But screen use the default setting. Setting it as parameter after 'shell -"/usr/bin/bash --rcfile ~/.profile.custom -i" or 'shell -$SHELL --rcfile ~/.profile.custom -i' in .screenrc didn't worked because screen terminated after 2 second without doing anything

-->!!ENV1!!<-- user@host:ENV1:/app1/users/home]$screen

[screen is terminating]

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.