Script to launch open a site repeatedly at regular intervals.

Here is a script which can be used to open a website at regular intervals and close the browser cleanly, repeatedly as long as you don't force close the script. This could be useful when you want to monitor something on a site or a wait for some news on a site and don't want to keep opening it manually.

If you do not want to use firefox, you can replace the firefox command with the command to launch the browser of your choice.
Save the above script as, and execute it.

The script will prompt you to enter the website and delay times

The script will keep launching firefox and opening the site, wait for 30 seconds and close it and launch it again after a delay of 30 seconds.

Create 2017 on the terminal using any character

Here is a bash script which can be used to create the text 2017 on the terminal using any characher of your choice.

Copy the script and save it as Open a terminal and type

It will prompt for the characher which should be used.

We have entered "*" as the characher, and you should see the output as shown below, the colors will be chosen randomly.

Close application cleanly from command line

In Linux we can close any application from the terminal by using the commands

Both these commands will close the application, but not in a clean way ut it will kill them abruptly, for example if we are running firefox and we use

Firefox will be killed abruptly and when we next open it, firefox will ask us whethe we want to restore the previous session as it was not closed properly.

ON the ther hand if we want to close the application cleanly we can use the command

To kill fiefox cleanly all we will have to do is

Firefox will exit cleanly and not get killed in an abrupt manner.

wmctrl can be installed from the package manger in debian based systems using apt

Follow by Email