🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: cn.comp.os.linux
Article #852

Re: 初手问一个脚本的小问题

#852
From: Jian Lee
Date: Sat, 27 Sep 2008 05:23
15 lines
2127 bytes
�滻����exec����Ľ�̣��ٸ����ӣ�

��һ��terminal���������
# exec ls

����ʲô�ˣ��Dz���terminal���ڹر��ˣ�����Ĺ����ǣ�
terminal���������ls��̣�ls����滻����ĸ���̣�Ҳ����terminal��
�?terminal��̾Ͳ������ˡ�ls������ϣ��˳��ˣ����ڵ�Ȼ�ر��ˡ�

��һ�������ǿ��Կ������ ID����һ��terminal��
# echo $$  ; ���Կ�����ǰ��̵�ID
# bash  ; �����ڿ���ID��һ�������治һ���ˣ���Ϊ����������һ���µĽ��
# echo $$ ; ��ס��������صļҳ�ID�ţ����Ϊ ���ס�
# exec sh
# echo $$   ; ���ﷵ�صĽ��͡��ס���һ��ġ�
Technical Details
Message-ID: <abdukvrd.fsf@dev3-168.dev.cn.tlan>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!news.neu.edu.cn!news.cn99.com!not-for-mail
References: <op.uhy15abv5u2pxgyh@yunyousihai.org> <877i9283id.fsf@home.emacser.com> <op.uhy709075u2pxgyh@yunyousihai.org> <7i91dlnk.fsf@dev3-168.dev.cn.tlan> <op.uh2v82dj5u2pxgyh@yunyousihai.org>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10b277,8e750585191b5336
X-Google-Attributes: gid10b277,domainid0,public,usenet
X-Google-Language: Chinese,GB
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!news.neu.edu.cn!news.cn99.com!not-for-mail
From: Jian Lee <jian.li@turbolinux.com.cn>
Newsgroups: cn.comp.os.linux
Subject: Re: 初手问一个脚本的小问题
Date: Sat, 27 Sep 2008 13:23:02 +0800
Organization: Bentium Ltd. (CN99)
Lines: 15
Message-ID: <abdukvrd.fsf@dev3-168.dev.cn.tlan>
References: <op.uhy15abv5u2pxgyh@yunyousihai.org>
 <877i9283id.fsf@home.emacser.com>
 <op.uhy709075u2pxgyh@yunyousihai.org>
 <7i91dlnk.fsf@dev3-168.dev.cn.tlan>
 <op.uh2v82dj5u2pxgyh@yunyousihai.org>
NNTP-Posting-Host: yy-132-18-a8.bta.net.cn
Mime-Version: 1.0
Content-Type: text/plain; charset=gb2312
Content-Transfer-Encoding: 8bit
X-Trace: news.cn99.com 1222492981 1467 202.108.132.18 (27 Sep 2008 05:23:01 GMT)
X-Complaints-To: usenet@news.cn99.com
NNTP-Posting-Date: Sat, 27 Sep 2008 05:23:01 +0000 (UTC)
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux)
Cancel-Lock: sha1:vVYmkSJNO9mZ/gSjheaeUkjDTsk=