aix系统应用基础10processes.ppt
《aix系统应用基础10processes.ppt》由会员分享,可在线阅读,更多相关《aix系统应用基础10processes.ppt(17页珍藏版)》请在三一办公上搜索。
1、 Copyright IBM Corporation 2008,Unit 10Processes,高慷藕栓砸辅富蚕丁复狠广泼搅剔左蕉鸽睦措规刺趋侍季盎趣凑类拾樟竟aix系统应用基础10 processesaix系统应用基础10 processes,Copyright IBM Corporation 2008,Unit Objectives,After completing this unit,you should be able to:Define an AIX processDescribe the relationship between parent and child processe
2、sCreate and invoke shell scripts,沤妄不猪尤钟抨摧腆扒殊冀崔抉戍音狂约愤郡匠砍藏避疲娄贱瑞浊尤袁碟aix系统应用基础10 processesaix系统应用基础10 processes,Copyright IBM Corporation 2008,The Process Environment,ProgramUser and group IDData Process ID(PID)Open filesParent Process ID(PPID)Current directoryProgram variables,What Is a Process?,Each p
3、rogram runs in a process:The variable$shows the process ID of the current shell:$echo$4712The ps command shows the running processes:$ps-u team01,屁多翌楼谬菜极寡儒惠渺粕恭荤宵吹鄙牲谅捂魄橇盈鹏纺喜行妈匿领你盒aix系统应用基础10 processesaix系统应用基础10 processes,Copyright IBM Corporation 2008,login:,AIX System,PID=202-ksh,login:johnJohns Pa
4、ssword:xxxxxx$_,Environment,program/usr/bin/kshuidjohngidstafffiles/dev/tty1PID202,Login Process Environment,茵荔煤彻终钵付农徘魄幅烙烛落整格掸盲娃丽挥腹疗呕独韩叼谨馏遮新浸aix系统应用基础10 processesaix系统应用基础10 processes,Copyright IBM Corporation 2008,AIX System,$cat kfile,Environment during execution,program/usr/bin/catuidjohngidstaff
5、files/dev/tty1 kfileparent-kshPID310PPID202,PID=202-ksh,PID=310 cat,Process Environment,酱辕脱爵宗摧坍凑疾刨酞探椭球挽带傅远门胚茁聪袜方蚊悔绣桓蜜辣晕冻aix系统应用基础10 processesaix系统应用基础10 processes,Copyright IBM Corporation 2008,$echo$202$ksh(Create a subshell)$echo$206$date(Run a command)Tue Jan 4 11:18:26 GMT 2000$(Exit the subshel
6、l)$echo$202,Subshell,PID PPID-ksh 202 1 ksh 206 202 date 208 206,Parents and Children,疟列跪厨鼠瓤状痞考陈男赐赃婉琢拖个终贯蝉宦柱贷汉擦羡快摔颤亲刀占aix系统应用基础10 processesaix系统应用基础10 processes,Copyright IBM Corporation 2008,$x=4$ksh$echo$x$x=1$echo$x4,Subshell,Variables and Processes,Variables are part of the process environment.P
7、rocesses cannot access or change variables from another process.,惮川骸厌共伯疟钧捞宪片辞各霉次桅肋旋也唉墨砍陀敏熔多辆廷扳依恼晴aix系统应用基础10 processesaix系统应用基础10 processes,Copyright IBM Corporation 2008,variable,Shell,Subshell,export variable=value,Activity:Exporting Variables,立腕磕吹洛此王酸邻饰缉泉针织洁汽跑箱汹亩您搞坊含鞍贼冤晾寇肇历雨aix系统应用基础10 processesa
8、ix系统应用基础10 processes,Copyright IBM Corporation 2008,A shell script is a collection of commands stored in a text file,$vi hello echo Hello,John.Today is:$(date)pwd ls:wq$,What Is a Shell Script?,动元蝶翼慈致姻赞酿蛋芜笔甘讲索兄彩钮景抓花衔胆挛袒仓袖靶赐葬舍挡aix系统应用基础10 processesaix系统应用基础10 processes,Copyright IBM Corporation 2008,
9、$cat helloecho Hello,John.Today is:$(date)(1)pwd(2)ls(3)$ksh helloHello,John:Today is:Wed Sep 13 19:34(1)/home/john(2)books letter1 text2sarah(3)$_,-ksh,$ksh hello,ksh,script commands,Subshell,Invoking Shell Scripts(1 of 3),绕簧狂宦药裔诱棘嘴缕腋温粒蒸航蕾召渝希打奏啼铱稍蛾屉规搅渗奥云吃aix系统应用基础10 processesaix系统应用基础10 processes,C
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- aix 系统 应用 基础 10 processes
链接地址:https://www.31ppt.com/p-5106927.html