본문 바로가기
반응형

IT372

perl 주요 사이트 ( 크리스마스달력 출처 ) Perl 생태계 가이드 http://advent.perl.kr/2011/2011-12-24.html 윈도우에서 Perl 활용하기 http://advent.perl.kr/2010/2010-12-01.html c:\> wget http://someurl/file.txt c:\> lwp-download http://someurl/file.txt c:\> tar -zxvf somefile.tar.gz c:\> ptar -zxvf somefile.tar.gz grep 사용 ( 사용을 위해서, cpan> force install App::Ack ) c:\> grep text_to_find * c:\> ack text_to_find Perl as a command line tool http://www.softpano.. 2013. 3. 15.
people 웹게임 tomcat7에 셋팅설정 apache-tomcat-7.0.35 에서 설정 완료 db는 없어도 되므로, 압축만 풀고 활용 가능함!! %TOMCAT_HOME%/webapps/people 폴더로 생성하여 접속후 사용!! 당연히 perl 설치 필요 ( strrawberry perl 사용함 ) admin.cgi, people.cgi 설정 파일수정 필요함 ( perl 위치 지정 ) 2013. 3. 14.
tomcat에서 cgi (perl) 사용하기 *. 테스트 환경 1.OS : Windows7 2.TOMCAT : apache-tomcat-7.0.35 3.JDK : 1.7.0_07 4.PERL : strawberry perl5 version 16 (v.5.16.2 ) 1. JDK 설치 2. TOMCAT 다운로드 후 압축해제 3. perl 설치 4. %TOMCAT_HOME%/conf/web.xml 수정 cgi org.apache.catalina.servlets.CGIServlet debug 0 cgiPathPrefix WEB-INF/cgi cgiPathPrefix WEB-INF/cgi passShellEnvironment true 5 .... cgi /cgi-bin/* 5. %TOMCAT_HOME%/conf/context.html 수정 ... 6.%T.. 2013. 3. 14.
안드로이드 apk 디컴파일러(엔드 컴파일러) apk manager 가장 많이 쓰이는듯 apktool 예전에 좀 쓰였던듯? apk director GUI 붙여놓은 버젼같은데 광고같기도 하고 웬지 악성코드 줄꺼같은 프로그램이라 생략... 기본사용 기능은 컴파일/디컴파일/사인 밖에 없으니, 잘작동하기만 하면 OK.. 그래서 세개가 별로 구분이 있지는 않음... 2013. 2. 25.
[ubuntu] jdk 설치 http://forum.falinux.com/zbxe/index.php?document_srl=574845&mid=lecture_tip 설치 환경 : Linux ubuntu 3.5.0-17-generic #28Ubuntu 12.10 JDK jdk1.7.0_15 요약>> 1. JDK 다운로드http://www.oracle.com/technetwork/java/javase/downloads/jdk7-downloads-1880260.html ( 자신의 컴퓨터가 32/64 비트 구분하여 다운로드 체크하는 방법 - 터미널에서 $> dpkg -s libc6 | grep Arch ) 2. 압축해제 후 적당한 폴더에 이동 ( /usr/lib/jvm/{jdk 버젼명} ) 3. sudo update-alternative .. 2013. 2. 21.
추가적인 korn shell 정의 원문 : http://b62.tripod.com/doc/docksh.htm korn shell 내부에서 if 를 이용한 파일 타입 체크!Test Objects (Files, Directories, etc.)test "true" if: ksh ----------------------------------- object exist -a readable -r writable -w executable -x non-zero length -s zero length directory -d plain file -f symbolic link -h named pipe -p block special file -b character special file -c soft link -L socket -S owned by me -.. 2013. 2. 8.
KSH 스크립트의 기초 원문 : http://www.well.ox.ac.uk/~johnb/comp/unix/ksh.html 쉘타입의 정의 새로운 쉘스크립트를 만들때, 첫라인에 다음과 같이 써준다 다음: #!/usr/bin/ksh 정확한 ksh 의 위치를 써주어야 하며, 32 character 를 넘어가면 안된다. 첫라인에 써주는 이정의로, 아래쪽의 모든스크립트는 ksh 가 처리하게 된다. 정의를 해주지않으면, 유저의 기본 쉘환경으로 지정된 쉘이 처리한다. 하지만 약간씩 다른 syntax 가 있기 떄문에 정확한 정의가 꼭 필요하다 4가지 종류의 행 스크립트는 4가지 종류의 라인정의가 있다: 최상단의 쉘정의 라인, 공란 라인, #으로 시작하는 주석 라인, 명령어라인. 아래의 예제를 보자: #!/usr/bin/ksh # Commen.. 2013. 2. 8.
bc - 명령행 계산기 bc - arbitrary-precision arithmetic language 간단한 명령행수식으로 계산가능 ex) $> print "n=1;for(i=1;i 2013. 2. 7.
uniq 중복항목 제거 uniq [-udc [-f fields] [-s chars] [input_file [output_file]] input_file 생략시 output_file 생략시 으로 출력 중복된 항목을 제거하여 출력해줌-c 옵션 사용시 중복항목 카운트 해줌 ex)사용할 데이터 파일#test.dat1123456789101112131415 $> uniq test.dat123456789101112131415 $> uniq -c test.dat 2 1 1 2 1 3 1 4 1 5 1 6 1 7 1 8 1 9 1 10 1 11 1 12 1 13 1 14 1 15 2013. 2. 7.
반응형