[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: test if shell is interactive
From: |
tapczan |
Subject: |
Re: test if shell is interactive |
Date: |
Sun, 22 Jan 2012 12:21:00 -0800 (PST) |
Bob Proulx wrote:
>
> Shell scripts are not interactive. So what you are seeing above is
> correct.
>
So, is there any way to test if script (a.sh) was invoked from interactive
session (human) or not (e.g. from cron)?
--
View this message in context:
http://old.nabble.com/test-if-shell-is-interactive-tp33183345p33184711.html
Sent from the Gnu - Bash mailing list archive at Nabble.com.