run growlnotify over ssh

I am trying to run growl notify over ssh like so
ssh andrew@192.168.1.8 “growlnotify -m test”
is run I get
bash: growlnotify command not found
however running it straight from the mac it runs fine
am I missing something simple or is there a really complex reason this won’t work?
ps. ssh keys are enabled in both directions

edit: I logged into the mac from a remote machine over ssh and tried to run it and it ran fine so it seems to just affect the one line login and run way and DrC tried that cated the .profile to .bashrc

Answer

What happens if you use the complete path to growlnotify?

ssh andrew@192.168.1.8 "/usr/local/bin/growlnotify -m test"

Attribution
Source : Link , Question Author : mcgyvrfan121 , Answer Author : Sojourner

Leave a Comment