how to supply arguments for a script while ssh to a server

Hi,
I have something like below code piece in ksh

while read machine
do
  ssh $user@$machine < steps.ksh $RPI
done < $machine

here, after it gets logged in to server it is not considering the $PRI as argument for steps.ksh script

please suggest the fix.

Try this...

RPI="something you want to send"
while read machine
do
   ssh $user@$machine "steps.ksh \$RPI"
done < $machine

--ahamed