
Where can I get free tips about Linux shell script programming?
It's not uncommon for me to receive email from people asking for information that's covered in one or more of my books, and this morning I received a message asking about good places to go online to learn more about shell script programming. My answer, of course, is to buy a copy of my best selling book Wicked Cool Shell Scripts, but if that's not in your budget, there's another possibility to explore.
Please take a minute and check out my ever-growing column archive at http://linux.intuitive.com/ and if it looks good, please subscribe to the magazine or at least bookmark the page and come back every month for a new installment of my column. There are plenty of other online resources too, of course. You need but pop over to Google and search for "unix shell script programming" or "shell scripting tutorial" or "shell scripting guide" (etc etc) to find them. I'll also recommend another magazine that's now in online form: Unix Review.
Help others find this article at Del.icio.us, Digg, Netscape, Reddit, and Simpy.
Categorized:
Shell Script Programming
(Article 3735)
Tagged: Previous: How not to build traffic: respond to email solicitations of Link Exchanges Next: Interesting new Google Adsense Capabilities Subscribe!
Never miss another useful Q&A article again! Subscribe to AskDaveTaylor with Google Reader. Can a shell script read and process a file which is continuously being written to (like the --follow option in tail)? Basically I would like to read a log file and when I find a certain string, generate a firewall entry to block this IP. The script needs to continuously read this file, not a one time shot. Posted by: Avi at October 13, 2004 9:46 PMHmmm.... that's an interesting question. Let's see.... I think I would use some sort of loop where I'd use 'tail -f' on the relevant file, then sleep some period of time, then check the file again for updates. If you keep track of the lines in the file, you could always use that as a change marker (though you'd sometimes be off an iteration because of the file changing between the 'wc' call and the actual test of the returned value). But it should be quite doable! Posted by: Dave Taylor at October 15, 2004 12:15 AMWhat I did for now, until I think of (or find) a better way: tail -f /var/log/mail/info writes into a fifo Where block_ips is the shell script that processes the log file. Posted by: Avi at October 15, 2004 9:32 PMI have a lot to say, but ...
I do have a comment, now that you mention it!
|
![]()
Search
Find just the answers you seek from among our 1700+ free tech support articles by using our Lijit search engine.
Help!
Subscribe to
Ask Dave Taylor!
Free Updates!
Sign up and get free weekly updates and special offers on books, seminars, workshops and more.
Articles and Reviews
Auctions and Online Shopping Blogs and RSS Feeds Building Web site traffic Business and Management Cell Phones and Mobile Phones CGI Scripts and Web Site Programming Computer and Internet Basics d) None of the Above HTML and CSS Mac OS X Help MySpace, Facebook, Twitter and Social Network Help Pay Per Click (PPC) Search Engine Optimization Shell Script Programming Sony PSP, MP3 Players, Etc. The Writing Business Unix and Linux Help Video Game Tips and Help Windows Help
Recent Entries
Join the List!
Book Links
|