由买买提看人间百态

topics

全部话题 - 话题: cshrc
1 2 下页 末页 (共2页)
i***y
发帖数: 2
1
来自主题: Unix版 - .cshrc file
What language does the .cshrc file use? I cannot understand
it well. What book or article can teach me to learn it?
Thanx.
r*e
发帖数: 112
2
I abused 'chmod' today to my whole directory
say: foo is my home directory
I use : chmod -R 777 foo
after that, I can't smothly login into the server,
every time it saids: Glob aborted - Permission denied.
and then I set the attributes of .cshrc file to be 755,
but it still doesn't work. :( "Permission denied" always exists.
Any idea , suggestion?
Tx!!
//sigh , never try to use this command later.
s***s
发帖数: 1841
3
来自主题: Unix版 - .cshrc?.login?.profile?
C shell, .cshrc
K shell, .profil
j***y
发帖数: 87
4
来自主题: Unix版 - .cshrc?.login?.profile?
for csh, tcsh, .cshrc and .login are executed
for ksh, bsh, bash, .profile and .login are executed.
But I think bwang's question has some ambiguity. If he just wants to execute
some command once in one session, like xhost +font under an X environment,
then he shouldn't add entries in these startup files.
instead he should check what kind of session manager he is using and modify
the corresponding script, like .xsession and so on.
j***y
发帖数: 87
5
来自主题: Unix版 - .cshrc?.login?.profile?

