當使用yum 時出現下列錯誤
There was a problem importing one of the Python modules
required to run yum. The error leading to this problem was:
 

quantum2nd 發表在 痞客邦 留言(0) 人氣()

Q1.
syntax error near unexpected token `('
 S1: 找到相對的那一行
set path= (  $HOME/bin $path)

quantum2nd 發表在 痞客邦 留言(0) 人氣()

* change to tcsh for login
chsh -s /usr/bin/tcsh
* change to bash for login
chsh -s /bin/bash
* check which shell do you use when you login?
vi /etc/passwdd
* change shell to csh now
csh
* change shell to bash now
bash
* check which shell do you use now?
echo $shell
echo $SHELL
REFERENCE

quantum2nd 發表在 痞客邦 留言(0) 人氣()

php 換行跟html一樣 使用 <br>
 
<?php
$fn=fopen("test.txt",w);

quantum2nd 發表在 痞客邦 留言(0) 人氣()

$str="Have a good day!"
1. "" :會取代變數
echo "$str<br>"
         Have a good day!

quantum2nd 發表在 痞客邦 留言(0) 人氣()

Q1.有時候yum install pkgname , pkgname是對的 但是就是找找不到對應的ftp去download? (reference)
   rpm 一個pkg安裝是有相依性的, 也就是說裝某個pkg A前可能需要先裝其他的pkg之後才能順利安裝, 而安裝pkg A所需要的相依pkg 會寫在header,
   然後repo 給一個對照表, 哪個pkg 要去哪個ftp抓, 所以如果是找不到相對應的ftp, 就需要update 一下 repo

quantum2nd 發表在 痞客邦 留言(0) 人氣()

1. pbs torque parameter setting
2. maui parameter setting
3.maui command

quantum2nd 發表在 痞客邦 留言(0) 人氣()

1. 下載 Maui from adaptive website  (需要註冊會員才能下載)
2. 解壓縮  tar xvzf maui-3.3.1.tar.gz
3. 安裝

quantum2nd 發表在 痞客邦 留言(0) 人氣()

q1. how to cancel a series of jobs?
ans:  ex: if we wnat to kill job ID 140 to 160
qel `seq 140 160`
 

quantum2nd 發表在 痞客邦 留言(0) 人氣()

reference, queue attribute setting 
Q1: 兩個computing nodes, 每個computing node有32processers, 但每個computing node 只能同時run 4個job by C-soft, other will be queue by C-soft itself.
      how to control queue by PBS?

quantum2nd 發表在 痞客邦 留言(0) 人氣()

設定一個queue 名為HF
 
[root@pc01 ~]# qmgr
Max open servers: 9

quantum2nd 發表在 痞客邦 留言(0) 人氣()

[Q]How to set PATH for all user?
[A] Add a file (ex: test.sh) with the PATH what you what
re-login by any user.
ex: 

quantum2nd 發表在 痞客邦 留言(0) 人氣()

Blog Stats
⚠️

成人內容提醒

本部落格內容僅限年滿十八歲者瀏覽。
若您未滿十八歲,請立即離開。

已滿十八歲者,亦請勿將內容提供給未成年人士。