본문 바로가기 메뉴 바로가기

땅진

프로필사진
  • 글쓰기
  • 관리
  • 태그
  • 방명록
  • RSS

땅진

검색하기 폼
  • 분류 전체보기 (42)
  • 방명록

asus ac-68p router entware-ng profile .bashrc 설정하기

기본 쉘이 bash가 아니다. bash로 설정을 했다면 홈 폴더에 .bashrc 만들어서 해주면 되고 아니면 /opt/etc/profile 에 설정해 주면 되는데 .bashrc의 경우 홈폴더가 /tmp에 있다보니 껐다키면 사라진다. 하여, 나같은 경우엔 /opt/etc/.bashrc를 만들어주고 profile에 아래와 같이 설정하였다. # bash .bashrc[ ! -f /tmp/home/root/.bashrc ] && ln -s /tmp/mnt/System/entware-ng.arm/etc/.bashrc /tmp/home/root/.bashrc

카테고리 없음 2018. 1. 7. 11:51
python phantomjs 자식 프로세스 안죽는 문제 해결

import signal driver.service.process.send_signal(signal.SIGTERM) # kill the specific phantomjs child proc driver.quit() # quit the node proc 참조: https://stackoverflow.com/questions/44995042/phantomjs-raise-oserror-errno-9-bad-file-descriptor

카테고리 없음 2018. 1. 5. 13:32
python으로 서버 시간 알아내기

import urllib2, time date = urllib2.urlopen('http://quasarzone.co.kr').headers['Date']time = time.strptime(date, '%a, %d %b %Y %H:%M:%S %Z') print time.tm_hour, time.tm_min

카테고리 없음 2017. 12. 29. 10:25
이전 1 ··· 8 9 10 11 12 13 14 다음
이전 다음
공지사항
최근에 올라온 글
최근에 달린 댓글
Total
Today
Yesterday
링크
TAG
  • Packer
  • vnc
  • virtualbox-iso
more
«   2025/06   »
일 월 화 수 목 금 토
1 2 3 4 5 6 7
8 9 10 11 12 13 14
15 16 17 18 19 20 21
22 23 24 25 26 27 28
29 30
글 보관함

Blog is powered by Tistory / Designed by Tistory

티스토리툴바