--- Andrew RAY
I'd be more inclined to do:
ssh -X root@localhost $(which app)
That way, the string of the interpolated subshell will evaluate to the program specified -- moreover, this will only work with the program in $PATH.
I think I'm getting lost in your syntax here, please forgive me. BUT, taking my example of yast2, which on a SuSE system is in /sbin/yast2, what exactly would you like to see typed on a single command line?
Sorry, I agree entirely. My point was if you do: whereis APP_NAME then you have to issue *that*, find the path, and then add it as an option to the command. You could argue that if "APP_NAME" is in $PATH then you don't need to use $(which...) in which case I would agree. I was generalising in my example, and not referring to yast2 per se. :) -- Thomas Adam ===== Thomas Adam "The Linux Weekend Mechanic" -- www.linuxgazette.com ________________________________________________________________________ Want to chat instantly with your online friends? Get the FREE Yahoo! Messenger http://mail.messenger.yahoo.co.uk