Say I'm executing from the cmd line...
myprogram > RDfile
Is there a way to reference the actual redirected file name 'RDfile' in the ksh script?
Built-in shell variables like $* or $@ don't include any of the tokens right of the ">" cmd.
What about referencing the file descriptor ... how? What I need is the actual file name because I need to avoid this file in my script.
...thanks!
myprogram > RDfile
Is there a way to reference the actual redirected file name 'RDfile' in the ksh script?
Built-in shell variables like $* or $@ don't include any of the tokens right of the ">" cmd.
What about referencing the file descriptor ... how? What I need is the actual file name because I need to avoid this file in my script.
...thanks!