COP3353 - 2017 Summer
Assignment 3
Due by 11:59pm Monday, July 10, 2017

Bash start-up, scripting

Begin by logging into cop3353.org.

In this assignment, you will create a weather shell script which will be executed every time that you login to the server:

To do this, create a new subdirectory called ~/bin/ and cd into that directory:

Next, write a script called weather that fetches the weather from http://wttr.in and cleans it up a bit with w3m:

You may use any editor that you like (including the very efficient cat) to create this file. Please make sure that you put your name and date of creation in the comments.

Now make it executable:

Now it's time to make sure that it runs each time that you login; create a file named ~/.bash_profile:

Now log out, and re-login back in; if everything is done correctly, you will see something like:

This assignment is due by 11:59pm on Monday, July 10. You don't have to turn anything in; the grader will check this directly on your account on cop3353.org.