0: stdin 1 : stdout 2 : stderr 2>&1은 stderr을 stdout으로 리다이렉트하고 1>&2는 stdout을 stderr로 리다이렉트한다.
5월 2012 archive
5월 15
HP APA해제하기.
lanscan 했을때 인터페이스가 lan900이면 Auto Port Aggreation 설정되어 있음. 해제 순서 1. /sbin/init.d/hplm stop 2. /sbin/init.d/hpapa stop lanscan 해보면, lan900 down 으로 보임 3. /etc/rc.config.d/netconf 화일에 lan0, lan1 설정(필요한 인터페이스에)하고 4. /sbin/init.d/net stop /sbin/init.d/net start ifconfig lan0 ; ifconfig lan1 해서 확인
5월 08
hpux kernel이 32비트인지 64비트인지 확인하는 방법
hpux kernel bit 확인방법. 방법1. # getconf KERNEL_BITS 64 방법2. # file /stand/vmunix /stand/vmunix: ELF-64 executable object file – PA-RISC 2.0 (LP64) 참고로, solaris는 # isainfo -vk 64-bit sparcv9 kernel modules 리눅스, freeBSD는 $ getconf LONG_BIT 64 AIX는 http://jungit.tistory.com/entry/AIX-32bit-64bit-%ED%99%95%EC%9D%B8-%EC%A0%84%ED%99%98%ED%95%98%EA%B8%B0 를 참고.
5월 01
oracle python 연동 예제.
오라클과, python연동 시키는 cx_Oracle을 http://cx-oracle.sourceforge.net/ 에서 다운로드 받어 설치한다. prec ompile 패키지는 윈도우용과 리눅스용만 있는것 같다. 아래는 테스트 코드(Lotto 테이블에서, 491회 당첨번호 추출하는 예제) listener name: oracle listener port: 1521 oracle SID: orcl oracle user/passwd: fox/fox table name: lotto >>> import cx_Oracle >>> cx0=cx_Oracle.makedsn(“oracle”, 1521, “orcl”) >>> connection=cx_Oracle.connect(“fox”, “fox”, cx0) >>> cursor=connection.cursor() >>> cursor.execute(“select * from lotto …