문서에는 cp -f 옵션으로 여러개의 파일을 덮어 쓸수 있다고 되어 있는데요
실제로는 파일 하나하나 마다 덮어쓰기 전에 y/n 질문을 합니다.
cp -f infor0* /
cp: overwrite `/infor01.html'? y
cp: overwrite `/infor01_a.html'? y
cp: overwrite `/infor01_b.html'? y
cp: overwrite `/infor02.html'? y
cp: overwrite `/infor02_B.html'? y
cp: overwrite `/infor02_a.html'? y
안녕하세요 리눅스 초보입니다.
몇 주째 삽질만 하다 결국 질문글 올립니다^^
고정ip인 컴퓨터에 Knoppix 4.0.2 한글 버전으로 CD부팅한뒤
root쉘에서 knoppix-installer 명령으로 knoppix를 설치했습니다.
IP를 설정한뒤에 인터넷 등이 정상적으로 동작하는것까지는 확인했습니다.
if((raw_html_fd=fopen(tmpfile,"w+"))==NULL)
{
fatal("Could not open temporary file for storing raw html document");
}
위와 같이 파일을 열고 mincho.hani.co.kr 라는 사이트의 html 문서를 읽어와 fwrite()을 이용해 raw_html_fd 에 썼습니다. fwrite() 의 리턴값은 '5945' 이던가로 기억됩니다만 상황에 따라 달라지겠죠.. 어쨌든 '0' 은 아니었습니다. (아래 실행 화면 참조)