ssh user@remotehost 'var1=foo var2=bar tcsh' < shell_script.sh