For Irix, everytime you open an xterm window, a login shell will be invoked,
so it will execute .login once more.
In theory, for irix6.5, you can add a file .sgisession under your home
directory, which will be executed only once for each session. But in practice,
sometime, it doesn't work at all.
So my way is still to add something in .cshrc or .login, but everytime I will
measure if it's first time to be executed.
say, if I only want to call xset +path once, then I add the following script,
se
s****a
发帖数: 260
6
来自主题: Unix版 - 一个unix .cshrc的wenti
如何设置:
按住方向键找到以前使用过的命令,即找到history中想要的命令。
unix本身提供了一些命令:
如!! !n !-n !string等,
但是不如方向键好用,不知道在cshell下如何写.cshrc文件,
请高手指教,谢谢
o***n
发帖数: 72
7
just noticed this. when set an alias in .cshrc or other .files,
such as "alias lsls 'ls -ld '", and if I write a shell file
which has something like "lsls", the shell complains that
no such command found. the thing is if I run "lsls" without
including it in a shell file, then it works.
how to solve this problem?
s******n
发帖数: 11
8
来自主题: Unix版 - 求助
mv .cshrc .cshrc.bak
重新login
然后再怎么加的怎么去掉那个setenv
mv .cshrc.bak .cshrc
. .cshrc
c**t
发帖数: 2744
9
以下所列在 ftp.ifcss.org 上能找到.
欢迎补充,让所有新手受益.
cnprint ---- 重新编译,将执行文件放入 ~/bin;
cnprint.cmd 和字体文件放入 ~/xfonts/hbf
在 .cshrc ([t]csh)中设置 setevn HBFPATH="$HOME/xfonts/hbf"
source .cshrc
gb2ps ---- 需要 csong24.ccf 等字库文件,还要什么劳什子 cover.ps, 都放到
~/xfonts 目录下,然后在 .cshrc ([t]csh)中设置
setenv CFONT="$HOME/xfonts/"
setenv COVERPAGE="SHOME/xfonts/"
hz2ps ----
l********l
发帖数: 148
10
来自主题: Unix版 - 傻傻的:打印机文件放在哪?
in ur .env or .cshrc file
add the following line
LPDEST printername
then when the next time u open an xterm, the default printer will be set
to the "printername"
or you directly source that .env or .cshrc file
(if u want to modify your .env file, make sure
your .cshrc file source the .env file)
g*g
发帖数: 6908
11
来自主题: Linux版 - linux tcsh下less的问题
奇怪的问题,以前没碰到过
我.cshrc里有几行echo, 一运行less,就显示这几行echo的结果,而不显示文件内容
。less需要先调用.cshrc吗?不记得有这回事了。把那几行echo给注释掉,less就正常了
我试了另外一台solaris的server,好像没有这问题。
怎么回事呢?谢谢指教
b****n
发帖数: 865
12
查明白了.
我用csh, 这样用less命令时就会只显示.cshrc的结果, 为了绕过这个问题,
我在.cshrc里加了一句:
setenv SHELL "/bin/csh -f"
结果less好用了, KDE Konsole悲剧了...
没办法, 只好改回来, nnd
r*g
发帖数: 186
13
来自主题: Linux版 - 小白问个csh的问题
我以前一直用bash
最近因为公司默认shell是csh, 不得不开始学习csh
大概问题是这样的:
由于我没有root权限, 所以我都是在$HOME下面建立一个.pseudo_root
然后在这个$HOME/.pseudo_root下面有usr/bin usr/lib之类的
然后自己安装软件都是--prefix=$HOME/.pseudo_root/usr
以前从来都没啥问题
由于这样的设置, 一般要把LD_LIBRARY_PATH加一个$HOME/.pseudo_root/usr/lib
我在.cshrc中设置:
1. set LD_LIBRARY_PATH in .cshrc as:
setenv LD_LIBRARY_PATH ${HOME}/.pseuso_root/usr/lib:${LD_LIBRARY_PATH}
然后打印$LD_LIBRARY_PATH也的确表现正常:
echo $LD_LIBRARY_PATH
/home/anhong/.pseuso_root/usr/lib:/grid/sfi/lsf/cvalsf01/9.1.1/linux2.6-
glibc2... 阅读全帖
m*****e
发帖数: 207
14
来自主题: Unix版 - 可以看别人的环境变量?
if I have permission to read your .cshrc
then just
source ~weijing/.cshrc
printenv
P****r
发帖数: 140
15
due to the NIS service, i can not install
the gcc in the /usr/local as usual,
so it was installed in /opt/sfw
when i tried to complie the DDD, ( ./configure had no question)
i got the error message "fatal error: can not find libncurses.so.4"
i could find this file in /opt/sfw/lib
but the ./configure cannot work this path out
i remembered that there is something like "libpath" in the file
.cshrc,
can any DaXia help me how to set the path of library in the .cshrc
or anything else?
thanks million
m*******m
发帖数: 182
16
来自主题: Unix版 - Enviroment Config Help
I dont think so. csh doesnt have command line editor. Its
history
substitution is via event specifiers, ie, !!, !n, !str, !#,
etc. tcsh shell
has this general purpose command line editor as a major
enhancement over
csh. See `man csh` and `man tcsh` for the detail
differences.
Some sysasms just alias csh to be tcsh. This may be the
source of confusion
too.
tcsh reads .cshrc and .tcshrc at startup, while csh only
reads .cshrc.
csh command completion is via ESC rather than TAB in tcsh,
and by
z*******o
发帖数: 4843
17
来自主题: Unix版 - 求助
因为不熟悉unix,在.cshrc里加了一个setenv path /usr/java/bin然后重起
之后,发现连ls这种命令都不能用了。提示说command not found
可是pico也不能用,没法去改回.cshrc,请问如何解决
i***e
发帖数: 3219
18
来自主题: Unix版 - 求助
try "/usr/local/bin/pico .cshrc" provided your pico is intalled
in /usr/local/bin.
or try "/bin/vi .cshrc" if you know to use vi.
m**u
发帖数: 632
19
来自主题: Unix版 - 急:ld.so.1的问题
在solaris下用g++编译x.cpp生成x, 运行时出错:
ld.so.1: x : libstdc++.so.2.10.0 fatal: no file or directory.
我知道应该加LD_LIBRARY_PATH,于是在.cshrc中:
setenv LD_LIBRARY_PATH=/opt/sfw/lib
因为libstdc++.so.2.10.0在此目录下,但运行出同样的错
我以前搞定过,后来重新装系统,原来的.cshrc没了,我用 c shell
大家看看什么原因,是要export吗,该怎么export呢
我用export LD_LIBRARY_PATH 但总是说export:unknown command
难道PATH不对?
多谢
A**A
发帖数: 3392
20
来自主题: LosAngeles版 - 急问个 ubuntu 下 Terminal 的问题
不知道是不是前两天安装设置 tcsh之后没搞对,现在开Terminal, 没有$ 或者# ,只有
XXX:~> 这个样子的符号,敲入命令结果都显示: Command not found
和 .cshrc 里的代码没关系吧?
是怎么一回事呢?怎么fix?
Thanks in advance
A**A
发帖数: 3392
21
来自主题: LosAngeles版 - 急问个 ubuntu 下 Terminal 的问题
赫赫,多谢,刚才在别的版面问到了。重写了一遍 .cshrc 就好了。
c**x
发帖数: 432
22
来自主题: BUPT版 - Help

