[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
How can a script know whether it is directly called in a terminal?
From: |
Peng Yu |
Subject: |
How can a script know whether it is directly called in a terminal? |
Date: |
Sun, 22 Mar 2020 12:46:59 -0500 |
Hi,
I'd like to know within a script whether it is called directly by
someone at the terminal.
Or it is called by another script (whether that script is called from
a terminal or not, it doesn't matter.) Is there a way to perform this
test? Thanks.
--
Regards,
Peng
- How can a script know whether it is directly called in a terminal?,
Peng Yu <=