I have made some BASH scripts which take 24 to 48 hours to completely run on my netbook. They mostly make use of sed
and awk
and are constantly editing some files. If I run these for such a long time, could it cause damage to my laptop or for my laptop hardware to age more quickly?
2 Answers
They can't cause any hard that wouldn't be caused by running your laptop with any software for that period of time. There is nothing special about shell scripts that will cause trouble.
Can you safely run your laptop that way? Impossible to say, generically, though your manufacturer might be able to help you figure out the answer.
If your Netbook has an early ssd or is running (and writing to) some kind of flash memory like an SD or CF card, then the constant read/writes could "wear out" that area of your flash memory in say about, um, 5 years. Computers were meant to be used!
top
command or the included System Monitor/Task Manager.top
, and from the CPU column, I see thatsed
constantly jumps between 10% CPU to 50% CPU. The number constantly changes to various numbers between. I do not know if that number will change after much use, but the scripts are while loops that repeat similar commands.