(Not infront of SSH right now so OTOMH): Can't you do something like:
ssh user@machine 'cd /a/directory; touch my_file'
--
Regards,
James.
http://www.jamesbensley.co.cc/
There are 10 kinds of people in the world; Those who understand
Vigesimal, and J others...?