in reply to Get filename of STDOUT
Another possibilty is to use stat to get the Inode number and then search the filesystem for the corresponding file. I don't know if that works for multiple file-systems, though.
Can't you rewrite your program as taking 2 filenames as arguments? It seems the most convenient by far.
J.
|
|---|