How to check the number of terminals open from inside a shell script

suvayu ali fatkasuvayu+linux at gmail.com
Fri Oct 29 16:52:42 UTC 2010


On 29 October 2010 06:39, Mark Liggett <mliggett at btisystems.com> wrote:
> You could add your script to the .bashrc file – this way the script would
> run once when the user logs on.

I presume you meant ~/.bash_profile ? ~/.bashrc is sourced every time
a user opens a terminal, whereas ~/.bash_profile is sourced every time
a user logs in. This distinction however becomes redundant when the
user always uses a text terminal to login. (as in no gui)

-- 
Suvayu

Open source is the future. It sets us free.


More information about the users mailing list