由买买提看人间百态

topics

全部话题 - 话题: tcsh
1 2 3 4 5 下页 末页 (共5页)
m****0
发帖数: 2236
1
It works, but I got lost.
max@desktop ~ $ tcsh
desktop:~> mkdir test\ space
desktop:~> echo $PATH
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr
/local/games
desktop:~> cd test\ space/
desktop:~/test space> cat > testrun.sh << EOF
? #!/usr/bin/tcsh
? echo "running tcsh!"
? EOF
desktop:~/test space> chmod +x testrun.sh
desktop:~/test space> cd ..
desktop:~> setenv PATH "/home/max/test space":$PATH
desktop:~> echo $PATH
/home/max/test space:/usr/local/sbin:/usr/local/... 阅读全帖
i**********r
发帖数: 36
2
I have a command working in the interactive mode
$tcsh -f -c "cd ~/HowTo/;grep -e '^Q:' *.QA"
now I want to make an alias like
alias listht tcsh -f -c "cd ~/HowTo/;grep -e '^Q:' *.QA"
but obviously it won't work, since tcsh will strip the "s.
though in this particular case I can omit the inner ' and use ' to escape ",
but sometimes you need to escape both, then how can you do that?
thanks!
n****e
发帖数: 135
3
来自主题: Unix版 - 怎样改成tcsh?

Thanks. We use AFS.
I added this in .cshrc
if ((-x /usr/bin/tcsh) && ($?prompt) && (! $?tcsh)) then
exec /usr/bin/tcsh -l
set prompt =%m %~:"
end
Don't understand the details..hehe
p**v
发帖数: 853
4
来自主题: Unix版 - how can I change csh to tcsh or bash
if just want to try tcsh or bash, just key in
tcsh or bash(maybe bsh). permanent change, then
use chsh /bin/tcsh depends on the actual path.
y***u
发帖数: 5243
5
来自主题: Apple版 - 分享--Mac OSX的tcsh
默认的terminal是用bash。说实话苹果这个bash实现很一般。用习惯了现代Linux的
shell,恨不得要吞了mac这个
不过偶然发现,他们有tcsh实现的。在
Terminal->Preference->Startup里面,Shells open with:选 Command(Complete path
):,填/bin/tcsh
嗯,世界清净啦
f********o
发帖数: 1163
6
【 以下文字转载自 Linux 讨论区 】
发信人: frankliuao (frankliuao), 信区: Linux
标 题: TCSH里怎么用setenv把一个带有空格的路径加给$PATH? (转载)
发信站: BBS 未名空间站 (Mon Oct 7 20:08:17 2013, 美东)
发信人: frankliuao (frankliuao), 信区: Unix
标 题: TCSH里怎么用setenv把一个带有空格的路径加给$PATH?
发信站: BBS 未名空间站 (Mon Oct 7 20:08:01 2013, 美东)
setenv PATH ${PATH}:"/Applications/VMware Fusion.app/Contents/Library/"
不work。。。
b**s
发帖数: 67
7
来自主题: Unix版 - Change shell to tcsh?
Usually I use bash, but this machine doesn't have
bash. The only sensible alternative is tcsh.
How can I change default shell to tcsh from csh?
Thanks.
s**n
发帖数: 449
8
来自主题: Unix版 - 怎样改成tcsh?
if you are using NIS+, try:
nistbladm -e shell=/usr/local/bin/tcsh '[name=needle],passwd.org_dir'
put your login name instead of needle as name. and change path for tcsh
if necessary.
e***e
发帖数: 38
9
来自主题: Unix版 - [转载] using ssh in tcsh script
【 以下文字转载自 Linux 讨论区 】
【 原文由 exihe 所发表 】
the file content:
**************************************
#! /bin/tcsh
ssh -T machinename <<**
****************************************
when I execute, I got the following error
Warning: no access to tty (Bad file descriptor).
Thus no job control in this shell.
Can anyone tell me what is wrong? Thanks
ps. my default shell is tcsh
m*******e
发帖数: 28
10
来自主题: Apple版 - 分享--Mac OSX的tcsh
linux 下是 chsh (for change shell) if I remember correctly.
I think bash is much more popular than tcsh, though.
I have not used any advanced functions of mac's bash, because I alway ssh to
other linux machine, so I only need the most basic functions in mac's bash.

