Refer to
http://ephrain.pixnet.net/blog/post/55537038-%5blinux%5d-%E9%96%8B%E5%95%9F-core-dump-%E8%88%87%E8%A8%AD%E5%AE%9A%E7%94%A2%E7%94%9F-core-dump-%E7%9A%84%E7%A8%8B%E5%BC%8F
這是我的工作酸甜苦辣,與大家分享,希望彼此都有收穫:) This is my working experience in my life. It is good to share with you :)
Wednesday, September 27, 2017
Monday, September 25, 2017
PDF 處理工具 pdftk in CentOS 7
下載篇:
https://www.linuxglobal.com/pdftk-works-on-centos-7/
指令篇:
http://seisman.info/introduction-to-pdftk.html
https://www.linuxglobal.com/pdftk-works-on-centos-7/
指令篇:
http://seisman.info/introduction-to-pdftk.html
Friday, September 22, 2017
install FTP in CentOS
Refer to
http://luyaku.pixnet.net/blog/post/188199646-vsftpd%EF%BC%9Aftp-server-%E5%AE%89%E8%A3%9D%E8%88%87%E8%A8%AD%E5%AE%9A
http://luyaku.pixnet.net/blog/post/188199646-vsftpd%EF%BC%9Aftp-server-%E5%AE%89%E8%A3%9D%E8%88%87%E8%A8%AD%E5%AE%9A
install Samba 4.4.4 in CentOS
yum --nogpgcheck localinstall samba-common-libs-4.4.4-14.el7_3.x86_64.rpm samba-libs-4.4.4-14.el7_3.x86_64.rpm samba-common-tools-4.4.4-14.el7_3.x86_64.rpm libsmbclient-4.4.4-14.el7_3.x86_64.rpm samba-client-4.4.4-14.el7_3.x86_64.rpm samba-4.4.4-14.el7_3.x86_64.rpm libwbclient-4.4.4-14.el7_3.x86_64.rpm samba-client-libs-4.4.4-14.el7_3.x86_64.rpm samba-common-4.4.4-14.el7_3.noarch.rpm
Wednesday, September 20, 2017
install Display setting tool in CentOS 7
yum group install "GNOME Desktop"
Refer to
http://www.itzgeek.com/how-tos/linux/centos-how-tos/install-gnome-gui-on-centos-7-rhel-7.html
Friday, September 8, 2017
ouput the standard output to variable
1. 引入library
import subprocess
2. 定義函數
def get_cmd_line_results(input_string):
os.chdir(INET_DIR)
proc = subprocess.Popen(input_string, stdout=subprocess.PIPE, shell=True)
#"git symbolic-ref HEAD"
(out, err) = proc.communicate()
os.chdir(CUR_DIR)
return out[:-1]
3. 在主程式內容呼叫
inet_branch = get_cmd_line_results("git symbolic-ref HEAD")
import subprocess
2. 定義函數
def get_cmd_line_results(input_string):
os.chdir(INET_DIR)
proc = subprocess.Popen(input_string, stdout=subprocess.PIPE, shell=True)
#"git symbolic-ref HEAD"
(out, err) = proc.communicate()
os.chdir(CUR_DIR)
return out[:-1]
3. 在主程式內容呼叫
inet_branch = get_cmd_line_results("git symbolic-ref HEAD")
Subscribe to:
Posts (Atom)