[PLUG] trying to see the redirects for an active command question

logical american website.reader3 at gmail.com
Tue Aug 27 01:22:22 UTC 2019


On 8/26/2019 4:21 PM, Reid wrote:
> #!/bin/bash
>
> real_stdin=$(readlink /proc/$$/fd/0);
> real_stdout=$(readlink /proc/$$/fd/1);
>
> echo $real_stdin
> echo $real_stdout
This was exactly what I needed, and I added stderr also.

Thanks!




More information about the PLUG mailing list