'patch'에 해당하는 글 2건

#!/bin/sh
Email="xxx@xxx.com";
find /hosting/ -type d -and -name '.*' | grep -v ssh | grep -v .ncftp > /root/hostinghack.txt
find /hosting2/ -type d -and -name '.*' | grep -v ssh | grep -v .ncftp > /root/hosting2hack.txt
(
echo "-----------------------------------------------------------------------------------" && \
echo "오늘 날짜 입니다." &&
date && echo -e "\n"
echo "-----------------------------------------------------------------------------------" && \
echo "-hosting" &&
cat /root/hostinghack.txt && echo -e "\n"
echo "- hosting2" &&
cat /root/hosting2hack.txt && echo -e "\n") \
| mail -s " guk testserver: hack check" ${Email}
echo "done +";
exit 0;



메일온 결과:

-----------------------------------------------------------------------------------
오늘 날짜 입니다.
Tue Nov 27 14:32:45 KST 2012


-----------------------------------------------------------------------------------
-hosting
/hosting/oracle/app/product/11g/uix/cabo/jsLibs/.ade_path
/hosting/oracle/app/product/11g/oc4j/.patch_storage
/hosting/oracle/.oracle


- hosting2
/hosting2/oracle/app/product/11g/uix/cabo/jsLibs/.ade_path
/hosting2/oracle/app/product/11g/oc4j/.patch_storage
/hosting2/oracle/.oracle

신고
크리에이티브 커먼즈 라이선스
Creative Commons License

WRITTEN BY
김병국
유용했던 자료를 기록해 두었습니다. 도움이 되시길~~~ Welcome! I started this blog as a way to give back to all of the other system administrators who have taught me something in the past. Writing these posts brings me a lot of enjoyment and I hope you fun

받은 트랙백이 없고 , 댓글이 없습니다.
secret

패치 파일 만들때 유용한 방법입니다. 

[root@linuxtip byoungguk]# vi test.1
-----
aaa
bbb
ccc
-----
[root@linuxtip byoungguk]# cp -pv test.1 test.1-orig
`test.1' -> `test.1-orig'

[root@linuxtip byoungguk]# vi test.1
-----
aaa
bbb
ccc
ddd      --->추가
-----

[root@linuxtip byoungguk]# diff -urN test.1-orig test.1 > test.1-new.diff

[root@linuxtip byoungguk]# vi test.1-new.diff

[root@linuxtip byoungguk]# cp -pv test.1-orig test.1
`test.1-orig' -> `test.1'
원래파일로 다시 복사하고

[root@linuxtip byoungguk]# patch < test.1-new.diff
patching file test.1

패치를 안한 상태로 원복할려면

[root@linuxtip byoungguk]# patch < test.1-new.diff -R
patching file test.1

신고
크리에이티브 커먼즈 라이선스
Creative Commons License

WRITTEN BY
김병국
유용했던 자료를 기록해 두었습니다. 도움이 되시길~~~ Welcome! I started this blog as a way to give back to all of the other system administrators who have taught me something in the past. Writing these posts brings me a lot of enjoyment and I hope you fun

받은 트랙백이 없고 , 댓글이 없습니다.
secret