본문 바로가기
반응형

IT372

perl의 실행 옵션 간단한 1라인 스크립트를 테스트하고자할때, -e 옵션을 사용하면 편하다. $> perl -e '$ls = system("ls"); print "Result: $ls\n"' 그외, perl 의 옵션을 설명해 놓은 글 http://thdnice.tistory.com/49 2013. 2. 7.
core 파일 생성 감시하여, 내용 덤프후 파일 무브 #!/usr/bin/ksh #기록파일의 초기화 cat /dev/null > CoreList.lst cat /dev/null > Core_Batch_List.lst #반복작업 while true do #파일 감시 -f 파일여부 if [ -f /bin/core ] then sleep 5 #명령어를 실행전에 더미로 한번씩 더 실행함 file /bin/core filename=`file /bin/core | awk '{print substr($7,4,length($7)-4)}'` echo "core file:" $filename chmod 777 /bin/core date +%H_%M_%S_%Y_%m_%d core_name="/bin/core-real-"$filename"-"`date +%Y%m%d-%H%M%S.. 2013. 2. 7.
파일읽기 *. 펄에서 파일읽기 참조링크 : http://gypark.pe.kr/wiki/Perl/%ED%8C%8C%EC%9D%BC #!/usr/bin/perl use strict; use warnings; my $file_name = "joblist.txt"; my $count = 0; open my $fh," 2013. 2. 6.
foreach 의 사용 #!/usr/bin/perl @arrString = ("aaa","bbb","ccc"); foreach (@arrString) { print $_ ."\n"; } //jdk1.5+ public class ForEach { public static void main(String[] args) { String[] arr = {"aaa","bbb","ccc"}; for( String str : arr ) { System.out.println(str); } } } java 쪽을 자꾸 까먹기도 해서 비교 로 올림-ㅅ-'' 2013. 2. 5.
오라클 버젼확인 방법 select * from v$version; *. 결과-- Banner -- Oracle9i Enterprise Edition Release 9.2.0.8.0 - 64bit ProductionPL/SQL Release 9.2.0.8.0 - ProductionCORE9.2.0.8.0ProductionTNS for HPUX: Version 9.2.0.8.0 - ProductionNLSRTL Version 9.2.0.8.0 - Production Oracle Client 9i --> Oracle 11g 접속 가능하군~! 2013. 1. 24.
perl cgi ( wetob 에 설정 ) *. webtob 설치 및 기동 1. WebToB 설치 ( 기본설치, 서블릿 설치 안함 )2. 라이센스 발급 ( 홈페이지 )3. http.m 수정 ( 기본포트 8080 --> 80 )4. wscfl -i http.m 환경설정 파일 컴파일#*SVRGROUP 에서 NODENAME 이 더이상 필요없으므로 삭제#아래는 나의 설정 내용*SVRGROUPhtmlgSVRTYPE = HTMLcgigSVRTYPE = CGIssigSVRTYPE = SS5. wsboot *. perl cgi 연동 설정1.http.m 에 설정된 cgi-bin 폴더 확인 ( 기본으로 설치폴더/cgi-bin 으로 설정 됨 )-- 기본으로 cgi 파일 관련 설정이 되어있으므로 수정이 불필요2.예제 파일인 printenv.cgi 구동 -- 구동전에 .. 2013. 1. 24.
perl eclipse 플러그인 단순히 text 모드로 개발하고 있지만, eclipse 라면 플러그인이 있을것 같아 검색을 해보니 역시 있음!! Perl:Epic http://www.epic-ide.org/ Eclipse version Version: 4.2.1 다음 주소로 plugin 인스톨http://e-p-i-c.sf.net/updates 현재 stable 0.5.x 으로 설치 가능 2013. 1. 18.
ldd : 의존 라이브러리 체크 실행 파일이나 라이브러리의 의존성있는 라이브러리 목록을 보여줍니다. ldd Options ldd recognizes the following options: -d Check reference to data symbols. -r Check reference to data and code symbols. -s Display the search path used to locate the shared libraries. -v Display all dependency relationships. -y symbol Display the module names where symbol is referenced and also where symbol is defined. ex)$ ldd -v libkdutil_sl.sl .. 2013. 1. 16.
참고사항 겔럭시노트1 스펙 현재 OS 4.0.4 까지 업데이트 되어 있음 출처: http://pyromania.tistory.com/428 2012. 12. 17.
반응형