I knew it had to be simple. Strange I haven't run into this before.
Both of your approaches worked except that I have to use Bourne shell
syntax in the first one too.
Thanks.
-Rick
Ken Hornstein writes:
> Ummm, assuming that "reauth" is going to run for a long time, I would guess
> that the problem is that stdin/stdout/stderr is still tied up by reauth, and
> that rshd is waiting for those descriptors to close.
>
> The fact that pagsh is in a defunct state is really a red herring in this
> case. It's going defunct because it's exited, but rshd doesn't clean up
> the status until it gets a close.
>
> What you probably want to do is something like this:
>
> rsh foo my_script "<" /dev/null ">&" /dev/null
>
> Or in your script:
>
> #!/usr/afsws/bin/pagsh
> exec < /dev/null > /dev/null 2>&1
> [...]
>
> --Ken
>
--
|Rick Cochran phone: 607-255-7223|
|Cornell Materials Science Center FAX: 607-255-3957|
|E20 Clark Hall, Ithaca, N.Y. 14853 email: [EMAIL PROTECTED]|
| "The Founding Fathers did not establish the United States as a |
| democratic republic so that elected officials would decide trivia, |
| while all great questions would be decided by the judiciary." |
| Judge Andrew Kleinfeld |