This probably seems like a strange question, but say I have a script whose output is being written out to a file like so:
myscript.sh >> /path/to/some/file
Is it possible "touch" standard out such that the modification time of the output file can be updated without actually writing anything?
Obviously if the path were being passed directly into the script I could easily do this with the
touch command, but that's not the case here, instead I'm redirecting standard out to a file.
So is there a clever way to touch the destination file when using I/O redirection, or do I need to handle the output path either internally, or inside some kind of wrapper script?