note
JaWi
You can use the <tt>-t</tt> operator to check whether your script is connected to a TTY.
At least under my Debian system, I get a positive result (1) for the <tt>-t</tt> operator for a job started from the console, and nothing for 'crontabbed jobs'.
<p>
HtH,
<!-- Node text goes above. Div tags should contain sig only -->
<div class="pmsig"><div class="pmsig-178253">
<p>
-- JaWi
<p>
"A chicken is an egg's way of producing more eggs."
</div></div>
395882
395882