Re: [問題] SelfCheck有問題
剛剛請同學寄給我有問題的作業和相關檔案,
發現有下列問題應該是dos和unix轉換時,
換行符號不同所造成的結果(dos:\r\n unix:\n),
所以有下列問題請在unix底下打
%> dos2unix SelfCheck
%> dos2unix MustExist.txt
%> dos2unix MustRemove.txt
或者使用wget直接去老師的網頁抓這三個檔案
%> wget --user=ooxx --password=ooxx URL
※ 引述《firstquarter (TMM豪)》之銘言:
: 我用Selfcheck的時候
: 輸入./SelfCheck b95901022_hw1.1.tgz
: 會說沒有這個file
: 輸入perl SelfCheck b95901022_hw1.1.tgz
: 會開始跑 最後跑出Failed in selfcheck
: 但沒有說我少了哪個檔案或多了哪個檔案
: (事實上我比對過 應該是沒有少或多才對...)
: 不過我在網頁上下載SelfCheck的時候
: 用ie他會開出一個新網頁 裡面都是code
: 按右鍵另存新檔會存成一個.txt檔
: 我是把它丟到Linux後用chmod強制把它轉成執行檔的
: 不知道是不是這個原因@@
: 最後附上完成跑出來的內容
: %> ./SelfCheck b95901022_hw1.1.tgz
: : No such file or directory
: %> perl SelfCheck b95901022_hw1.1.tgz
: b95901022_hw1.1.tgz is self checking!
: StudentID:b95901022
: in your compressed file.1022_hw1.1/hw1.1.p1.txt
: in your compressed file.1022_hw1.1/hw1.1.p2.log
: in your compressed file.1022_hw1.1/hw1.1.p2a.cmd
: in your compressed file.1022_hw1.1/hw1.1.p2b.cmd
: in your compressed file.1022_hw1.1/hw1.1.p2c.cmd
: in your compressed file.1022_hw1.1/hw1.1.p2a.log
: in your compressed file.1022_hw1.1/hw1.1.p2b.log
: in your compressed file.1022_hw1.1/hw1.1.p2c.log
: in your compressed file.1022_hw1.1/hw1.1.p3.cmd
: in your compressed file.1022_hw1.1/hw1.1.p3.log
: in your compressed file.1022_hw1.1/HW1.1.P4/a.cpp
: in your compressed file.1022_hw1.1/HW1.1.P4/b.cpp
: in your compressed file.1022_hw1.1/HW1.1.P4/a.h
: in your compressed file.1022_hw1.1/HW1.1.P4/b.h
: in your compressed file.1022_hw1.1/HW1.1.P4/main.cpp
: in your compressed file.1022_hw1.1/HW1.1.P4/hw1.1.p4a.make
: in your compressed file.1022_hw1.1/HW1.1.P4/hw1.1.p4b.make
: Failed in self checking
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 118.160.173.174
推
03/17 21:47, , 1F
03/17 21:47, 1F
推
03/17 23:31, , 2F
03/17 23:31, 2F
推
03/17 23:41, , 3F
03/17 23:41, 3F
討論串 (同標題文章)