Solved

.cshrc problem

Posted on 1998-06-24
4
210 Views
Last Modified: 2010-04-21
I put follow line on my .cshrc file:
  xbiff &
the problem is every time I start a x session, xbiff is executed. How can I let it just be invoked only once?
 



 
0
Comment
Question by:hzheng
  • 2
4 Comments
 
LVL 1

Expert Comment

by:agolan
ID: 2008202
This is not a problem, it's what it is intended to do.
What are you trying to achieve ?
xbiff is a tool that shows you under x when you have new mail.

Maybe you were thinking of biff ?
0
 
LVL 3

Accepted Solution

by:
braveheart earned 50 total points
ID: 2008203
.cshrc is invoked every time that you start a new shell (except for csh scripts starting with #!/bin/csh -f)

login is invoked every time that you start a login shell.

There will also be a session initialisation file which is invoked every time that you start a session, which is the file where you should call xbiff. The name of the session file depends on the type of X session or window manager that you are running but may be called ~/.xinitrc or ~/.xsession, or something similar and will probably have to be compatible with the Bourne shell sh so don't use csh-style if statements, etc. If you are using CDE or VUE then you may require a completely different approach. Which session manager and window manager are you using?

Remember that starting a new terminal window will only start a new login shell if you give either the -ls parameter when you start the window, or if you set the loginShell resource to True for your terminal window in the appropriate resource file. The default is for a login shell not to be started.
0
 

Author Comment

by:hzheng
ID: 2008204
my machine runs exceed x server on the top of win95. The only initialisation file I can find is .cshrc. whenever I start a xterm, a xbiff box is poped out. (So if I have 3 xtem windows, 3 xbiff boxs are there.)
0
 
LVL 3

Expert Comment

by:braveheart
ID: 2008205
You should not invoke xbiff in .cshrc because this is the initialisation file for the C-shell which is started up for each of the xterms, presumably started up on remote UNIX hosts, rather than on your PC.

The session is under the control of Exceed, so it is in the Exceed setup that you need to put xbiff. However, this runs in a windows environment, not an X environment, so things are a bit different.

I can't remember exactly how to do this but it may be in the initialisation of HWM (Hummingbird Window Manager) or perhaps in Xstart under Exceed Tools. There is some sort of form interface for specifying the host/username/password and a command line to be run on the specified host, which could invoke an initialisation script. However, I think that it still has to be run by hand, even though the interface has been simplified. I don't know of any way to automate its execution.

If you get tired of chasing around why not subscribe to the Exceed users mailing list and ask your questions there. Just send a mail to <exceedusers-request@hcl.com> and include:
subscribe youremail@your.site.com
in the body of the message. Then send your questions to <exceedusers@hcl.com>.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

My previous tech tip, Installing the Solaris OS From the Flash Archive On a Tape (http://www.experts-exchange.com/articles/OS/Unix/Solaris/Installing-the-Solaris-OS-From-the-Flash-Archive-on-a-Tape.html), discussed installing the Solaris Operating S…
Installing FreeBSD… FreeBSD is a darling of an operating system. The stability and usability make it a clear choice for servers and desktops (for the cunning). Savvy?  The Ports collection makes available every popular FOSS application and packag…
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.
In a previous video, we went over how to export a DynamoDB table into Amazon S3.  In this video, we show how to load the export from S3 into a DynamoDB table.

920 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now