07-15-2009
Thanks for the help and advice guys, much appreciated.
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
I am learning the CVS in Unix now, but in the book it said I need to add the CVSROOT to the end of the .cshrc file. I had use emacs to edit it and add CVSROOT=/CVS, but when I run script .cshrc then it said CVSROOT=/CVS: Command not found. I had already think that for a hour, so could any person... (1 Reply)
Discussion started by: a8111978
1 Replies
2. Shell Programming and Scripting
where are my .cshrc files ? (4 Replies)
Discussion started by: cubicle^dweller
4 Replies
3. UNIX for Advanced & Expert Users
Hi, My account is : abcd
I belong to a group: pqrs
Some thing straneg happened yesterday.
My .cshrc and .login got overwritten into pqrs's .cshrc and .login
I obviously did not explicitly overwrite pqrs's .cshrc.
Are there any reasons how this could have happened indirectly due to... (5 Replies)
Discussion started by: gjthomas
5 Replies
4. UNIX for Dummies Questions & Answers
How can I set up my .cshrc file to do as the posix shell does the escape+k to scroll my command history
Thanks
Oh BTW, Hi I'm new to the forum. (2 Replies)
Discussion started by: Lefty
2 Replies
5. UNIX for Dummies Questions & Answers
what kind of information is there .cshrc ?
I want to set an alias in the form of
=>#alias setprompt 'set prompt=">>$user<<@`hostname`:${cwd}% "'
Ex. alias pr 'cd /home/username'
when I make the change and try to do $pr ... its saying pr: command not found
Is there any way I can... (0 Replies)
Discussion started by: priyam
0 Replies
6. UNIX for Dummies Questions & Answers
Hi,
I use a specific utility in my .cshrc for setting up the right fonts and I believe it's sufficient to run it once for a whole session.
Since I have sourced it in my .cshrc, it runs every time I do a source of .cshrc or invoke every new terminal.
To resolve this issue, I thought of... (1 Reply)
Discussion started by: oldtrash
1 Replies
7. Shell Programming and Scripting
Hello everyone,
I write a ~/.cshrc for set class path to run my java application. The file is listed below.
setenv YFILTER_HOME ~/yfilter-2.0
setenv PATH "$YFILTER_HOME/bin:$PATH"
setenv CLASSPATH... (1 Reply)
Discussion started by: perl0101
1 Replies
8. Shell Programming and Scripting
Hi folks,
I'm trying to define the following command as alias in .cshrc file:
ls -ltr | grep ^d | awk '{print $9}' | xargs du -hs
I defined it as the following:
alias nirdirs '`ls -ltr | grep "^d" | awk "{print \\$9}" | xargs du -hs`'
I've got the following error when I've run the alias:... (7 Replies)
Discussion started by: nir_s
7 Replies
9. UNIX for Dummies Questions & Answers
I am using Redhat 4.1.2, tcsh shell
To add a program to my path, I added the following line to my .cshrc file:
set path = (/home/R/R-2.11.0/bin/ /home/R/R-2.11.0/library)
It worked, I am able to run the program I wanted. But the pathway above overwrote all other existing paths - so I can no... (1 Reply)
Discussion started by: Euphoria
1 Replies
10. Shell Programming and Scripting
I have a file which is basically .cshrc
It contains lines such as:
setenv <variable> <value>...
set path=(<dir> <dir>)
source <another_file>... (1 Reply)
Discussion started by: kshitij
1 Replies
LEARN ABOUT DEBIAN
af_aftype
af_misc(3) Attribute Filesystem (AtFS) af_misc(3)
NAME
af_afname, af_afpath, af_aftype, af_afuser, af_setarchpath, af_version - miscellaneous AtFS functions
SYNOPSIS
#include <atfs.h>
char *af_afname (char *path)
char *af_afpath (char *path)
char *af_aftype (char *path)
Af_user*af_afuser (uit_t uid)
char *af_setarchpath (char *path)
char *af_version (void)
DESCRIPTION
The functions af_afname, af_afpath and af_aftype extract name, syspath or type from a given (operating system dependent) file identifica-
tion. In an UNIX environment, a given pathname of the form
/usr/lib/libatfs.a leads to afname libatfs, afpath /usr/lib and aftype a.
If no path (eg. otto.c), or no type (eg. /usr/hugo/Makefile) is given, the corresponding routine returns an empty string. A period as
first character in a filename is always considered to be part of the name (e.g. .cshrc has the name .cshrc and an empty type string). "."
and ".." are recognized as names. Archive file extensions and AtFS specific path extensions are stripped from the resulting name resp.
pathname.
Note: af_afname, af_afpath and af_aftype use static memory for the returned results. Subsequent calls of the same function overwrite for-
mer results.
af_afuser returns an AtFS user identification which consists of the login name of the user identified by uid, the current host and the cur-
rent domain. Uid_t is defined according to the return type of getuid (2) on your system. The Af_user type has the following structure
typedef struct {
charaf_username[MAXUSERNAMELEN];
charaf_userhost[MAXHOSTNAMELEN];
charaf_userdomain[MAXDOMAIN+1];
} Af_user;
af_setarchpath defines the location of the AtFS archive files. A nil-pointer given as path-argument clears the former setting of the global
archive path. af_setarchpath returns the old global archive path. Initially, no global archive path is set. In this case, all archive
files are stored in a subdirectory called AtFS, relative to the directory where corresponding busy version resides.
af_version returns a string that names the version and the creator of the currently used AtFS library.
SEE ALSO
getuid(2)
AtFS-1.71 Fri Jun 25 14:33:12 1993 af_misc(3)