I have a Bash script that needs to be run from an interactive prompt, due to environment variables and configuration that only seems to be read when actually logged into a session. Examples below:
me@client:~$ ssh box user@box:~$ /usr/local/bin/myscript
me@client:~$ ssh box "/usr/local/bin/myscript"
Is there any Bash-fu that I can use in my script to determine if it's being run via a one-line SSH command?