Linux Reality Forums
Welcome, Guest. Please login or register.
Did you miss your activation email?
July 19, 2008, 01:51:42 PM
17785 Posts in 2287 Topics by 1360 Members
Latest Member: sgrggi
Home Help Search Login Register
Linux Reality Forums  |  Linux Reality Podcast  |  Linux Reality Episodes  |  Episode 98 - Super Basic Shell Scripting « previous next »
Pages: [1] Print
Author Topic: Episode 98 - Super Basic Shell Scripting  (Read 2152 times)
Chess
Administrator
*
Posts: 1058



View Profile WWW
Episode 98 - Super Basic Shell Scripting
« on: March 12, 2008, 07:51:52 AM »

In this episode: a generalized discussion of shell scripts with some basic examples of how they can be useful. Here are some additional resources: pdf presentation; online slide presentation; Shell Scripting Tutorial; Quick Guide to Writing Scripts; UNIX Shell Scripting.

http://www.linuxreality.com/podcast/episode-98-super-basic-shell-scripting/
Logged

mjjzf
Sr. Member
****
Posts: 401



View Profile WWW
Re: Episode 98 - Super Basic Shell Scripting
« Reply #1 on: March 14, 2008, 08:18:54 AM »

Nice little feature presentation. I find that Linux Command is a useful site for moving on further.
Logged

angelorohit
Newbie
*
Posts: 13



View Profile
Re: Episode 98 - Super Basic Shell Scripting
« Reply #2 on: March 15, 2008, 05:03:17 AM »

I found the online FSL presentation on shell scripting to be particularly useful. It's cool that even folks involved in medical imaging have a reason to write scripts.  Smiley
Logged

"I saw the Angel in the marble and carved until I set him free." - MichelAngelo
mjjzf
Sr. Member
****
Posts: 401



View Profile WWW
Re: Episode 98 - Super Basic Shell Scripting
« Reply #3 on: March 16, 2008, 04:47:51 PM »

Did you try playing with Zenity? It is very good for making shell scripts return some nice GTK2 dialog boxes.
For instance, I have a button on my Xfce tool bar to execute the following script:
Code:
dhcpcd ath0 &&
zenity --info --text "You are now online with ath0." &&
ntpdate ntp.cyberdoc.dk &&
zenity --info --text "NTP has updated the system clock."

It looks like shown on this screenshot.
Logged

DervMan
Newbie
*
Posts: 2


View Profile
Re: Episode 98 - Super Basic Shell Scripting
« Reply #4 on: March 18, 2008, 07:48:44 AM »

Anyone have a link to the system monitoring tool Chess referred to towards the end of podcast? It's not clear from the show how it's spelt.

Thanks

In this episode: a generalized discussion of shell scripts with some basic examples of how they can be useful. Here are some additional resources: pdf presentation; online slide presentation; Shell Scripting Tutorial; Quick Guide to Writing Scripts; UNIX Shell Scripting.

http://www.linuxreality.com/podcast/episode-98-super-basic-shell-scripting/

Logged
mjjzf
Sr. Member
****
Posts: 401



View Profile WWW
Re: Episode 98 - Super Basic Shell Scripting
« Reply #5 on: March 18, 2008, 08:01:06 AM »

That would be Conky.
Logged

thelastknowngod
Global Moderator
*
Posts: 2177



View Profile WWW
Re: Episode 98 - Super Basic Shell Scripting
« Reply #6 on: March 20, 2008, 04:00:29 AM »

Anyone have a link to the system monitoring tool Chess referred to towards the end of podcast? It's not clear from the show how it's spelt.

Thanks

there is a really awesome thread in the ubuntu forums about conky. people post a screenshot with their .conkyrc file. good to look to see about new ideas and color schemes.

http://ubuntuforums.org/showthread.php?t=281865
Logged


FiremothPilot
Newbie
*
Posts: 2


Firemoth Bravo, proceed to WeatherShip Theta...


View Profile
Re: Episode 98 - Super Basic Shell Scripting
« Reply #7 on: May 31, 2008, 12:06:30 AM »

Near the end of the episode, Chess mentions creating a directory for all of your scripts and then adding that directory to your path in the '$HOME/.bashrc' file.

I am running Ubuntu Gutsy, and I cannot find any mention of a path in my .bashrc file.

Help?
Logged

§
ajlewis2
Hero Member
*****
Posts: 620



View Profile WWW
Re: Episode 98 - Super Basic Shell Scripting
« Reply #8 on: May 31, 2008, 05:31:37 AM »


I am running Ubuntu Gutsy, and I cannot find any mention of a path in my .bashrc file.

I find it in ~/.bash_profile.  Check there.  It looks like this and I think it came that way by default:

# set PATH so it includes user's private bin if it exists
if [ -d ~/bin ] ; then
    PATH=~/bin:"${PATH}"
fi
Logged

FiremothPilot
Newbie
*
Posts: 2


Firemoth Bravo, proceed to WeatherShip Theta...


View Profile
Re: Episode 98 - Super Basic Shell Scripting
« Reply #9 on: May 31, 2008, 11:23:26 PM »

So this means that if I create the directory $HOME/bin and drop scripts in it, my profile is already set up such that I can execute said scripts without editing my bash_profile?

Logged

§
ajlewis2
Hero Member
*****
Posts: 620



View Profile WWW
Re: Episode 98 - Super Basic Shell Scripting
« Reply #10 on: June 01, 2008, 05:43:31 AM »

Yes, if you have that in your ~/.bash_profile already. :-)
Logged

Pages: [1] Print 
« previous next »
Jump to:  


Renegade Motorhomes - Cheap Car Insurance - Savings Accounts - Secured Loans