Running RSH on the background

Hi,

I am developing a script that would do a 'rsh' on a client machine.

I want to invoke a script in client machine which would keep on polling data to the server.

I want the rsh to return back once it invoked the script on client and the script should run on background on client.

I have to comeback and start a script on server which would collect the data.

Right now, when I do an 'rsh' on client machine, I am stuck there with client polling the data. I couldn't come back and start the script on the server.

can someone help me with this?

Thanks,
Sundeep

Once you're on the remote host

echo "/path/to/command/start_collecting_data" | at now

As you are running the polling command as a background process, adding an "exit 0" statement in the script will solve the problem.