17785 Posts in 2287 Topics by 1360 Members
Latest Member: sgrggi
|
|
Pages: [1]
|
 |
|
|
Author
|
Topic: Episode 98 - Super Basic Shell Scripting (Read 2152 times)
|
|
|
|
mjjzf
|
Nice little feature presentation. I find that Linux Command is a useful site for moving on further.
|
|
|
|
|
Logged
|
|
|
|
angelorohit
Newbie

Posts: 13
|
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. 
|
|
|
|
|
Logged
|
"I saw the Angel in the marble and carved until I set him free." - MichelAngelo
|
|
|
|
mjjzf
|
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: 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
|
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
|
|
|
|
|
Logged
|
|
|
|
|
|
thelastknowngod
Global Moderator

Posts: 2177
|
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...
|
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
|
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...
|
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
|
Yes, if you have that in your ~/.bash_profile already. :-)
|
|
|
|
|
Logged
|
|
|
|
|
|
Pages: [1]
|
|
|
 |
|