rcmd host scriptname
but the rcmd never returns.
in the script, i start a process with nohup. (without this, everything
works fine!!)
When i interrupt the rcmd with ctrl-break, i get the output from the
process on my screen.
What did i wrong ???
Any hints ??
Thanks,
Jonas
The rcmd process waits for the remote end to close the stdin and
stdout descriptors that the rcmd set up for it.
>in the script, i start a process with nohup. (without this, everything
>works fine!!)
>
>When i interrupt the rcmd with ctrl-break, i get the output from the
>process on my screen.
>
>What did i wrong ???
You didn't redirect the output on the remote system. Try adding
to the top of your script (just after the #! line):
exec </dev/null > $HOME/script.log 2>&1
--Ken Pizzini
or do somethig like that :
rcmd host scriptname \< /dev/null \> /dev/null 2\>\&1 &
or
rcmd host "scriptname </dev/null > /dev/null 2>&1 &"
like this the job will run by its own on the otherside host
if you want to keep the rcmd connection open on your side
just do :
rcmd host -n scriptname &
did you read the manual of rcmd ? it's explained inside.
Cyrille.
--
mailto:clef...@no-spam.citeweb.net Remove "no-spam." to answer me back.
mailto:Cyrille...@no-spam.edf.fr Supprimer "no-spam." pour me repondre.