真是费力不掏好。。。
我这有个网址,自己去下载吧。
http://www.ifcss.org/ftp-pub/software/x-win/cxterm/
哼。。。
可能要编译一下,
然后再配置一下。。。
在.cshrc中加:
source /usr/usc/X/X11R5/cxterm/default/setup.csh
setenv XENVIRONMENT /usr/usc/X/X11R5/cxterm/default/dict/CXterm.ad
xset fp+ /usr/usc/X/X11R5/lib/X11/fonts/local
不一定全对,事事啦。。。
嘿嘿。。。
s*********t
发帖数: 99
23
来自主题: Apple版 - 问个texshop的问题
装的mactex, .cshrc里面设了alias tex 'open /Applications/TeX/TeXShop.app'
然后从command line里面type tex, open以后immediately quit. 然后在report里面看
见如下的details. 大家帮忙看看到底是出了什么问题,该怎么解决.多谢了.
ps: 这个时候click Reopen, 或者是从application里面直接打开texshop就都是正常的.
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Date/Time: 2007-06-18 20:14:48.796 -0700
OS Version: 10.4.9 (Build 8P135)
Report Version: 4
Command: TeXShop
Path: /Applications/TeX/TeXShop.app/Contents/MacOS/TeXShop
Parent: WindowServer [59]
Version: 2.10beta
k******g
发帖数: 1540
24
http://www.tuaw.com/2012/11/28/setting-up-mountain-lion-12-geek
2. Disable Window Zooms
I don't know which Apple Engineer came up with the idea that OS X should
include a window zooming effect but I bear nothing but animosity for this
person. Fortunately there is a solution.
defaults write NSGlobalDomain NSAutomaticWindowAnimationsEnabled -bool NO
Death to zooming windows!
3. Update my Hosts
I think it was either TJ Luoma or Rich Gaywood who first introduced me to
somebodywhocares.org and its cu... 阅读全帖
g*g
发帖数: 6908
25
来自主题: Linux版 - linux tcsh下less的问题
没用alias
看了看这个lessFAQ。奇怪的是我以前都没碰到过。
Why are there problems if my .cshrc, .profile or ENV files produce output?
Like some other programs, less invokes the shell to perform certain
operations, such as expanding special characters in filenames. It does this
by invoking a shell program and reading the program's output. If the shell
itself produces output, this interferes with the output coming from the
program that less is trying to read from. This problem is not unique to less
; for example, if you
w*****9
发帖数: 346
26
能否说详细些。。。。。把这行加到cshrc文件里吗?
E*V
发帖数: 17544
27
weird
for csh/tcsh
put
set path = ( $path /your/own/path . )
into your .cshrc /.tcshrc
then re-login
it should work
I just tested on Ubuntu.
are you using bsd?
a*******e
发帖数: 3021
28
来自主题: Linux版 - samba force file permission
补充一个可能大家都知道的
umask可以更改用户默认的常见文件/目录权限
The default file permissions (umask):
Each user has a default set of permissions which apply to all files created
by that user, unless the software explicitly sets something else. This is
often called the 'umask', after the command used to change it. It is either
inherited from the login process, or set in the .cshrc or .login file which
configures an individual account, or it can be run manually.
Typically the default configuration is equivalent to typing 'u
b*****e
发帖数: 223
29
来自主题: Linux版 - 新手问个问题
我在 .cshrc 里设置了彩色的 prompt,怎么到了其他路径(非 home),我设的 prompt
就没了,又回到 default 的黑白 prompt?
g*******n
发帖数: 31
30
来自主题: Linux版 - 如何设置.cshrc文件
安装了一个软件在linux上,但是不知道如何配置文件去读license。
p**v
发帖数: 853
31
i use tcsh, and i have this in my .tcshrc
set autolist=ambiguous
then press tab to show commands, files, etc.
for csh, you may need to set filec in your ~/.cshrc file.
x****s
发帖数: 921
32
来自主题: Linux版 - 小白问个csh的问题
typo in your cshrc setenv?
.pseuso_root vs .pseudo_root
c*****t
发帖数: 1879
33
来自主题: Programming版 - how to program a shell extension
想必你是想在执行你这个 shell 的时候,已经有一些指令。这个
可以在这个 shell 的 .profile, .cshrc 等修改。或者将你指定
的 directory 放在所有的 path 前,这个只需要在执行那个 shell
的 environmental variable 里改就行,更简单。某些 shell 还
可以锁定哪些 environmental variable 不能被修改。
如果你是从安全角度来看,比如让用户只能看到某些 directory,
只能执行某些指令。这种情况下使用 restricted shell 。这个
你要看各个 restricted shell 的功能。
p*u
发帖数: 2454
34
来自主题: Security版 - X-Win32一问
使用学校的软件,分别是putty和x-win32。
putty用来login,x-win32让我在WONDOWS下
使用X中的图形界面,如emacs等。
现在的问题是我可以log onto学校的系统,并使用
图形界面。但是当我想ssh到实验室的LINUX机器,
并把DISPLAY设成我机器的IP:0.0,
就说cannot connect to X server。
请问如何设制?如何写.cshrc,谢谢。
w****n
发帖数: 241
35
来自主题: Software版 - Re: how to save the Matlab Path?
//ft matlab 不读 .cshrc 吧, 呵呵.....
在PC下, matlab/toolbox/local/pathdef.m 里有全部的 path..
h******a
发帖数: 198
36
来自主题: Unix版 - .cshrc file
c shell programming language
created by Bill Joy when he was a grad. at Berkeley
n*o
发帖数: 442
37
Say, if your printer's name is: jazzbaby
You used to type: lpr -Pjazzbaby yourfile.tag
If you add this line into your .cshrc file or .login file:
setenv PRINTER jazzbaby
You can just type: lpr yourfile.tag
to print the file out.
o******n
发帖数: 25
38
来自主题: Unix版 - kde的问题
我下载了KDE给我的SOLARIS 7. 不知道怎么,把那个.tar.gz文件解压缩
以后,出来的几个目录,看上去象安装完毕的样子.看上去
挺好,不用我亲自编译了. 直接键入kde,
出来几个错误信息,一看知道是库文件找不到.其实都在kde下面的
lib目录里面.以前也经常碰到这个问题,我采取的笨办法就是把
所有产生的库文件(.a, .so, ...)都考到/usr/lib里面去(我
有root的权限,但是不想把什么软件都装到root的目录里去).但是现在
/usr的partition已经装满了. 有没有什么办法让程序去按照我
规定的路径去找库文件呢?比如说在我的.cshrc或.login里面能
不能加两句? 怎么加呢?
s***t
发帖数: 115
39
来自主题: Unix版 - 只能cd了,5555
改了一下.cshrc,好象是把path给改了...
然后进入就只能cd了,其它命令一概不认....:(((
怎么办呢?难道要麻烦Admin?
s***t
发帖数: 195
40
来自主题: Unix版 - 只能cd了,5555
hehe look at other's .cshrc.
anyway, you should have saved a copy before any modification.
s***t
发帖数: 115
41
来自主题: Unix版 - 只能cd了,5555
I have a new .cshrc, but the problem is how can I update with the new one,
thinking I can do nothing but "cd..".:P
c*****t
发帖数: 1879
42
来自主题: Unix版 - 只能cd了,5555
source .cshrc
b****e
发帖数: 985
43
来自主题: Unix版 - 英雄,救命啊!!!
.cshrc里面加个爱你饿死
alias rm rm -i
每次rm就都会问你要confirmation,
误伤好人的几率就小多乐
a****y
发帖数: 1035
44
Thanks for the correction. I now put this in my .cshrc :
alias fn 'find . -name \!*'
The find * actually doesn't include .dir
b***g
发帖数: 4
45
来自主题: Unix版 - .cshrc?.login?.profile?
Can somebody tell me how are these files used?
I have a shell command which I only want to execute
once when I login. Which of these files should I put
it in?
Thanks.
t********e
发帖数: 880
46
来自主题: Unix版 - .cshrc?.login?.profile?
should be .login for csh bah
c*****t
发帖数: 1879
47
来自主题: Unix版 - .cshrc?.login?.profile?
You should man csh/ksh/tcsh, depending on the shell
used. There, hit '/' key to do a search on 'FILE'.
That should immediately bring you to the files used.
Usually, the man page will tell you the exact order
of the files being processed.
b***g
发帖数: 4
48
来自主题: Unix版 - .cshrc?.login?.profile?
I am using tcsh, if I put the command in .login, it will be
executed every
time I open a new xterm window. But on the man page, it says
that tcsh will
invoke .login only if the shell is a login shell. ???

This is what I want, however, I don't have a .xsession file
under my home dir
I am using Iris6.5, do you know which file should I modify?
su
发帖数: 149
49
一个login shell的environment variables可以在诸如
".login"或".cshrc"的scripts中设置。
CGI scripts通常是以nobody的身份运行的,
他们的environment variables应该在哪里设置呢?
比如说,怎样才能为所有的CGI scripts预先
设置好"Path"呢?
i*******n
发帖数: 166
50
来自主题: Unix版 - UNIX dummy Questions?

chsh
in .cshrc, e.g., set history=32
1 2 下页 末页 (共2页)