w*****n 发帖数: 94 | 1 The '-' of the process names of shells are not added by
themselves. They are given by the process who invoked
shells, indicating that they should act as login shell.
This effect can also be enabled by command-line options,
-login for bash, or -l for tcsh. |
|
p**v 发帖数: 853 | 2 not sure of your goal, but $? might work.
i am using tcsh. |
|
o**a 发帖数: 86 | 3 i was using bash. i have tried csh, tcsh, and ash.
all work with it. |
|
c*****t 发帖数: 1879 | 4 csh or tcsh:
p1 |& p2
sh:
p1 2>& 1 | p2 |
|
|
t**c 发帖数: 97 | 6
suppose you are using tcsh
alfter log in, type "set autologout=0"
or add this command in your .cshrc(.tcshrc) |
|
X****r 发帖数: 3557 | 7 I usually use this, but I bet there's a better way doing so
(assuming tcsh)
foreach file ( sige* )
mv $file `echo $file | cut -c -4`.`echo $file | cut -c 5-`
end |
|
|
ft 发帖数: 106 | 9 tcsh, bash, ksh......
a lot of shells do that. If you are root on your machines, edit your
/etc/passwd file. :-) |
|
m*****e 发帖数: 4193 | 10
chsh changes /etc/passwd.
Not really. You can use sth like "exec tcsh". It will replace the current
shell. If you can't use chsh or the sysadmin is not very friendly, you can
do it this way. |
|
p*a 发帖数: 592 | 11 on sun os, using tcsh,
hitting tab won't show me anything unless there's a unique
match. As I remembered it should not be like this, it should
show me all matching file names. Do I need to set sth? |
|
n****e 发帖数: 135 | 12 土问题...
是不是要.cshrc加什么?
多谢. |
|
|
n****e 发帖数: 135 | 14 学校的机器,我想一login就是tsch,而不用
每次login之后打tsch. 操作系统是Soloris 8. |
|
r***o 发帖数: 1526 | 15 how to check if NIS+ is installed? |
|
s**n 发帖数: 449 | 16 check your:
/etc/nsswitch.conf
/etc/nsswitch.files
/etc/nsswitch.nis
/etc/nsswitch.nisplus
if nsswitch.conf == nsswitch.nisplus, then using NIS+. etc. |
|
f******r 发帖数: 45 | 17 先打开一个xterm,后在打开的xterm里ssh or telnet到远程服务器。怎么写这样的tcsh
script? thanks a lot!! |
|
e***e 发帖数: 38 | 18 @echo off does not work for me(tcsh)
Thanks |
|
w**n 发帖数: 88 | 19 csh/tcsh: setenv LD_LIBARY_PATH $LD_LIBARY_PATH:/usr/local/lib
bourn:
LD_LIBARY_PATH=$LD_LIBARY_PATH:/usr/local/lib
export LD_LIBARY_PATH
在 netview (Net Viewer) 的大作中提到: 】 |
|
|
m***m 发帖数: 67 | 21 每次login 后,先敲 tcsh (I usually use bash) |
|
f*******d 发帖数: 339 | 22 use tcsh, type chsh to change your shell. |
|
s****e 发帖数: 36 | 23 try chsh..
or edit the /etc/passwd file.. |
|
l****y 发帖数: 18 | 24 on Linux, u just need update passwd.
on *BSD , u need update the db file, not plaintxt file passwd
I don't know how about Solaris :-)
br /> |
|
|
o***z 发帖数: 133 | 26 there's a built-in time command in tcsh
did you try
/usr/bin/time -V |
|
T***B 发帖数: 137 | 27 Thanks. My shell is tcsh.
And the following command works:
/usr/bin/time -o tracktime ./a.out > output
cause |
|
p**v 发帖数: 853 | 28 加了,没用啊!
tcsh, .cshrc中
set path=($path $HOME/bin), 我的binary在$HOME/bin里,但用
which binary 时,仍然显示旧的binray path, 到底应该怎么加
这个path 呢? 用了alias, 虽然which时是对了,但是whereis 时
还是旧的。怎么能彻底地把旧命令的一切都覆盖呢?
谢谢给予更详细的说明。 |
|
i*******n 发帖数: 166 | 29
sth like
#!/bin/tcsh
ls
echo "enter the file name"
vi $< |
|
i*******n 发帖数: 166 | 30 #!/bin/tcsh
ls mit/bbs/unix/shell
echo "enter the file name"
vi mit/bbs/unix/shell/$< |
|
D**e 发帖数: 10169 | 31 use csh or tcsh. alias won't work in sh. |
|
D**e 发帖数: 10169 | 32 it must work.
try this(that is single qoute, not back-qoute):
#!/bin/tcsh
alias t 'ls -1'
t;
this
other |
|
q*****m 发帖数: 73 | 33
I posted this on Linux board:
for sh/bash,
%time cat filename 2> time.out
for csh/tcsh/bash
%(time cat finename) >& time.out
Does this work for you? |
|
x***o 发帖数: 2 | 34 In csh/tcsh scripts, I use
set basename = $1:r
to obtain the root name of $1.
What's the equivalent in sh/bash scripts?
Thanks. |
|
T***B 发帖数: 137 | 35 Thanks.
I am using tcsh. I will move to sh to try your advice.
want
have |
|
a*******s 发帖数: 324 | 36 I use tcsh.
sed -e /[0-9]/d filename
don't know how to just use only line to do it.
don't know how to just use only line to do it.
I don't know how to easily express non-capital alphabetical character
in "sed".
Is "grep" acceptable?
grep "^[A-Z]" filename |
|
l******t 发帖数: 108 | 37 echo $shell
is that what you want?
just checked, only works for csh and tcsh, not for ksh, sh.
don't know about others. |
|
A***e 发帖数: 130 | 38 that's for tcsh, for bash, echo $SHELL
a simple way is just type ps, if you do not have too much process on
your current terminal |
|
l*****k 发帖数: 587 | 39 I am using a AIX machine, however, a lot of unix flavors are
not in the shell(I use C shell, no tcsh installed)
first, I can't use tab to auto complete file name
I wrote set filec in .cshrc and soured it, no effect.
second, I can't use up/down arrow to browse commands history
How can I fix it? should I tell the root to do something? (he knows
little about unix, but I can't just tell him that)
Best |
|
c*****t 发帖数: 1879 | 40 The features you talked about are for tcsh...
csh does have file name completion, but instead of using tab, use Esc.
csh has command history name substituion scheme. For instace, !!
means the previous command. !g means the previous command that starts
with g. There are more advanced stuff which you can read from csh
man page. |
|
|
d****t 发帖数: 26 | 42 What kinds of script is it?
The default shell of linux is bash.
If you change the shell of linux system,
(csh, tcsh,...), the script might work.
"man chsh" for more information
There are Solaris for PC and freeBSD for PC. |
|
b*d 发帖数: 75 | 43 bash 是不是改用 2> 压?
欧 >& 都是给tcsh什么的用的 |
|
s**s 发帖数: 242 | 44 偶的bash就是这样用的,刚试了csh这样也行,sh不行
bash 是不是改用 2> 压?
欧 >& 都是给tcsh什么的用的 |
|
q*****m 发帖数: 73 | 45 Then try to split the file, You can do it in Fortran, C, C++, c-sh,
tcsh, bash, perl. python, ...
Too many choices. |
|
X****r 发帖数: 3557 | 46 第一个链接就是扁csh 的。
其实现在的tcsh里该文中提到的很多问题都不存在了…… |
|
|
m****t 发帖数: 2684 | 48 有一project需要我每天定点运行一个程序,我用的是tcsh,请问有没有unix命令可以实现
这样的功能.谢谢. |
|
g****c 发帖数: 2 | 49 Could you please tell me how to do it?
set mode = vi ?
I'm using tcsh.
Thanks
one |
|
m******y 发帖数: 67 | 50 在emacs里开了个shell,但是用上下箭头不能象在其他普通shell(e.g. tcsh)
里一样调出上一条命令.知道如何设置吗?
谢先! |
|