<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
    <channel>
        <title><![CDATA[Discussion]]></title>
        <description><![CDATA[]]></description>
        <link>http://americymrunet.jamroomhosting.com/feed/group_discuss</link>
        <lastBuildDate>Mon, 06 Apr 2026 05:32:18 +0100</lastBuildDate>
        <atom:link href="http://americymrunet.jamroomhosting.com/feed/group_discuss/limit=100/group_id=23" rel="self" type="application/rss+xml" />
                    <item>
                <title><![CDATA[Linux Users Group: Bash Scripting For Buffoons - NoName Script - @ceri-shaw]]></title>
                <link>http://americymrunet.jamroomhosting.com/ceri-shaw/group_discuss/150/bash-scripting-for-buffoons-noname-script</link>
                <guid>http://americymrunet.jamroomhosting.com/ceri-shaw/group_discuss/150</guid>
                <description><![CDATA[<br><br>
  NoName Script<br>  <br><br>
<br><br>
   ⇦ Back to 'Bash Scripting For Buffoons'  <br>
 This is an attempt to do the same thing as the earlier 'Bills' script  utilizing the excellent ' dialog ' program which enables you to present a 'pseudo' GUI within the shell ( using the ncurses library ). You will need to install 'dialog' if you dont already have it and once again it is to be found in the Debian or Ubuntu repositories. This script is not complete but it does display the menu correctly. After that it's mostly downhill. You will need to create a folder called 'vault' in your home folder if you want to try and make this function. Best of luck!<br>
  #!/bin/bash<br>  # Script for controlling access to encrypted directory.<br>  #documents<br><br>  while [ 0 ]; do<br>  pwd &gt; /tmp/pd<br>  PD=" `cat /tmp/pd` "<br>  dialog --title "Enter the Vault" \<br>   --radiolist "Choose one of the following or press &lt;Cancel&gt; to exit" 11 40 6 \<br>     "1" "Open vault" off\<br>     "2" "Close vault" off\<br>     "3" "Append a file" ON 2&gt;/tmp/ans<br>     if [ $? = 1 ]; then<br>     rm -f /tmp/ans<br>     clear<br>     exit 0<br>  fi<br>  R="`cat /tmp/ans`"<br>  if [ $R = "1" ]; then<br>  chmod 700 ~/vault ;<br>  ccrypt -d ~/vault/* ;<br>  nautilus ~/vault;<br>  elif [ $R = "2" ]; then<br>  chmod 700 ~/vault ;<br>  ccrypt -e ~/vault/* ;<br>  chmod 000 ~/vault ;<br>  elif [ $R = "3" ]; then<br>  dialog --inputbox "Enter the file name:" 8 40 2&gt;/tmp/answer<br>  F="`cat /tmp/answer`"<br>  rm -f /tmp/answer<br>  chmod 700 ~/vault ;<br>  ccrypt -d ~/vault/*<br>  for ea in $F; do mv $ea ~/vault; done<br>  cd ~/vault<br>  for i in $ea; do mv {,"`date`"}$ea ; done<br>  ccrypt -e ~/vault/*<br>  chmod 000 ~/vault ;<br>  cd $PD<br>  fi<br>  rm -f /tmp/pd<br>  done <br>
 ]]></description>
                <pubDate>Sun, 28 Feb 2016 04:34:54 +0000</pubDate>
            </item>
                    <item>
                <title><![CDATA[Linux Users Group: Bash Scripting For Buffoons - Finder Script - @ceri-shaw]]></title>
                <link>http://americymrunet.jamroomhosting.com/ceri-shaw/group_discuss/149/bash-scripting-for-buffoons-finder-script</link>
                <guid>http://americymrunet.jamroomhosting.com/ceri-shaw/group_discuss/149</guid>
                <description><![CDATA[<br><br>
  Finder Script<br>  <br><br>
<br><br>
   ⇦ Back to 'Bash Scripting For Buffoons'  <br>
  OK so this one is just plain dumb! It represents an attempt on my part to develop a basic desktop search script. However it relied upon a host of specific directory locations and worked very badly if at all in the majority of cases. Not recommended! <br>
   <br><br>    #!/bin/bash <br style="color:#000000;">   menu () { <br style="color:#000000;">   echo "===========================================================" <br style="color:#000000;">   echo "Please enter search extension in the format *.&lt;extension&gt;:-" <br style="color:#000000;">   read  FIND <br style="color:#000000;">   echo " " <br style="color:#000000;">   echo "Please enter your search directory using the absolute path:-" <br style="color:#000000;">   read  PLACE <br style="color:#000000;">   echo " " <br style="color:#000000;">   echo "If you wish to copy the files to the view directory select 'a'." <br style="color:#000000;">   echo "If you wish to locate the files select 'b'." <br style="color:#000000;">   echo "If you wish to locate and copy the files  select 'c'." <br style="color:#000000;">   echo " " <br style="color:#000000;">   echo "a copy" $FIND "in" $PLACE <br style="color:#000000;">   echo "b locate" $FIND "in" $PLACE <br style="color:#000000;">   echo "c locate and copy" $FIND "in" $PLACE <br style="color:#000000;">   echo " " <br style="color:#000000;">   read  NAME <br style="color:#000000;">   case  "$NAME" in <br style="color:#000000;">   a) find $PLACE -iname $FIND  2&gt; /dev/null -exec cp -f --target-directory /home/userone/finder/view  {}  \; ;; <br style="color:#000000;">   b) find $PLACE -iname $FIND -ls  &gt;&gt; /home/userone/finder/location 2&gt; /dev/null  ;; <br style="color:#000000;">   c) find $PLACE -iname $FIND -ls  &gt;&gt; /home/userone/finder/location 2&gt; /dev/null ; find $PLACE -iname $FIND  2&gt; /dev/null -exec cp -f --target-directory /home/userone/finder/view  {}  \; ;; <br style="color:#000000;">   *) echo "Not a valid option!" <br style="color:#000000;">   esac <br style="color:#000000;">   echo " " <br style="color:#000000;">   echo "Done" <br style="color:#000000;">   echo " " <br style="color:#000000;">    } <br style="color:#000000;">   menu <br style="color:#000000;">   menu <br style="color:#000000;">   exit 0  <br>    <br>
  <br>
 ]]></description>
                <pubDate>Sun, 28 Feb 2016 04:31:11 +0000</pubDate>
            </item>
                    <item>
                <title><![CDATA[Linux Users Group: Quick Hide Script - Bash Scripting For Buffoons - @ceri-shaw]]></title>
                <link>http://americymrunet.jamroomhosting.com/ceri-shaw/group_discuss/148/quick-hide-script-bash-scripting-for-buffoons</link>
                <guid>http://americymrunet.jamroomhosting.com/ceri-shaw/group_discuss/148</guid>
                <description><![CDATA[<br><br>
  Quick Hide Script<br>  <br><br>
<br><br>
   ⇦ Back to 'Bash Scripting For Buffoons'  <br>
  This program will whisk a collection of .jpg's from your desktop, tar and encrypt them and hide the encrypted file deep in the hidden folder hierarchy . It will also clear your '.thumbnails/normal' cache and your firefox cache all in one go. I cannot imagine why I wrote this script...it must have been a hypothetical exercise. Unless of course it has something to do with the subject of this post (sadly now defunct). It was all a long time ago. The script makes use of the ' tar ' and ' gpg ' commands.  You will, of course, need to tweak it to meet your own requirements. Have fun! <br>
<br>  #!/bin/bash<br>  echo "" ;<br>  echo "Enter Foldername" ;<br>  read filename ;<br>  mv *.jpg $filename 2&gt; /dev/null ;<br>  mv *.JPG $filename 2&gt; /dev/null ;<br>  mv *.jpeg $filename 2&gt; /dev/null ;<br>  mv *.JPEG $filename 2&gt; /dev/null ;<br>  tar cf $filename.tar $filename ;<br>  gpg -c -a $filename.tar ;<br>  rm -rf $filename.tar ;<br>  rm -rf $filename ;<br>  mv $filename.tar.asc .$filename.tar.asc ;<br>  mv .*.tar.asc .kde/share/config/Tar2 ;<br>  rm /home/userthree/.thumbnails/normal/*.png 2&gt; /dev/null ;<br>  rm /home/userthree/.mozilla/firefox/lrm26qna.default/Cache/*.png 2&gt; /dev/null ;<br>  echo "" ;<br>  echo "Done" ;<br>  echo "" ;<br><br>  exit 0     <br>   <br><br>
 ]]></description>
                <pubDate>Sun, 28 Feb 2016 04:27:36 +0000</pubDate>
            </item>
                    <item>
                <title><![CDATA[Linux Users Group: Bash Scripting For Buffoons - Bills Script - @ceri-shaw]]></title>
                <link>http://americymrunet.jamroomhosting.com/ceri-shaw/group_discuss/147/bash-scripting-for-buffoons-bills-script</link>
                <guid>http://americymrunet.jamroomhosting.com/ceri-shaw/group_discuss/147</guid>
                <description><![CDATA[<br><br>
<br><br>
  Bills Script <br><br>
<br><br>
   ⇦ Back to 'Bash Scripting For Buffoons'  <br>
  If you are in the habit of paying bills online you will no doubt be familiar with the exhortation to print a copy of your payment confirmation for your records. Why? You have a computer. Why would you not screenshot your confirmation and store it on your hard drive rather than piling up bits of paper which you will inevitably lose? Of course any financial records kept on your hard drive need to be stored securely. The following script allows you to do precisely that.  It encrypts and datestamps any .png in the folder in which it resides and moves it to the 'bills' folder. <br>
  You will need to create a bills folder in 'Documents' and install the ' ccrypt ' program before it will work. You will also need to develop the habit of storing paymentconfirmations as screenshots. Unfortunately the script is not selective and it will consign any and all .png's to the 'bills' folder  whether you want them there or not. The menu offers 'Open', "Close', "Append' and "List' options all of which are self-explanatory. This script has a number of amusing quirks and deficiencies as a consequence of under-development. <br>
  I suppose it could be useful, it just needs    a lot more work. <br>
<br>  #!/bin/bash <br style="color:#000000;">  space () { <br style="color:#000000;">   echo " " <br style="color:#000000;">   echo "Done" <br style="color:#000000;">   echo " " <br style="color:#000000;">   } <br style="color:#000000;">  open () { <br style="color:#000000;">  ccrypt -d ~/Documents/bills/*.cpt ; <br style="color:#000000;">  nautilus ~/Documents/bills ; <br style="color:#000000;">  space ; <br style="color:#000000;">    } <br style="color:#000000;">  close () { <br style="color:#000000;">  ccrypt -e ~/Documents/bills/*.png ; <br style="color:#000000;">  space ; <br style="color:#000000;">   } <br style="color:#000000;">  openadd () { <br style="color:#000000;">  for png in *.png; do mv {,"`date`"}$png; done <br style="color:#000000;">  mv *.png ~/Documents/bills ; <br style="color:#000000;">  ccrypt -e ~/Documents/bills/*.png ; <br style="color:#000000;">  space ; <br style="color:#000000;">   } <br style="color:#000000;">  list () { <br style="color:#000000;">  ls /home/userone/Documents/bills <br style="color:#000000;">  space ; <br style="color:#000000;">  } <br style="color:#000000;">   menu () { <br style="color:#000000;">   echo  "=======================================" <br style="color:#000000;">   echo  "Please select from the following menu:-" <br style="color:#000000;">   echo  " " <br style="color:#000000;">   echo  "1  Open bills folder." <br style="color:#000000;">   echo  "2  Close bills folder." <br style="color:#000000;">   echo  "3  Append to bills folder." <br style="color:#000000;">   echo  "4  List bills folder." <br style="color:#000000;">   echo  " " <br style="color:#000000;">   read  NAME <br style="color:#000000;">   case  "$NAME" in <br style="color:#000000;">   1) <br style="color:#000000;">  open ;; <br style="color:#000000;">   2) <br style="color:#000000;">  close ;; <br style="color:#000000;">   3) <br style="color:#000000;">  openadd ;; <br style="color:#000000;">   4) <br style="color:#000000;">  list ;; <br style="color:#000000;">   esac <br style="color:#000000;">   } <br style="color:#000000;">  menu <br style="color:#000000;"> <br style="color:#000000;">  exit 0<br><br>
 <br>
 <br>
<br><br>
 ]]></description>
                <pubDate>Sun, 28 Feb 2016 04:20:40 +0000</pubDate>
            </item>
                    <item>
                <title><![CDATA[Linux Users Group: Bash Scripting For Buffoons - Snapshot Script - @ceri-shaw]]></title>
                <link>http://americymrunet.jamroomhosting.com/ceri-shaw/group_discuss/146/bash-scripting-for-buffoons-snapshot-script</link>
                <guid>http://americymrunet.jamroomhosting.com/ceri-shaw/group_discuss/146</guid>
                <description><![CDATA[<br><br>
  Snapshot Script<br>  <br><br>
<br><br>
   ⇦ Back to 'Bash Scripting For Buffoons'  <br>
 This script  utilises the ' du ', ' ls ' and ' d  f ' commands to provide a mass of information about the folder in which it is located. The 'df-h' command also gives you a measure of your current disk usage similar to the following:-<br>
 Filesystem   Size  Used Avail Use% Mounted on<br>  /dev/hda1     46G   31G  108G  23% /<br>
 Note that the script is written in such a way that 'ls -lhSR' and 'du -ah/sh' only work with reference to the folder in which they are located. Do not be alarmed when your console shuts down after the script has run. The amazingly useful ' tee ' command has generated a file called 'snapshot' in your current working folder. You will find the output from the command in that file. This script is perhaps a prime candidate for further sophistication and development. At one time I wrote a version that would preserve the current and previous outputs and compare them with the diff command. If you go down that route you can have fun playing with the various output formats that 'diff' provides, for instance, obsessively generating and checking output every two seconds to see if it's somehow different ( which is unlikely ) . I stopped playing with this when I realised that it did nothing that I couldn't accomplish more easily in the GUI. On a 'headless' server though it might still be of some value.<br>
 #!/bin/bash<br>  snap ()<br>  {<br>  date<br>  echo " "<br>  echo "Snapshot" ;<br>  echo "---------" ;<br>  echo " " ;<br>  echo "ls -lhSR --authorship /home/userone [Showing permissions , size , authorship and last access times of all files and folders]" ;<br>  echo "----------------------------------------------------" ;<br>  echo "  " ;<br>  ls -lhSR --author ;<br>  echo " " ;<br>  echo "du -sh /home/userone [Directory size - Human readable]" ;<br>  echo "----------------------------------------------------" ;<br>  echo "  " ;<br>  du -sh ;<br>  echo " " ;<br>  echo "du -ah /home/userone [Showing sub-directory structure and file size inc. hidden files]" ;<br>  echo "----------------------------------------------------" ;<br>  echo "  " ;<br>  du -ah ;<br>  echo " " ;<br>  echo "df -h /home/userone [Showing amount of disk space on /home partition]" ;<br>  echo "----------------------------------------------------" ;<br>  echo "  "<br>  df -h /home ;<br>  }<br><br>  snap | tee /home/userone/snapshot<br><br>  gedit /home/userone/snapshot<br><br>  exit 0<br>   <br>
  NOTE: In the likely event that your username is not 'userone' you will need to amend the last two lines accordingly. <br>
 ]]></description>
                <pubDate>Sun, 28 Feb 2016 04:13:55 +0000</pubDate>
            </item>
                    <item>
                <title><![CDATA[Linux Users Group: The Linux Command Line For Beginners Part 2 - @ceri-shaw]]></title>
                <link>http://americymrunet.jamroomhosting.com/ceri-shaw/group_discuss/120/the-linux-command-line-for-beginners-part-2</link>
                <guid>http://americymrunet.jamroomhosting.com/ceri-shaw/group_discuss/120</guid>
                <description><![CDATA[<br><br>
  Navigation and More <br><br>
<br><br>
    ⇦ Part 1 Here   <br>
  <br><br>
  ls, cd, mkdir, touch, cat <br><br>
  <br><br>
  gedit <br><br>
 In Part 1 of this series we looked at the wide range of commands available in the Linux Terminal. Now its time to use some of them. Of course we will not be exploring their complete capabilities. For that you will need to consult the relevant 'man' pages but we will be looking at a small subset of commands and exploring basic usage. Let us suppose that we are embarking upon a project that involves the creation of a new sub-directory in the home folder. Let's suppose further that we want to use this folder to store a number of files pertaining to our project that we will need to edit from time to time in a text editor. How would we set this up?<br>
 First lets examine the contents of our home directory. To do this simply type 'ls'. The output of the 'ls' command will reveal something like the following on a pristine install of Ubuntu 7.10:-<br>
 Desktop Documents Music Pictures Public Templates Videos<br>
 Since we are essentially looking for a place to store documents the 'Documents' folder seems like a good place to start. To enter this folder simply type 'cd Documents'. This will take us to the 'Documents' folder where we can once again type 'ls' if we wish to see a list of the contents.<br>
 Now we make our sub-directory. We use the 'mkdir' command for this. Simply type 'mkdir project' and a quick 'ls' will reveal that we now have a sub-directory with that name in the 'Documents' folder. Supposing that we need four files to work on, the following commands will create them in the 'project' folder:-<br>
 1. cd project<br>
 2. touch proj1 proj2 proj3 proj4<br>
 If we run the 'ls' command now in the 'project' folder we see that the four files have been created. In order to open 'proj1' for editing, type 'gedit proj1'. The excellent 'gedit' text editor will appear on screen and we can start entering text.<br>
 Having entered text we save the file and close 'gedit'. If we wish to read the file in the terminal all we have to do is type 'cat proj1' and the text is displayed.<br>
 Of course we have covered a lot of ground in a short time. The above is intended as nothing more than a basic and somewhat superficial introduction to the cd, ls, mkdir, touch and cat commands. A detailed and comprehensive account of their capabilities is to be found in the relevant man pages. It might also be argued that the creation of a sub-directory containing a small number of text files can equally well be accomplished using the graphical file browser. This is true! But some tasks cannot be accomplished so easily, if at all, in the graphical interface and anyone wishing to master the command line should start with the basics.<br>
 The 'cd' and 'ls' commands in tandem allow you to explore the full contents of your Linux system. In order to enter the root directory type 'cd /'. Enter 'ls' and you will be presented with a list of all the folders on your drive which will look something like this:-<br>
 bin dev initrd lib mnt root sys var<br>
 boot etc initrd.img lost+found opt sbin tmp vmlinuz<br>
 cdrom home initrd.img.old media proc srv usr vmlinuz.old<br>
 From here you can 'cd' into any one of these directories and their sub-directories listing the contents as you go with the 'ls' command. To return to your home folder just typ 'cd ~'. To return to the folder above the one that you are currently in, type 'cd ..'. There are resources in the links section below which will help you understand the Linux Directory Structure. Have fun exploring!<br>
 NOTE: In the above example we used a graphical editor - gedit, to create and edit our text files. Some of you may be aware that it is possible to do this in the terminal using the 'vi' editor. Whilst this is perfectly true it is not recommended for beginners. However, for the more adventurous souls amongst you, here is a quick guide to editing with vi:-<br><br>
 1. Open or create a text file - 'vi filename' ( e.g. 'vi proj1' )<br>
 2. Vi will open in 'command mode'. All the things you would normally do in a graphical editor by 'pointing and clicking' with a mouse are accomplished in 'command mode' . If you want to enter text or edit the existing contents of a file youmust enter 'insert' mode. To do this simply press the 'i' key on your keyboard.<br>
 3. Enter your text.<br>
 4. When you have finished editing press the 'Esc' key to re-enter 'command mode'. In order to quit and save, enter the following rather ungainly combination of characters:-<br>
 ':wq!'<br>
 The colon indicates to 'vi' that this is a command. The 'w' and 'q' stand for write and quit. The exclamation mark tells vi to disregard errors.<br>
 If all of this appals or unnerves you stick to 'gedit' or 'Leafpad'.<br>
 ]]></description>
                <pubDate>Thu, 17 Dec 2015 06:04:12 +0000</pubDate>
            </item>
                    <item>
                <title><![CDATA[Linux Users Group: The Linux Command Line For Beginners: Part 1 - @ceri-shaw]]></title>
                <link>http://americymrunet.jamroomhosting.com/ceri-shaw/group_discuss/119/the-linux-command-line-for-beginners-part-1</link>
                <guid>http://americymrunet.jamroomhosting.com/ceri-shaw/group_discuss/119</guid>
                <description><![CDATA[<br><br>
  Opening The Terminal For The First Time <br><br>
<br><br>
    ⇦ Part 2 Here   <br>
 <br> Many people coming to Linux for the first time are wary of the command line. It has a fearsome reputation It is supposed to be difficult and hard to grasp. In fact it is a language which you can learn if you choose to, gradually increasing your vocabulary and mastery of the syntax at whatever pace you find comfortable. Of course you do not need to learn it at all in order to use modern user-friendly Linux distributions like Ubuntu but your experience with Linux will be vastly enriched if you take the time to master the basics.<br>
 First things first....lets open the terminal. To do this (on Ubuntu) navigate to Applications--&gt; Accessories--&gt; Terminal. The dreaded black box will open and you will be presented with a prompt. The simplest way to start exploring the massive capabilities of your Linux system is to hit the Tab key twice. You should be presented with something similar to the following:-<br>
 Display all 2594 possibilities? (y or n) (see graphic at the top of the page)<br>
 Your figure will vary according to the number of installed programs you have on your system but nevertheless if you hit the 'y' key you will be presented with a long list of all the available commands on your machine. Just keep hitting the space bar to scroll through it. When you tire of scrolling through a seemingly endless alphabetic list of meaningless names hit 'Ctrl-C' to return to the prompt.<br>
 This is all very well but it would be nice to know what these commands do. This is where the famed 'man' command makes its entrance! Almost all the programs on your system have an accompanying man or manual page. Lets suppose you noticed the 'cd' command in the earlier listing and you wanted to know what it does. You would simply type "man cd" at the prompt. The appropriate manual page will be presented in the terminal. Of course the terminal is not the best place to digest large quantities of text but never fear, almost all the Linux man pages are available online too. Just open your browser and, in this case, search for 'man cd'. Much easier to read! In order to close manual pages in the terminal hit the 'q' key.<br>
 Some of the programs on your system will open in the graphical interface and others will run in the terminal. In order to see the difference try typing 'firefox' which will open the Firefox browser and 'ls' which will list files and folders in the current directory in your terminal. Of course you can always open programs in the graphical interface by clicking on the appropriate icon in the Applications menu but command line programs will only run after being invoked in the terminal.<br>
 As a rule it is not a good idea to run commands in the terminal unless you have researched them and know exactly what they are going to do. Many commands can only be run as the root or administrative user. We will return to this subject later. (see note below)<br>
 So...what practical purpose might what we have learned so far possibly serve? Well let us suppose that you have installed a new program with Add/Remove Programs ( or Synaptic or Apt-get ) and no icon was added to the Applications menu ( this happens frequently ). Let us further suppose that you dont remember the full name of the package but do recall that it started with a 'v'. All you need do is open a terminal , type 'v' and press tab twice to be presented with a list of all the packages on your system whose names begin with 'v'. Having spotted a likely candidate in the list press 'Ctrl-C' to escape and then type the appropriate command. Always assuming you've got the right command your program should appear on the screen ( or in the terminal of course ).<br><br>  NOTE: The superuser or root account on traditional unix/linux systems is god. It alone has the right to administer all particulars of a given system. Ubuntu is not traditional in this respect, allowing regular users to perform administrative tasks if they preface the commands with the sudo command. If you wish to revert to the traditional arrangement you could do worse than consult this article  Rootin' For Root. <br>
 ]]></description>
                <pubDate>Thu, 17 Dec 2015 05:48:27 +0000</pubDate>
            </item>
                    <item>
                <title><![CDATA[Linux Users Group: Quark, Strangeness & Welsh Charm - @ceri-shaw]]></title>
                <link>http://americymrunet.jamroomhosting.com/ceri-shaw/group_discuss/118/quark-strangeness-welsh-charm</link>
                <guid>http://americymrunet.jamroomhosting.com/ceri-shaw/group_discuss/118</guid>
                <description><![CDATA[ Anyone who has attempted to make a linked Table of Contents in Scribus will know that the process is about as intuitive as quantum mechanics. Enter Dai!!!!! Not only is the following video 100% accurate in every detail but it is also entirely intelligible??? Looking forward to perusing some more of Dai's 131 videos on 'Show Me Do'  <br><br>
<br><br>
<br><br>
<br><br>
    ]]></description>
                <pubDate>Thu, 17 Dec 2015 05:43:15 +0000</pubDate>
            </item>
                    <item>
                <title><![CDATA[Linux Users Group: Bash Scripting for Buffoons - Eggtimer Script - @ceri-shaw]]></title>
                <link>http://americymrunet.jamroomhosting.com/ceri-shaw/group_discuss/117/bash-scripting-for-buffoons-eggtimer-script</link>
                <guid>http://americymrunet.jamroomhosting.com/ceri-shaw/group_discuss/117</guid>
                <description><![CDATA[<br><br>
  Eggtimer Script <br><br>
<br><br>
   ⇦ Back to 'Bash Scripting For Buffoons'  <br>
 Yes folks it's an eggtimer, or perhaps more accurately an interval timer. You can tweak it to measure any interval you like but as it stands, it does hard and soft-boiled eggs. It uses the 'case' menu format and a nested 'for' loop to achieve the desired effect. For some reason I decided to call 'menu' as a function. If you want it to beep at the end of the interval you need to have the system 'beep' program installed. For those of you running Ubuntu, it's in the repositories.<br>
 #!/bin/bash<br>  # nested for loop<br>  menu () {<br>  echo "======================================="<br>  echo "Please select from the following menu:-"<br>  echo " "<br>  echo "1 Soft boiled."<br>  echo "2 Hard boiled."<br>  echo " "<br>  read NAME<br>  case "$NAME" in<br>  1)<br>  for i in 1 2 3 4<br>  do<br>  echo -n "Min $i: "<br>  for j in 5 10 15 20 25 30 35 40 45 50 55 60<br>  do<br>  sleep 5<br>  echo -n "$j "<br>  done<br>  echo #output newline<br>  done ;;<br>  2)<br>  for i in 1 2 3 4 5 6 7 8 9 10<br>  do<br>  echo -n "Min $i: "<br>  for j in 5 10 15 20 25 30 35 40 45 50 55 60<br>  do<br>  sleep 5<br>  echo -n "$j "<br>  done<br>  echo #output newline<br>  done ;;<br>  *) echo "Not a valid option!" ;;<br>  esac<br>  }<br>  menu<br>  beep<br>  exit 0<br>
<br>
  

   An exhilarating screen shot of the Bash Eggtimer in action! 
  Download the script here (.txt)   Bash Eggtimer Script   

  
  <br>
 ]]></description>
                <pubDate>Wed, 16 Dec 2015 05:02:45 +0000</pubDate>
            </item>
                    <item>
                <title><![CDATA[Linux Users Group: Bash Scripting for Buffoons - @ceri-shaw]]></title>
                <link>http://americymrunet.jamroomhosting.com/ceri-shaw/group_discuss/116/bash-scripting-for-buffoons</link>
                <guid>http://americymrunet.jamroomhosting.com/ceri-shaw/group_discuss/116</guid>
                <description><![CDATA[<br><br>
  or How I Learned to Love The Command Line <br><br>
<br><br>
  <br>
 Firstly let me say that I am a keen supporter of the 'Ubuntification' (  see footnote  ) of Linux. I use Ubuntu both on the desktop and on the server and if Linux is ever to conquer the desktop a user-friendly GUI is an essential prerequisite. But recently I have become more irritated by proponents of the GUI versus the command line in computing. The GUI is a place of drudgery, where you go to perform routine tasks with the minimum of thought and concentration. The command line on the other hand is a place of enchantment where you go in order to master a new and powerful tongue which will ultimately allow you to accomplish much, much more . Anyone who dismisses it as an anachronism is either a fool or just plain computer illiterate.<br>
 The GUI inhibits creativity by encouraging over-reliance on software ( often proprietary ) which offers only a limited subset of the capabilities of the underlying markup or scripting languages. How often have you heard someone say "Oh I can only do that in Dreamweaver." But, of course, Dreamweaver is nothing more than a brightly colored box with gaudy labels all over it. Webpages are made out of html, css, javascript, flash etc. not GUI buttons. People talk about the irreplacability of productivity software like 'Excel' in which case they might be interested in the following comment from a recent article ( which can be found   here   )<br>
 “you probably don’t see a business user crunching their data in the terminal, do you?”<br>
 YES. Our organization use to do all of our monthly reports in Excel. It took nearly two weeks to compile, aggregate, format and print all of them. We now do everything from a BASH script. It’s scheduled as a Cron job that executes during the night when our offices are closed, takes about 15min. to run, and all of the reports are sitting on the printer when we open.<br>
<br>  My point is that no matter how creative or productive you are or wish to be you cannot afford to ignore the Bash shell. Once mastered it vastly increases productivity and encourages a whole new way of thinking and self-expression.<br>
 Personally, I refuse to learn anything other than by example. My thought processes are far too erratic for logical exposition. But if Bash is a language then it is possible to look upon scripting as an art form. I havent composed any sonnets yet ( mostly limericks so far ) but I live in hope. Ultimately it doesn't matter how much of a disorganised shambles you are, you can still express yourself in Bash.<br>
 In conclusion, for the esoteric ones, I have included a link to some scripts of my own below. These scripts are provided for purposes of entertainment and perhaps edification. Beware...this way madness lies!<br>
 Footnote :- It seems that my employment of the term 'Ubuntification' occasioned some confusion. However, a public spirited contributor to the Dunedin Linux Users Group in new Zealand offers an interesting definition of the term   in this post  .<br><br>
 The scripts below are organised into three sub-categories:-<br>
  Marginally Useful <br>
   Eggtimer Script  <br>
   Snapshot Script  <br>
  Of Dubious Usefulness <br>
   Bills Script  <br>
   Quick Hide  <br>
  Completely Bloody Useless <br>
   Finder Script  <br>
   NoName Script  <br>
 My purpose in presenting them is twofold. Firstly it is hoped that they will amuse persons who have adequately mastered the art of shell-scripting. The sheer fumbling inelegance of some of the 'solutions' on offer is vaguely reminiscent of Rube Goldberg ( or Heath Robinson ). They are also offered as a resource for the novice shell scripter who may be able to cannibalise pieces of the code and put them to a truly useful purpose. There is a brief guide to making scripts executable   on this page   and a list of bash scripting resources    here   .<br>
 ]]></description>
                <pubDate>Wed, 16 Dec 2015 04:11:49 +0000</pubDate>
            </item>
            </channel>
</rss>