Timeline for How can I tell what device or file name I am redirecting to
Current License: CC BY-SA 3.0
10 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Feb 10, 2014 at 22:29 | vote | accept | Kevin Fegan | ||
| Feb 9, 2014 at 6:32 | answer | added | Matthew Cline | timeline score: 3 | |
| Feb 9, 2014 at 5:47 | comment | added | Ignacio Vazquez-Abrams | It can be done, but 1) it's OS-specific, and 2) it shouldn't be done. | |
| Feb 9, 2014 at 5:40 | comment | added | Kevin Fegan | @IgnacioVazquez-Abrams - If the answer to my question is that "it can't be done", then I can find workarounds involving various ways of passing the name of the redirect file to the main script, or starting the mainscript in the background, and let the "wrapper" monitor the redirect file. But all this adds levels of unnecessary complexity if what I'm asking can be done. | |
| Feb 9, 2014 at 5:35 | comment | added | Kevin Fegan | @IgnacioVazquez-Abrams - The script is being started from the command line. I could write a "wrapper" script to start the main script, and the "wrapper" would know the name of the redirect file, but once the "wrapper" calls the main script, the "wrapper" waits (does nothing) until the main script completes and exits... by then, it would be meaningless for the "wrapper" script to check the redirect file anymore. | |
| Feb 9, 2014 at 5:32 | answer | added | slm♦ | timeline score: 1 | |
| Feb 9, 2014 at 5:23 | comment | added | Ignacio Vazquez-Abrams | That's something the external script should be handling. The one that knows where it's redirecting to. | |
| Feb 9, 2014 at 5:23 | comment | added | Kevin Fegan | @IgnacioVazquez-Abrams - The script will run for hours and will generate many Gigabytes of output. I want to (every so often) check the size of the redirect file and restart the script with redirection to a different file if (when) it gets larger than some size (the script is written so that it can be stopped and restarted, and it will resume where it was before it was stopped). | |
| Feb 9, 2014 at 5:04 | comment | added | Ignacio Vazquez-Abrams | Why would the script need to care? | |
| Feb 9, 2014 at 4:41 | history | asked | Kevin Fegan | CC BY-SA 3.0 |