Linux Step By Steps

NEAT TRICKS

The following are two simple script lines to wet your appetite for further reading


From: Peck Dickens <peck_d@bellsouth.net>

I've been promising to show you things that are guru in nature with regards to scripting. Run this:

#!/bin/sh
# First shell script with "dialog"
dialog --title "Hi Buckhwheat!" \
--msgbox "\n End of tip one !" 6 25



From: Andy Bradford <andyb@calderasystems.com>

I ran it... it was cool. I agree completely with the power of two lines... Here's my little two line addition:

#!/usr/bin/wish
button .dialog -text "Hi Buckwheat!" -command exit
pack .dialog -padx 2 -pady 2

This has to be run in X though. :-)