![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Expert Programmer
|
Anyway as of recently I am looking at finally setting up my crontab so that I can manage all of the mundane tasks I tend to do by hand once a week
ie: updating software, updating my slocate database, prelinking executable files, rotating logs, and managing system status reports, etc.... Thing is in order to do this I want to be able to script the commands that are being executed to run and respond in very specific circumstances... for instance if I am running on battery power I do not want slocate to execute. And if something fails I want an email sent to my inbox giving me the information I need to know about the failure... Of course the best way to do this is to use Perl/PHP/or BASH... and since I know all but BASH I figured now would be just as good a time as any to learn how to use it so that I can nicely configure my crontab. So at long last I am wondering if anyone recommends any good short tutorials? before I go on figureing it all out the hard way ![]()
__________________
Clifford Matthew Roche <geek@cliffordroche.com> Web Hosting: http://www.crd-hosting.com Consulting: http://www.crdev-consulting.com |
|
|
|
|
|
#2 |
|
Programming Guru
![]() ![]() ![]() |
I refer to this one and a few others occasionally...
http://www.complex-ite.net/tutorials/shellscript/HTML/
__________________
http://jasonpowers.net "There are a thousand hacking at the branches of evil to one who is striking at the root." |
|
|
|
|
|
#3 |
|
Programming Guru
![]() ![]() |
This is a good Place to start.
__________________
Profanity is the one language that all programmers understand. Check out my Blog <---updated Nov 30 2007! |
|
|
|
|
|
#4 |
|
Expert Programmer
|
Heh, thanks guys
![]() Actually i decided that I was going to go with Perl. I have not really had a chance to work with Perl a whole lot and would like to get better at dealing with it so I am going to write all my scripts in the wonderful language that is Perl. But no worries, you're posts are not in vain since I really would like to learn BASH scripting anyway.
__________________
Clifford Matthew Roche <geek@cliffordroche.com> Web Hosting: http://www.crd-hosting.com Consulting: http://www.crdev-consulting.com |
|
|
|
|
|
#5 |
|
Programming Guru
![]() ![]() |
BASH scripting is really neat and i found it pretty easy to pick up.
__________________
Profanity is the one language that all programmers understand. Check out my Blog <---updated Nov 30 2007! |
|
|
|
|
|
#6 |
|
Programming Guru
![]() ![]() ![]() |
I'd like to switch from BASH a bit and do some Perl myself... I need to brush up on Perl some more... I don't use it as often as I use BASH.
__________________
http://jasonpowers.net "There are a thousand hacking at the branches of evil to one who is striking at the root." |
|
|
|
|
|
#7 |
|
Programming Guru
![]() ![]() |
Never Used Perl.
__________________
Profanity is the one language that all programmers understand. Check out my Blog <---updated Nov 30 2007! |
|
|
|
|
|
#8 |
|
Expert Programmer
|
Perl is probably one of the best scripting languages to date, if you can wrap your mind around it...
__________________
Clifford Matthew Roche <geek@cliffordroche.com> Web Hosting: http://www.crd-hosting.com Consulting: http://www.crdev-consulting.com |
|
|
|
|
|
#9 |
|
Newbie
Join Date: Aug 2004
Location: Florida
Posts: 11
Rep Power: 0
![]() |
Actually, if you want to learn another language, learn Python ... it's more stable than Perl, at least as far as the language itself is concerned ... Perl gets updated too often IMHO, and it tends to incorporate a lot of (really) bad code -- hard to read/understand .... plus, when the language itself gets updated, things suddenly break .... had it happen a few times too many. Python has a good support community and is fairly easy to learn / understand. The only oddity about it is that you have to be meticulous about your code indentation as the language uses that to determine what block of code belongs to which function/if/for etc. Once you get used to that, the rest of it flows relatively easily. If you do go the Python route, I suggest getting a copy of O'Reilly's Python handbook .... it's a small paperback book, and costs about US$15 ... I've used my copy so much that I wore out the spine in it
... it's very handy to have when you're learning the language, and even after you've learned it and need to refer back to some call that you don't normally use.Python Home Vaults of Parnassus --- Python modules galore |
|
|
|
|
|
#10 | |
|
Programming Guru
![]() ![]() |
Quote:
__________________
Profanity is the one language that all programmers understand. Check out my Blog <---updated Nov 30 2007! |
|
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|