Search the web
Sign In
New User? Sign Up
geeksthatgawk · for GNU Awk questions & discussions
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Hear how Yahoo! Groups has changed the lives of others. Take me there.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
How does Awk Handle Open Files?   Message List  
Reply | Forward Message #217 of 221 |
How does awk handle open files? Suppose I am running a cron job to
find files that are downloaded to a directory via sftp. Every 10
minutes, I want to process the files using an awk script and move them
to another directory. What would happen if the awk script was fired
and the file was not finished downloading?

Would awk handle it gracefully or would I have to account for it in a
unix script?

Thanks

Any assistance would be greatly appreciated

*/10 * * * * /bin/process_sun.sh > /dev/null 2>&1

for FILE in `find /home/Upload/* -prune -type f -newer TIMEFILE`
do
gawk -f convert_sunterra.awk $FILE
done




Mon Feb 5, 2007 11:15 pm

goodmis
Online Now Online Now
Send Email Send Email

Forward
Message #217 of 221 |
Expand Messages Author Sort by Date

How does awk handle open files? Suppose I am running a cron job to find files that are downloaded to a directory via sftp. Every 10 minutes, I want to...
goodmis
Online Now Send Email
Feb 5, 2007
11:15 pm
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help