Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  • Users: JamesOwen
  • Order by date
  1. JamesOwen

    Help with file processing code

    Thank you.
  2. JamesOwen

    Please help with this AWK and UNIX code

    HI Guy's Can I please get some help with this code. I have xml feed file which rapidly changing temporary file and I need to capture the content of this file as soon as data arrives. Example of the data [date+time], message=[DATA= "<?xml version="1.0?"><data changeMsg><NAME="John...
  3. JamesOwen

    Help with file processing code

    @tarn, thank you this is a good place to start, but the problem is that i need to do some counts like the ones in my sample output. 8:30,Male,23,1 8:31,Female,23,1 8:32,Female,30,4 8:33,Male,50,10 Also I am not sure where you parsing the xml messages in this code, can you please help with...
  4. JamesOwen

    Help with file processing code

    This part of my code should be the part which is pausing the code for 2 minutes and also does the counting. awk 'BEGIN { INTERVAL=120; "date +%s"|getline sec; NEXT=sec+120;} { if(sec >= NEXT) { printf( "\nSummary\n" ); for( x in agcount )...
  5. JamesOwen

    Help with file processing code

    Guy’s Thanks for helping. I have tried your suggestions, the only problem is that still I can’t loop only for 2 minutes them pause the process to write to another file then start from the same place again without processing the data that has been process already. @tarn Thank you for...
  6. JamesOwen

    Help with file processing code

    Yes the file is overwritten and this is why I was thinking of using a pipe.
  7. JamesOwen

    Help with file processing code

    @Annihilannic I have tried to use “tail -f” but the only problem with this is that as I get new data it will mean the old data is gone. This is rapid changing file that I need to process the data as soon as it arrives. @tarn I have tried to break the code into parts but still I am not getting...
  8. JamesOwen

    Help with file processing code

    Hi guys, Thank you for the help. @tarn Yes messages will have a date and time stamp but time in the output example is current time meaning when ever the messages were processed. I am new to programming, would please be able to help me with examples for steps 1 to 5. Thanks James
  9. JamesOwen

    Help with file processing code

    Every two minute should contain new data and it shouldn't process the old data again. It shouldn't also process the entire file at once but only content of 2 minutes. Date and time. Should be created within the process. I have tried to put sleep 120 but it doesn't work.is this something you...
  10. JamesOwen

    Help with file processing code

    Yes it doesn't loop for two minutes and also it does print any output out.
  11. JamesOwen

    Help with file processing code

    Sorry just to add i Can't use cron schedular or gawk. Thanks James
  12. JamesOwen

    Help with file processing code

    HI Guy's Can I please get some help with this code. I have xml feed file which rapidly changing temporary file and I need to capture the content of this file as soon as data arrives. Example of the data [date+time], message=[DATA= “<?xml version=”1.0?”><data changeMsg><NAME=”John...

Part and Inventory Search

Back
Top