Console/SSH/X: How to tell?

Marc Lanctot lanctot-yfeSBMgouQgsA/PxXw9srA at public.gmane.org
Fri Jun 19 19:36:40 UTC 2009


Hello, 

I use pal for my calendaring now and I'd like my xterms to open up with
the output from pal. However, if I add it to .bashrc, then when I try
to copy things to/fro remotely scp fails because there is output
generated by my .bashrc. 

So what I'd like to do is detect if the session is an xterm/console, or
through interactive ssh.. and output the calendar in these cases but
not in cases where I scp or execute a command remotely. 

Can I do this? If so, how?

Thanks in advance, 
Marc

-- 
Any code of your own that you haven't looked at for six or more months
might as well have been written by someone else.
  -- Eagleson's law
--
The Toronto Linux Users Group.      Meetings: http://gtalug.org/
TLUG requests: Linux topics, No HTML, wrap text below 80 columns
How to UNSUBSCRIBE: http://gtalug.org/wiki/Mailing_lists





More information about the Legacy mailing list