Hi.
Setup:
OS:Linux FC4
Shell:bash 3.00
I am experimenting with having a script that fires off a bunch of processes (simple web server monitor) that all will append a line to the same file:
for each in $(cat $FILE); do
script.sh "$EACH" &
done
wait
Each script.sh will do the append. Will this be a problem if I am simply doing an append? Or am I going to need to do some sort of file locking? Unless I have more than 1 cpu, I don't see how more than one process will write an exactly the same instant.
I am open to suggetions
Thanks!
-John
Setup:
OS:Linux FC4
Shell:bash 3.00
I am experimenting with having a script that fires off a bunch of processes (simple web server monitor) that all will append a line to the same file:
for each in $(cat $FILE); do
script.sh "$EACH" &
done
wait
Each script.sh will do the append. Will this be a problem if I am simply doing an append? Or am I going to need to do some sort of file locking? Unless I have more than 1 cpu, I don't see how more than one process will write an exactly the same instant.
I am open to suggetions
Thanks!
-John