21 Mar
2005
21 Mar
'05
07:10
Torsten Foertsch wrote: [...]
öffne ich das File ohne O_APPEND, klappt es:
r2@opi:~> rm file r2@opi:~> perl -e 'open X,">file" and seek X, 2000,0; print X "x"; close X;' r2@opi:~> ls -l file -rw-r--r-- 1 r2 users 2001 2005-03-18 14:49 file
mit O_APPEND ist es nur ein Byte lang:
r2@opi:~> rm file r2@opi:~> perl -e 'open X,">>file" and seek X, 2000,0; print X "x"; close X;' r2@opi:~> ls -l file -rw-r--r-- 1 r2 users 1 2005-03-18 14:50 file
Danke, nun habe ich sogar ich es verstanden. Andreas (der wohl doch langsam alt wird)