Could someone break down this unexpected behavior:
#!/bin/bash
IP=$(echo $SSH_CLIENT | awk '/ /{print $1}')
echo $IP
echo $SSH_CLIENT
run as root produces correct entries;
run as regular user produces blank entries;
run straight in a shell - echo $SSH_CLIENT | awk '/ /{print $1}' - produces correct entries;
bampu
What shell is your user using?
What is in the profile or the rc files?
This is not SO, this is the chinkshit and game rig board. with the occasional /ptg/