
I am writing a script to find out who is running the script itself, "ps -ef | grep scriptname"? It doesn't seem to give me what i need. I just need the username who is running it. Thanks a lot.
by dawncaller - Shell - 2008-02-04 10:32:36 阅读(1773) 回复(2)
本帖最后由 yshihyu 于 2012-08-07 22:54 编辑 因为代码中函数很多, 想再c++ 函数中最前头加入 一段代码 void test() { 加入一段代码 } 请问script怎么分析才能在每个cpp 文件中函数最前面加入一段代码 谢谢
script可以记录屏幕的输入输出信息到文件 如下: # script script started, file is typescript # ls -l total 16 -rw-r--r-- 1 root root 1150 Feb 8 19:28 OWconfig_test -rw-r--r-- 1 root other 24 Feb 11 19:26 sh.sh -rw-r--r-- 1 root other 0 Feb 11 19:27 typescript # exit script done, file is typescript # cat typescript script started on Wed Feb 11 19:27:28 2004 #...
打开anaconda源码目录下的/docs/command-line.txt,其中有这么一句话: updates Prompt for floppy containing updates (bug fixes). 那么在bug fix当中,每次都去制作iso,不仅浪费时间,而且效果欠佳。最后就是越做越烦。那么有了这么一个工具,确实减轻了bug fix的繁琐。然后去anaconda的网站上查找得到如下资料(地址是http://fedoraproject.org/wiki/anaconda/Updates): anaconda Updates anaconda has the capa...
谈到汉化,那就是我们在整个系统的安装过程中,几乎所有的步骤都是显示中文的,而在我所读到的anaconda源代码中没有任何的有关汉字的踪影,那么它显示汉字到底是怎么一回事了呢?还好因为有源代码,虽然走了些弯路,但还是值得的!读了这么多的代码,在每个设计到显示给用户的程序中都会有如此一个导入的语句:from rhpl.translate import _, N_凡是导入此模块的程序,涉及到输出到终端的语句或词语,都会调用到_或N_ 在此以anacon...
在anaconda的主程序中,定义了如下的一个python类。 理解面对对象,如果是从C++或java过来的人,对于python定义类的方式,是有点不"感冒“的,就像是对于python的缩进一样。 class anaconda: #类定义,关键字class.默认为object. def __init__(self): #定义构造器 self.intf = None #设置intf self.dir = None #设置 dir self.id = None #设置 ID self.method = None...
如何修改Redhat 5 安装程序anaconda 中通过http获取文件的方法,现在在一种环境下怀疑anaconda 通过http取RPM包存在问题,所有想修改一下,以便进行测试。