Giter Site home page Giter Site logo

bash_scripting's Introduction

All code written by Liam Quinlan, except where author explicitly stated.

Instructions for execution.

Part 1:

Simply execute the script using ./part1.sh while within the folder part1. This will download the movie ratings list, extract the necessary films and store them in a file names topRatedFilms.txt. The word count of this file is 16660. So we have a total of 16,660 films with a rating above 7.

Part 2:

The daemonLog file will log a random film from the topRatedFilms.txt file stored in part1. Please note, to run this on your system you must amend the path that that is pointed to in the class ReadLinesFromFile.java. To do this, open the class ReadLinesFromFile.java located in the package ie.dit. Currently the path points to "/home/ubuntu/Documents/Assignments/Linux/Assignment1/part1/topRatedFilms.txt". This must be modified to point to the location of (your path)/Assignment1/part1/topRatedFilms.txt.

To start the script type ./daemon.sh start when in the directory daemonLog. This will start the java application and log random films to the file logs/logger.out. This is added to every 5 seconds and a new file is created every hour using a daily rolling file appender.

Part 3:

bash_scripting's People

Contributors

liamq82 avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.