Send Remote Commands via SSH with variables

Hi there

I found the Command to send commands to other servers like:

sv01> ssh user@sv02 'ps -ef'

But I cant use Variables from a script i want to execute on another server like:

sv01> ssh user@sv02 'cd $SCRIPTHOME'

although the variable is set on sv01.

How can I run commands on sv02 with variables from sv01?

Thx 4 your help

Greez Roger

Double quotes.

ow... that easy..^^

Thank you! It works!