Nope, I was just trying out the osascript command.

I tried it again and it came back with this response:

[DougsG4mac:~] admin% whoami
admin
[DougsG4mac:~] admin% osascript -e 'tell app "ARDAgent" to do shell script "whoami"';
23:47: execution error: ARDAgent got an error: Connection is invalid. (-609)
[DougsG4mac:~] admin%

:-)

Doug Hogg