検索条件
全3件
(1/1ページ)
[kero@spinel](2)$ screen -ls
There is a screen on:
26323.pts-0.spinel (Multi, attached)
1 Socket in /var/run/screen/S-kero.
となったので、しょうがない、リモートデタッチするかと。[kero@spinel](3)$ screen -d [26323.pts-0.spinel detached.]が。
[kero@spinel](4)$ screen -ls
There is a screen on:
26323.pts-0.spinel (Multi, attached)
1 Socket in /var/run/screen/S-kero.
何度やってもscreen -dはdetachedと出るばかりで直らん。
[kero@spinel](9)$ screen -r
There is a screen on:
26323.pts-0.spinel (Multi, attached)
There is no screen to be resumed.
resumeもできん。[kero@spinel](10)$ screen -D [kero@spinel](11)$ screen -D
[kero@spinel](12)$ screen -ls
There is a screen on:
26323.pts-0.spinel (Multi, detached)
1 Socket in /var/run/screen/S-kero.
となっていた。shelltitle "$ |bash"と付け足して、.bashrcを
OLD_PS1=...(元の設定)...
SCREEN_TITLE='\[\033k\033\\\]';
PS1="${SCREEN_TITLE}${OLD_PS1}"
てな具合。OLD_PS1の部分は無論、埋め込みでも構わない。
# gcc
alias gcc='mygcc'
function mygcc(){
pn=`echo $1 | sed -e 's/\.cp\?p\?//'`
command gcc -Wall -lm -o $pn $*
}
# g++
alias g++='mygpp'
function mygpp(){
pn=`echo $1 | sed -e 's/\.cpp//'`
command g++ -Wall -lm -o $pn $*
}
# cc
alias g++='mycc'
function mycc(){
pn=`echo $1 | sed -e 's/\.c//'`
command cc -Wall -lm -o $pn $*
}
function start(){
pn=`echo $1 | sed -e 's/\.c//'`
command cc -Wall -lm -o $pn $1; ./$pn $2 &> $pn.result; cat $pn.result
}
# File grep
function exgrep(){
command find ./ -type f -exec grep -l "$1" {} \;
}
# Expand decompress .tar.gz
function extar(){
for TGZ in $@
do
tar zxvf ${TGZ}
done
}
$ function g++(){ echo "hogehoge"; }
-bash: syntax error near unexpected token `echo'
After)
$ alias g++='mygpp'
$ function mygpp(){ echo "hogehoge"; }

---(bash)--- $ ls -l $ cat 日本語.txt $ zsh ---(zsh)--- $ ls -l ~ここではちゃんと日本語が見えている~ $ cat 日本語 ↑「にほんご」の変換を確定した時点で"セグメンテーション違反です"