f********o 发帖数: 1163 | 1 【 以下文字转载自 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。。。 |
|
f********o 发帖数: 1163 | 2 【 以下文字转载自 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。。。 |
|
m****0 发帖数: 2236 | 3 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/... 阅读全帖 |
|
r*e 发帖数: 112 | 4 as you know, when I need to remotely use graphics software of UNIX, we need:
1) xhost+
2) setenv DISPLAY XX.XX.XX.XX:0.0
My tough question is: Is that possible to set the local port other than
0.0? ( I am not sure is 0.0 the port number? )
I am using a Router to connect internet, and there are two PCs need to run
Emacs at home. However, I can only transfer one port service to only one
PC...
So, is that possible?
Thanks ! |
|
s***t 发帖数: 195 | 5 the easiest, and secure, way to forward X display is to use ssh.
just run X server on your local machine, say eXceed for Windows,
enable X forwarding in ssh and you're readay to go.
don't use xhost+ and setenv DISPLAY, it's not secure. |
|
r*e 发帖数: 112 | 6 sorry for the confusion :P
I am using Win2000, and I am tring to connect to a UNIX server to run
Emacs. As you know, I need to use setenv Disply ..... after I loginto
the UNIX server.
Since I use Router, my current IP address is not a real one and I have
to use 'Forwarding' funciton of that Router. However, the rounter can only
set a range of ports to one PC. that means I can't just simply use one
port , say 6000 for both PCs. And that's why I am persistly asking you
If I can use other port f |
|
m*****e 发帖数: 4193 | 7 I am curious about how this router forwarding works. What's the IP address
in your setenv? The router's or your PC's? If the former, then there should
be a mapping from the router's ports to your PC's ports. If the latter, then
the routing table on the Unix server has to have an entry for that router.
What I don't understand is, why you have to use two unique port numbers
for your two PCs. In either case I presumed it doesn't make much sense.. |
|
f********o 发帖数: 1163 | 8 setenv PATH ${PATH}:"/Applications/VMware Fusion.app/Contents/Library/"
不work。。。 |
|
f********o 发帖数: 1163 | 9 setenv PATH ${PATH}:"/Applications/VMware Fusion.app/Contents/Library/"
不work。。。 |
|
y**o 发帖数: 4 | 10
Have set the env var:
setenv LD_LIBRARY_PATH ${LD_LIBRARY_PATH}:${ORACLE_HOME}/lib
setenv CLASSPATH ${CLASSPATH}:${ORACLE_HOME}/sqlj/lib/translator.zip
setenv CLASSPATH ${CLASSPATH}:${ORACLE_HOME}/sqlj/lib/runtime.zip
setenv CLASSPATH ${CLASSPATH}:${ORACLE_HOME}/sqlj/lib/runtime12.zip
setenv CLASSPATH ${CLASSPATH}:${ORACLE_HOME}/sqlj/lib/runtime12ee.zip
setenv CLASSPATH ${CLASSPATH}:${ORACLE_HOME}/sqlj/lib/classes12.zip
setenv CLASSPATH ${CLASSPATH}:${ORACLE_HOME}/sqlj/lib/runtime12.jar
而且那个run |
|
s***g 发帖数: 495 | 11 arcNumber = architecture number?
It is set in uboot so should be used by uboot to pass to the kernel.
Use a newer uboot and kernel should make it boot on sata.
I have tried on pogo v4 and it boot from all three source: usb, mmc, and
sata.
My way is different from debian forum becase I think it is easier and
confirmed by your experience too.
Here is my uboot env for pogo v4. I shared it here for the same reason.
arcNumber=3960
baudrate=115200
bootcmd=setenv bootargs console=ttyS0,$baudrate root=L... 阅读全帖 |
|
r****t 发帖数: 10904 | 12 在 /usr/bin/ 下面就有,贴在这儿,似乎 arcNumber 不对?Dockstar arcNumber应该
是多少?另,这个 hostname 名字叫 alarm 是正常的么?
$ fw_printenv
]# fw_printenv
ethact=egiga0
bootdelay=3
baudrate=115200
mainlineLinux=yes
console=ttyS0,115200
led_init=green blinking
led_exit=green off
led_error=orange blinking
mtdparts=mtdparts=orion_nand:1M(u-boot),4M(uImage),32M(rootfs),-(data)
mtdids=nand0=orion_nand
partition=nand0,2
stdin=serial
stdout=serial
stderr=serial
rescue_installed=0
rescue_set_bootargs=setenv bootargs console=$console u... 阅读全帖 |
|
D****g 发帖数: 2860 | 13 FreeBSD 4.6, x86,装好了XFree86.中文字体也没有问题.装好了自带的Chinput 2.1
在.cshrc里面也设了locale:
setenv LANG zh_CN.GB2312
setenv LC_ALL zh_CN.GB2312
setenv CHARSET GB2312
setenv XMODIFIERS "@im=Chinput"
locale命令的输出也没有问题:
[*^_^*://braveheart/home/lg]locale
LANG=zh_CN.GB2312
LC_CTYPE="zh_CN.GB2312"
LC_NUMERIC="zh_CN.GB2312"
LC_TIME="zh_CN.GB2312"
LC_COLLATE="zh_CN.GB2312"
LC_MONETARY="zh_CN.GB2312"
LC_MESSAGES="zh_CN.GB2312"
LC_PAPER="zh_CN.GB2312"
LC_NAME="zh_CN.GB2312"
LC_ADDRESS="zh_CN.GB2312"
LC_TELEPHONE="zh_CN.G |
|
L******r 发帖数: 199 | 14 我直接用setenv一点问题没有,而且执行sh a.sh后,根本就没进入PerlExe.
#!/bin/tcsh
unset auto-logout
unset autologout
setenv DISPLAY HPLAPTOP11.aXh.XX.edu:0
cd PerlExe/
a.sh: line 2: unset: `auto-logout': not a valid identifier
a.sh: line 4: setenv: command not found |
|
y*****p 发帖数: 733 | 15
/usr/local/lib/gcc-lib/sparc-sun-solaris2.5.1/2.95.2/
when
果然原来设置了
# Environment for Ada
setenv GCC_EXEC_PREFIX /opt/ada/lib/gcc-lib/..
不懂这个ADA 是何物。不管,
setenv GCC_EXEC_PREFIX /opt/gnu/lib/gcc-lib/...
再 g++ -v 看看
Reading specs from /opt/gnu/lib/gcc-lib/sparc-sun-solaris2.6/2.8.1/specs
gcc version 2.8.1
现在编译就没有问题了.
没有解决的问题是,如果我按如下设置(这个是例子程序的设置)
setenv GCC_EXEC_PREFIX /usr/local/lib/gcc-lib/...
用g++ -v 看到的结果也是 Reading specs from /opt/gnu/lib/gcc-lib.....
但是在/usr/local/lib 目录下根本没有gcc-lib 这个目录,怎 |
|
J********a 发帖数: 5208 | 16 setenv P1 $PWD
setenv P2 $PWD |
|
J********a 发帖数: 5208 | 17 tcsh
setenv P1 $PWD
...
setenv P2 $PWD |
|
b*****e 发帖数: 762 | 18 老板给了我一个128核的服务器的supervisor的权限,叫我跑模拟。 但是我不能正确装
软件。老板的账户ssh进去可以正常工
作,他也给了我几个环境变量:
PATH=/usr/local/bin:/usr/lib64/qt-
3.3/bin:/usr/kerberos/bin:/bin:/usr/bin:/usr/X11R6/bin:/usr/lib64/openmpi/1.
4-
gcc/bin:/usr/lib64/openmpi/1.4-gcc/lib
LD_LIBRARY_PATH=/usr/lib64/openmpi/1.4-gcc/lib
QTDIR=/usr/lib64/qt-3.3
QTINC=/usr/lib64/qt-3.3/include
QTLIB=/usr/lib64/qt-3.3/lib
MPICC=/usr/lib64/openmpi/1.4-gcc/bin/mpicc
MPIEXEC=/usr/lib64/openmpi/1.4-gcc/bin/mpiexec
LIBS=/usr/lib64/openmpi/1.4-gcc/lib/libmpi_cx... 阅读全帖 |
|
c********t 发帖数: 27 | 19 1)
B=`echo "scale=4;4/3"| bc`
echo $B
1.3333
2)
#include
getenv and setenv
man getenv
man setenv
Note: Do not modify strings returned from getenv; they are pointers to
data that belongs to the system.
Or If you want to look into it.
#include
#include
int main(int argc, char *argv, char *envp[]){
while(1){
printf("%s\n", envp++);
}//segfault here
} |
|
g*****y 发帖数: 26 | 20 use setenv in C shell
or use CLASSPATH=...;export CLASSPATH in b sh
here is my CLASSPATH(csh)
setenv CLASSPATH .:/net/jaguar/exe/JDK/jdk1.2.2/lib/dt.jar:/net/jaguar/exe/JDK/j
dk1.2.2/lib/tools.jar:/tmp/toolkit/build/classes:/lxh/vvc/docs/reference/resdiff
/alc.jar:/home/lambliu/JavaWebServer1.1.1/classes:/home/lambliu/JavaWebServer1.1
.1/lib/jws.jar
good luck! |
|
c**t 发帖数: 2744 | 21 以下所列在 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 ---- |
|
y*****p 发帖数: 733 | 22 newhand learning unix programming, appreciate any info.
1) Is there any visual complier/linker like VC. Really have a bad time
using cc/gcc/g++.
2) Before using g++, i need to set:
setenv GCC_EXEC_PREFIX /usr/local/lib/gcc-lib/sparc-sun-solaris2.5.1/2.95.2/
How can I set and save it?
I didn't find gcc_lib in the above dicratory,
But find gcc-lib in /opt/ada/lib/gcc-lib/sparc-sun-solaris2.5.1/2.7.2/
Strange enough, the above setenv works.
If I try to use the /opt/ads/lib. |
|
xi 发帖数: 1678 | 23 Share my experience with you --
In FreeBSD, I use
setenv LC_CTYPE zh_CN.EUC.
Check your /usr/share/locale first to see whether you have it (it should
be installed in default).
setenv LANG zh_CN.EUC.
now type "date" to see whether it outputs garbage.
if it is, then your environment is correct.
I saw the FreeBSD source of Chinput and it is obvious that the msg
Please first
"export XMODIFIERS=@im=Chinput"
before run this program
always appears whatever your env variables are.
Grab the foll |
|
e*H 发帖数: 16 | 24 you need inf (not inx), sys, and wdfcoinstaller01009.dll (not chk one), and
of course cat file.
no need to pass -amd parameter to build.exe (is there really such a
parameter? the setenv.bat should already specified your target architecture)
toaster contains several drivers (bus/func/etc). which one were you trying
to install? and detailed steps / error messages. this way we can try to help
you |
|
c**x 发帖数: 432 | 25
真是费力不掏好。。。
我这有个网址,自己去下载吧。
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****u 发帖数: 9 | 26 远程登录Unix机器,想用Xfig画图,装了xwin,
然后用setenv设置显示
但是由于我的机器是通过router连出去的,只有内部子网IP地址,
用内部网的IP设置,发现xfig不work。
How? |
|
S*A 发帖数: 7142 | 27 在这个版上跟风进了几个。
装 ArchLinux 我用这个 Link, 步骤照做就可以了。
http://archlinuxarm.org/platforms/armv5/pogoplug-series-4
然后,如果要改启动 Linux 的参数的话,这个就特别坑爹了。
因为这个启动参数没有文件,是放在 flash 一个特定的地址,
被 UBoot 使用。ArchLinux 带了一个 package 可以在 Linux
里面改参数,叫作 uboot-tools。千万不要用这个 uboot-tools。
因为,你装完了 uboot-tools 以后,需要配置一个 /etc/fw_env.config。
这个就是 UBoot 使用的参数在 flash 里面的地址,和区间大小。
找了半天这个配置文件到底如何设置,没有。ArchLinux 论坛建议
是那几个示范配置一个一个试用下来。哪个 fw_printenv 不出错
就是了。结果貌似那个 0xa0000地址似乎没有错。就是它了。
fw_printenv 没有错,但是一旦 fw_saveenv,那就坏了。
pogoplug 起不来。灯一直闪。... 阅读全帖 |
|
i******m 发帖数: 8 | 28 Then what should be the IP address when you want to setenv DISPLAY? Will
192.168.x.x work? |
|
f********h 发帖数: 149 | 29 if you use bash, export CLASSPATH=your_class_path_separated_by_colon
or csh, setenv CLASSPATH your_class_path_separated_by_colon |
|
w*m 发帖数: 1806 | 30 got a new linux box and tried to install something then got a message said
the installer can't run in UI mode.
tried setenv DISPLAY machinename:0.0
tried xhost +: unable to open display "machinename:0.0"
somehow, I guess there is a configuration error.
Anybody can advise how to resolve this problem??
50 weibie for a solution
thanks |
|
l*f 发帖数: 218 | 31 谢谢大侠 因为我要装一个软件要修改到LD_LIBRARY_PATH,后来意识到要早csh里运行
用setenv就可以了
关于chsh的问题 有的时候可以switch到csh 有的时候明明propmt shell changed echo
$0发现还是在bash
bash
of |
|
b****n 发帖数: 865 | 32 查明白了.
我用csh, 这样用less命令时就会只显示.cshrc的结果, 为了绕过这个问题,
我在.cshrc里加了一句:
setenv SHELL "/bin/csh -f"
结果less好用了, KDE Konsole悲剧了...
没办法, 只好改回来, nnd |
|
z**r 发帖数: 17771 | 33 /Applications/VMware\ Fusion.app/Contents/Library |
|
|
|
|
|
|
|
x****s 发帖数: 921 | 40 先ssh进localhost,看能不能运行。
如果可以,可能是env 不同造成的。
在两个terminal 里比较一下环境变量,
set
setenv |
|
x****s 发帖数: 921 | 41 先ssh进localhost,看能不能运行。
如果可以,可能是env 不同造成的。
在两个terminal 里比较一下环境变量,
set
setenv |
|
r*g 发帖数: 186 | 42 我以前一直用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... 阅读全帖 |
|