This week's book giveaway is in the Kotlin forum.
We're giving away four copies of Kotlin in Action and have Dmitry Jemerov & Svetlana Isakova on-line!
See this thread for details.
Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

java IO or Shell Script  RSS feed

Arjun Shastry
Ranch Hand
Posts: 1906
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
One third party application writes data to log file .Data format is text. Log file(say orig.log) is created daily.Maximum size of log file is set to 1 GB.Requirement is to to write a program
1) Which will rename this log file(to say temp.log) and change some records as per requirement.
2)Program will append the entire contents of this log file to some other file(say-Processed.log).
3)Program will delete temp.log.
4)Program will be like scheduler-should be able to perform 1,2,3 at specific time interval like 15 minutes/1 Hr etc
Is java suitable for this? or Shell Script? any other option?
(all files,third party application and this program will be on same machine).

  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!