Artificial intelligent assistant

Bash code interfering with monitoring software I have a login script that runs when users logs into a Linux machine. #!/bin/bash if [ "$SSH_TTY" ]; then This script is interfering with a monitoring software that also connects over SSH. The script requests "press any key to continue" with a read -p -n1 -s portion. How can I omit this script only when the monitoring service is "logging in?"

> How can I omit this script only when the monitoring service is "logging in?"

Assuming this login script is in `/etc/profile.d` you could do this:


if [[ $(whoami) != "monitor_user" ]]; then

fi


You will of course need to change `"monitor_user"` into the _proper_ username for the monitoring user/agent.

xcX3v84RxoQ-4GxG32940ukFUIEgYdPy b19d12918f81f3f4bf0e9904d36c293f