well, so the copy didn't work. it required me to place 'use File::Copy;' 
in my script, but i got an error message. 

to be more specific, i want to do this: read and delete all of the lines 
from a log file, except for the first one. i keep thinking grep, but 
isn't that only a unix command? and it doesn't delete.

basically, for anyuser to write to my logfile, it has to be world 
writeable. but my boss doesn't like the possibility of someone tampering 
with our data. unfortunately, we are restricted to afs and anyone could 
write to that file. so here is the compromise:

i am writing a script that will read and delete all of the lines, but the 
first one, and copy the data into a file in a directory where there 
aren't any write permissions. we are going to run this script every night 
at 11:59 PM to gather the day's logfile.

don't ask me, i just work here :)

Reply via email to