path
a****9
发帖数: 418
11
比如bash里面,可以TERM=screen screen来调用screen并把TERM设置为screen传递给
screen
但是从screen反回后TERM依然是全局设置
请问tcsh里可以作同样的事情么?我google了一会没找到。
qt
发帖数: 9432
12
google了半天,依然不得要领。我是想设mac osx下的tcsh shell,到底一个 .cshr文
件里面要有哪些命令?
不好意思是计算机小白,不知道用的术语准不准确。
p**v
发帖数: 853
13
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.
f********o
发帖数: 1163
14
【 以下文字转载自 Unix 讨论区 】
发信人: frankliuao (frankliuao), 信区: Unix
标 题: TCSH里怎么用setenv把一个带有空格的路径加给$PATH?
发信站: BBS 未名空间站 (Mon Oct 7 20:08:01 2013, 美东)
setenv PATH ${PATH}:"/Applications/VMware Fusion.app/Contents/Library/"
不work。。。
f********o
发帖数: 1163
j**e
发帖数: 15
16
来自主题: Unix版 - tcsh question II
THX for all the answers.
I cannot find "chsh" in SunOS?! That's amazying! And HP UX
doesn't support tcsh!
I love Linux now. :)
BTW, I thought csh didn't support UP key command recall, but
csh under Linux does.
s**i
发帖数: 30
17
with the -E option more than one patterns can be specified
with new line character in between. This works well in bash,
but I can't get it work in csh or tcsh. After I hit enter,
seems the shell will think the command has finished.
How to deal with this?
w**n
发帖数: 88
18
来自主题: Unix版 - 怎样改成tcsh?
add "exec tcsh" in your .login file.
l***r
发帖数: 459
19
来自主题: Unix版 - how can I change csh to tcsh or bash
Greetings,
Now I am using csh on Solaris. I wonder how I can change csh to tcsh?
Thanks!
m****m
发帖数: 165
20
来自主题: Unix版 - how can I change csh to tcsh or bash
If you don't have administrative right, you can always add
. /bin/tcsh (for example)
into you .cshrc file.
d*******k
发帖数: 41
21
来自主题: Unix版 - how to make Del work under tcsh/csh?
the special keys Del, End, Page Up/Down and Insert
don't work at all in tcsh/csh command lines. they
always give out character ~ in the command lines.
is there any way to config the key mapping and make
all these keys work normally, for example, like the
way they do under bash
thanks
m*******m
发帖数: 182
22
来自主题: 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
h******a
发帖数: 198
23
来自主题: Unix版 - how to let awk not print?
csh/tcsh deemed harmful for programmers.
! has many special meanings in csh/tcsh.
if you try them in csh/tcsh, you will know
F***Q
发帖数: 6599
24
来自主题: Unix版 - 生成script文件的问题
我想生成一个最简单的script文件,就是改变一下当前目录,比如
nedit tome
然后键入
#!/bin/tcsh
cd /afs/thayer/nmlhome/fangq
然后保存文件,
chmod +x tome
然后执行的时候什么都不显示,也没有改变目录,
另外一个最简单的;例子:
#!bin/tcsh
echo $1
执行的时候也没有显示第一个参数,什么反应也没有,请问是什么原因?
俺是在aix的tcsh下
m*******m
发帖数: 182
25
来自主题: Unix版 - Enviroment Config Help
You guys are talking about tcsh, not csh. The key bindings
for hitsoty substitution and completion are enhancements
tcsh made over csh. So, run tcsh instead of csh.
r*****s
发帖数: 985
26
来自主题: Unix版 - Doskey function in UNIX?
both bash and tcsh should work.
use chsh to change your shell to bash/tcsh
or just type
%tcsh/bash
D****g
发帖数: 2860
27
来自主题: Apple版 - Re: Terminal 问题
not as good as tcsh, IMO. you can highly customerize that in tcsh.
check out tcshrc.sourceforge.net, a nice set of script.
c*a
发帖数: 806
28
其实我这个比的也不准确,应该是
windows <-> Gnome <-> Mac/OS
DOS (power shell?) <-> tcsh or any shell <-> bsd tcsh
b******r
发帖数: 79
29
来自主题: Linux版 - 问一个关于awk & shell的问题
有没有这样的问题: awk '{print some command}' | tcsh
tcsh 执行的command的顺序可能和print的顺序不一样?
谢谢!
l*f
发帖数: 218
30
来自主题: Linux版 - 求助 makefile编译
请教各位,unix里tcsh能当成csh使用吗?
我下载了一个完好的makefile编译的源代码,没有linux用cygwin代替编译,因为
cygwin里没有c shell,所以在makefile里把csh全部用tcsh替换,结果编译不了,我对
makefile又不熟悉,请各位帮帮忙,谢谢了
makefile:
# Makefile --- Top-level Makefile for 3D Alpha shape (core) software. ------
a**n
发帖数: 313
31
what you wrote obviously is not what you want according to your description.
I am not a tcsh expert, and wonder who really uses this shell seriously for scripting.
You can use other scripting language such as perl to write one which is more portable.
I can provide another version which is not exactly you want. Good luck.
#! /bin/tcsh
set count=0
foreach wordfile (*.doc)
set count=`expr $count + 1`
grep total $wordfile | awk -v name=$wordfile -v cnt=$count '($2 > 50) { com = sprintf("
w*****g
发帖数: 198
32
来自主题: Unix版 - which shell is best?
not sure why either
obviously tcsh and bash are the two most popular shells
i like tcsh more though :)
b***g
发帖数: 4
33
来自主题: 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?
l*l
发帖数: 225
34
来自主题: Unix版 - bash 彩色 shell prompt
采用执行代码转换的方式, 现在我的prompt 已经有各种颜色了.
tcsh的还没有想出办法来, tcsh prompt 不支持 unicode?
i**********r
发帖数: 36
35
来自主题: Unix版 - [转载] 请教高手
【 以下文字转载自 Linux 讨论区 】
【 原文由 interstellar 所发表 】
whenever I try to open a new xterm, or cxterm, a program ./test
is run automatically;
when I change its name to ./a.out, it is not run.
then I try to run a new tcsh, ./test is run;
but if I run tcsh -f, ./test is not run
i**********r
发帖数: 36
36
来自主题: Unix版 - 请教CRON DEAMON
高手请看过来!
I have a tcsh script which calls a perl program which again call
system("xterm -fn 10x20 -e vim $title.html&");
$title is a string obtained in perl program.
this tcsh script works fine when I run in interactive mode. But when I
use cron daemon to call it, the system(...) won't be executed, the rest
part gives the desired results, though. The daemon email me about it, saying
sh: xterm: command not found
then I change the system(..) to
system("/usr/bin/X11/xterm -fn 10x20 -e vim $title.htm
c*****t
发帖数: 1879
37
来自主题: Unix版 - login shell and normal shell?
login shell and the normal shell are almost the same.
On most systems, they use the same command executable.
If sh/csh/tcsh were run as the login shell, they would
modify their process name in memory to -sh/-csh/-tcsh.
s***t
发帖数: 195
38
来自主题: Unix版 - hotkey in unix
you don't need root, on most system, you can change your login shell by
$ chsh
or you can use tcsh by typing
$ tcsh
p*a
发帖数: 592
39
来自主题: Unix版 - XEmacs Shell 问题
我用的是XEmacs20.4
在Emacs里起tcsh shell,发现每次打command line命令,
都会被echo一遍很是讨厌,如果用bash就没这个问题,
但是一定要用tcsh,所以没办法在newsgroup查了查,
有人说放一句stty -echo到.emacs_tcsh里去可以去掉
这个echo,我试了果然可以但又有了新问题它把字的颜色
改成了一种蓝色看起来很是费眼神我想把它设成黑的,该怎么办?
c***i
发帖数: 188
40
ok,then i understand. i used to use tcsh in school, but now the damn company
dont have tcsh installed.
r********s
发帖数: 179
41
[6:19pm] echo $SHELL
/bin/tcsh
[6:20pm] alias prsth 'echo "It Works"'
[6:20pm] cat > xixi.csh
#!/bin/csh
prsth
[6:21pm] chmod +x xixi.csh
[6:21pm] ./xixi.csh
prsth: Command not found.
[6:21pm] cat > xixi.csh
#!/bin/csh
alias prsth 'echo "It Works"'
prsth
[6:28pm] ./xixi.csh
It Works
**********
From the above test, we can see this might be the case touchsoul got stuck in.
i.e., even when you are using csh/tcsh, yo
D**e
发帖数: 10169
42
你得拿定主意到底用什么壳。别一会C壳一会SH壳的。
the first line of your script specifies the shell which will be used by this
script.
#!/bin/sh
#!/bin/csh
#!/bin/tcsh
change the first line of your script to csh or tcsh. alias will work but other
things may
start crashing.
e******r
发帖数: 220
43
来自主题: Unix版 - a puzzle!!
what is the meaning of this little shell program? Please help me.
Especially, what is the function of "tcsh" command?
echo "begin $*"
if ("$1" != "")then
shift
tcsh script.sh $*
endif
echo "end"
fi
L******r
发帖数: 199
44
来自主题: Unix版 - Classpath setting question
【 以下文字转载自 Linux 讨论区 】
发信人: LordBear (LordBear), 信区: Linux
标 题: Classpath setting question
发信站: BBS 未名空间站 (Mon Jun 25 22:30:29 2007), 转信
一脚本,同一RH服务器,老板连过去没问题,我就跑不了:
老板说Check your CLASSPATH and location of java - should be
/aa/app/jdk1.6.0_01/bin/java
$ echo $SHELL
/bin/tcsh
我的默认Shell是tcsh,我在/etc目录下修改了.bashrc,但是一点用处没有。
set JAVA_HOME=/aa/app/jdk1.6.0_01/bin/java
export JAVA_HOME
set PATH=$JAVA_HOME/bin:$PATH
export PATH
set CLASSPATH=.:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar
export CLASSPAT
m*********k
发帖数: 10521
45
来自主题: WBCenter版 - 申请代发包子
"[Military]
TempBM Aug 15 ● 庆祝抗日战争胜利发包子"
成功奖励 80 伪币的用户: acrophoenix, darkangel, vvyp, ssgo2008, niuniuyaya,
ll111, kakapo, watercrane, llttjr, anura, DongHan, psittacipal, tcsh, wqdv,
bxfziq92529, wxx033000, ipeb, PhoenixWoman, fedehen, ElIiottJr, PageA,
windelfqian, auger, nkdd, OXGBIX, Biofuel, umner, cq, Coralreef, moss,
gj2009, newblue, spiritys, caoyu, feqphf9, sen, chnld, JamesJerry,
fjbsf88800, mitbbsyy, iPhone8, oriolechao01, Satine, curvlet, biokold,
cofaky895, rabbit1978, wangxi... 阅读全帖
T****M
发帖数: 1913
46
来自主题: Military版 - 申请代发包子
【 以下文字转载自 WBCenter 讨论区 】
发信人: TempBM (Temp), 信区: WBCenter
标 题: 申请代发包子
发信站: BBS 未名空间站 (Fri Aug 17 02:05:55 2012, 美东)
注:1)版面活动:手续费无;2)个人申请:手续费10%:
代发版面/ID:
Military
代发事由(主题标题及链接):
庆祝抗日战争胜利发包子
http://mitbbs.com/article_t/Military/38190413.html
赞助(有:附链接,没有:无):

