gnuWorldOrder_13x12 episode artwork

EPISODE · Mar 18, 2019

gnuWorldOrder_13x12

from GNU World Order Linux Cast · host Klaatu

The journey through the **util-linux** from the **a** package set of Slackware continues. First, a tutorial on `getopt`, an argument parser for Bash and Tcsh. Here is a demonstrative sample script: #!/usr/bin/bash ## or you can just use /bin/sh OPTS=`getopt --options f --long foo --alternative -- "$@"` eval set -- "$OPTS" echo "Raw input: $OPTS" while true ; do case "$1" in -f|--foo) echo "Option f has been toggled on" ; shift ;; --) shift ; break ;; esac done # this outputs anything # left over after parsing # valid options for i in "$@" ; do echo "$i" done You can add more options, and you can add an allowance for arguments. Here is a slightly more complex version of the script: #!/usr/bin/bash OPTS=`getopt --options f,b: --long foo,bar: --alternative -- "$@"` eval set -- "$OPTS" echo "$OPTS" while true ; do case "$1" in -f|--foo) echo "Option f has been toggled on" ; shift ;; -b|--bar) echo "Option b has been set to $2" ; shift 2 ;; --) shift ; break ;; esac done for i in "$@" ; do echo "$i" done After the coffee break, Klaatu covers `kill`. Because he recorded this episode on the same night as the previous episode, he does make reference to some settings from the previous episode (specifically, a hostname setting). That makes this episode a sequel to the previous one, meaning Klaatu owes you an extra episode sometime. Also, `mountpoint`, `mount`, `unmount`, `wdctl` and `watchdog` [gnu.org/software/libc/manual/html_node/Example-of-Getopt.html](https://www.gnu.org/software/libc/manual/html_node/Example-of-Getopt.html) A great article about the `eval` and `set` on [Linux Journal](https://www.linuxjournal.com/content/bash-preserving-whitespace-using-set-and-eval) [Watchdog daemon](http://www.sat.dundee.ac.uk/psc/watchdog/watchdog-testing.html) [Systemd interface to Watchdog](http://0pointer.de/blog/projects/watchdog.html) shasum -a256=7b92289327d6320246fad8021f23e6eb4de506db761f8f199eda02a2ed133e6f

NOW PLAYING

gnuWorldOrder_13x12

0:00 0:00

No transcript for this episode yet

We transcribe on demand. Request one and we'll notify you when it's ready — usually under 10 minutes.

Eat to Live Jenna Fuhrman, Dr. Fuhrman Our health is our most precious gift and smart nutrition can change your life. Each month, join Dr. Fuhrman and his daughter, Jenna Fuhrman as they discuss important topics in the world of nutrition. Eat to Live will change the way you eat and think about food. French Your Way Jessica: Native French teacher founder of French Your Way Boost your French listening skills and test your comprehension with this one of a kind series of podcasts. Get the chance to listen to a real conversation between native speakers talking at normal speed AND customise your learning experience through carefully designed sets of questions (2 levels of difficulty) available for download at www.frenchvoicespodcast.com. All interviews also come with the transcript. French teacher Jessica interviews native speakers of French from around the world who share a bit of their life and passion. Where else would you meet in one same place a French yoga teacher based in Melbourne, a soap manufacturer from Provence, or a couple cycling around the world? HOMELAND HOMELAND The Church is a body not a building. It's the bride of Jesus Christ! Jesus is coming back for a mature bride. That means it's time for the church of Jesus Christ to move from milk to meat. This is the hour of maturity!HOMELAND is an announcement that the church is being set free. Only the church has the ability to transform the world. The kingdom's of this world will become the kingdoms of our Lord and Savior!All of creation has been waiting for this moment! Sons and daughters of God are rising up and taking their seat! XXX Tech by SOVRYN Dr. Brian Sovryn The crossroads between technology, sensuality, and metaphysics - and the longest running anarchist podcast in the world! Brought to you by Dr. Brian Sovryn.

Frequently Asked Questions

How long is this episode of GNU World Order Linux Cast?

Episode duration information is not available.

When was this GNU World Order Linux Cast episode published?

This episode was published on March 18, 2019.

What is this episode about?

The journey through the **util-linux** from the **a** package set of Slackware continues. First, a tutorial on `getopt`, an argument parser for Bash and Tcsh. Here is a demonstrative sample script: #!/usr/bin/bash ## or you can...

Can I download this GNU World Order Linux Cast episode?

Yes, you can download this episode by clicking the download button on the episode player, or subscribe to the podcast in your preferred podcast app for automatic downloads.
URL copied to clipboard!