contrex, I tried to PM you but it said you had blocked my message.
Is the advice above actually dangerous?
If so, Fen_Li should remove it.
I looked in my PM settings & somehow it was set to ignore all messages! (asterisk in ignore list box). Don't know how that happened.
Well, after I asked why the OP wanted a script to do what he asked, a number of people replied that the OP was asking for a script for a "fork bomb". Well, a fork bomb is actually something different. The fork bomb is a form of denial of service attack against a computer system that implements the fork operation, or equivalent functionality whereby a running process can create another running process.
What the OP asked for was a script which would continue copying a file indefinitely. The script supplied by Fen_Li, if run on a Windows system, would continue until the drive or partition was full. It could be copied, by a person who could not have dreamed it up themselves, onto a floppy or pendrive or CDROM, or emailed into a school or work environment, where it would create havoc if run on machines in that environment by a malicious* person.
* see Fen_Li's reply to me.