![](https://seccdn.libravatar.org/avatar/022d8940171e25a8319053be27a247b9.jpg?s=120&d=mm&r=g)
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? Andrew -- Email: aray@computerpark.co.uk --------------------------------------------------------- This private and confidential e-mail has been sent to you by Computer Park Ltd. If you are not the intended recipient of this e-mail and have received it in error, please notify us via the email address or telephone number below, and then delete it from your mailbox. Email: mailbox@computerpark.co.uk Tel: +44 (0) 1536 417155 Fax: +44 (0) 1536 417566 Head Office: Computer Park Ltd, Broughton Grange, Headlands, Kettering Northamptonshire NN15 6XA Registered in England: 3022961. Registered Office: 6 North Street, Oundle, Peterborough PE8 4AL =========================================================