楼主是否计入统计:

奖励金额:
截止17日0点,每个不重复回帖ID奖励20WB,另有额外奖励,每个80WB,名单见后边,
有180位。总计大概34000伪币左右
备注:
acrophoenix
darkangel
vvyp
ssgo2008
niuniuyaya
ll111
kakapo
watercrane
llttjr
anura
DongHan
psittacipal
tcsh
wqdv
bxfziq92529
wxx033000
ipeb
PhoenixWoman... 阅读全帖
T****M
发帖数: 1913
47
来自主题: Military版 - [合集] 贺新春,送祝福,奔年味
☆─────────────────────────────────────☆
TempBM (Temp) 于 (Fri Feb 8 17:34:49 2013, 美东) 提到:
新春佳节,祝福各位网友阖家辛福,心想事成!
照例发放包子,但是也有要求:不能少于20字,RE、DING不算,可以送祝福,也可以随
意说说和春节过年有关的事。每个不重复ID奖励2个大粽子。
如果有质量较高、或者奔照片(带有年味的,例如年夜饭等),额外再奖励1个。
活动截止时间:美东时间 2月11日 00:00:00前
☆─────────────────────────────────────☆
Acartia (深水鱼) 于 (Fri Feb 8 17:38:49 2013, 美东) 提到:
天公作美,大风雪暴留人在家,不用上班,东部今年过得美呀

