If you are using Jenda's Win32::Deamon::Simple, then test the global $CMDLINE. If not, look at the BEGIN block in that module for how he decides whether to set it true or false.
Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.
| [reply] [d/l] |
That concept doesn't exist in Windows. | [reply] |
Ok - well for my purposes, let's say we're not running in a console. We could be called from a Win32::Daemon service. So I'm trying to determine whether I'm running in a console (or terminal session) or not. So let me rephrase, The solution doesn't need to be generic. I can just have a condition to see if I'm running on Windows or *nix, and then do the appropriate check ... but I still need to know what the check would be
| [reply] |
if (-t STDIN) { ...
| [reply] [d/l] |