How to use ssh execute other shell script on other host (shell script include nohup)?

i want use ssh on the host01 to execute autoexec.sh on the host02 like following :

host01> ssh host02 autoexec.sh

autoexec.sh include nohup command like follwing :

nohup /home/jack/deletedata.sh &

after i execute ssh host02 autoexec.sh one the host01. i can't found deletedata.sh on the host02, pls help me ,many thanks ...

I'd redirect stdout and stderr to logfiles in the autoexec.sh script eg:

nohup /home/jeck/deletedata.sh > /home/jack/deletedata.log 2>&1 &

Just in case there is some funny issue with deletedata.sh not getting the correct environment, or needing a tty, etc.