☆─────────────────────────────────────☆
yyman (yy) 于 (Fri Feb 8 17:41:42 2013, 美东) 提到:
恭喜发财,身体健康,今天暴雪不用上班,在家炒股,小赚,... 阅读全帖
a****g
发帖数: 3027
48
第一门计算机课是FORTRAN,号称是数学计算快。
第二门计算机课是C,号称流行。
听说计算机系学的是PASCAL,号称是语法严谨。当时看了看,觉得太啰嗦。
还是C简单。就是当时的Windows(还是DOS下的?记不清楚了)edline命令行式编辑器
,用的要吐血,后面的C语言出来了Turbo C, 2.0版本竟然可以鼠标上下移动,直接编
辑文件,感觉到太高效率了。另外,学校大机房80x86 (x = null, 2,? 记不清了)额
外上机要一个小时一块五毛,太贵了,虽然自己有额外免费的100小时,要折腾点啥,
即使有其他系的特殊集训班的某些同学不喜欢电脑,免费转赠了一些机票,也还是不够
用。
眼界浅1:
保送专业随便选,排除了计算机,一台要1万8千块,当地正式编制的双职工,好吃好喝
的,一年家庭收入接近1000块,要20年不吃不喝才能买一台,觉得计算机是奢侈品,没
多少买,也没有多少工作。
眼界浅2:
学了C语言编程调试太无聊,就是体力活,当时看不出来软件又啥前途。
读硕时,机器是非常快的,就是用个C语言写算法main() { },对编程越是觉得
无味。
眼界浅3:
工作了,在软件... 阅读全帖
i******4
发帖数: 20643
49
☆─────────────────────────────────────☆
NewEgg (驻驴观花|落英缤纷 落雪缤纷 尘缤纷土缤纷) 于 (Mon Jan 23 00:00:05 2012, 美东) 提到:
看了春晚开始的2012龙舟logo,我突然明白,原来2012,华人都fine,
因为在龙身上稳着呢,大家从出生的那一天,都已经拿到了2012的船票:)
2012,祝愿龙的传人都平安幸福,心想事成
2012,祝愿mitbbs这个海外华人的绿洲欣欣向荣
2012,祝愿ebiz这个众JS腾云驾雾大展身手的地方,也宝光祥瑞,和气生财
2012,让我们从龙年新春大吉包开始,1/id,截止时间1/23/2012 23:59:59 (以bbs系
统时间为准)
__
http://mitbbs.com/article1/WBCenter/12532167_3_0.html
☆─────────────────────────────────────☆
FIBA (飞吧) 于 (Mon Jan 23 00:00:23 2012, 美东) 提到:
沙发

☆────────... 阅读全帖
b******r
发帖数: 79
50
来自主题: JobHunting版 - 请教linux下如何stop many processes?
this is what I always do :P
ps -aux | grep sth | awk '{print "kill -9" sth}'| tcsh
1 2 3 4 5 下页 末页 (共5页)