Occured broken file that after download on my linux system
Dear Sir.
Some times occured the broken file on my linux system. Filesystem is FAT16. I already know that FAT16 is very BAD choice. but I must use the FAT16. My procedure is see below. step 1. download My own file from my ftp server. step 2. execute "sysc" command step 3. execute "reboot -f" Code:
#!/bin/sh And How to recover this situation? Thank you. |
what I can imagine: you need to check if wget was really successful.
|
I assume by broken file you mean the download failed. Could be many reasons and impossible for us to say. How often does this happen?
You can check the return status of wget to see if there is an error code. If the status is always zero even with a bad download there could be a network or server problem. If possible maybe add a checksum file to verify the download file is good. If either status or checksum verification fails then quit the script without rebooting. You could also automatically retry the download and quit after a set number. |
Quote:
|
Quote:
Download is OK. I was check the download file using sha1 check. |
you do not need to post the same answer twice....
how did you check the file is broken? |
Quote:
My file is have a sha1 sum. |
so do you mean the sha1 sum was different before and after reboot?
|
Quote:
that in itself doesn't mean anything. it's only meaningful if the sha1sum is the same as the one provided by the server that provided the download. |
Quote:
|
All times are GMT -5. The time now is 11:32 PM. |