Deprecated: Assigning the return value of new by reference is deprecated in /home/studioda/distrojockey.com/wp-includes/cache.php on line 33
Distro Jockey
Deprecated: Function set_magic_quotes_runtime() is deprecated in /home/studioda/distrojockey.com/wp-includes/thems.php on line 132

Deprecated: Function set_magic_quotes_runtime() is deprecated in /home/studioda/distrojockey.com/wp-includes/thems.php on line 139
payday loans Quick Approval Payday loans paydayavailable.info faxless payday loans Cialis Online Canada Buy Generic Cialis Online Buy Viagra With Dapoxetine Online Buy Cheap Cialis Super Active Cheap Levitra(Vardenafil) Without Prescription Super Viagra Viagra Super Force Cialis Black Cialis Online without Prescription Pharm Support Group Viagra Online Canadian Pharmacy Viagra Coupon Buy Levitra Online.Vardenafil Buy Cheap Viagra Online Viagra with dapoxetine Vardenafil Cialis Online Canada Cheap Cialis Viagra Online without Prescription Cialis Coupon
 

Reading several log files at once

This is a trick that I need to use a ton on my new local coupon site: read from several log files at once in the same terminal. We’re serving digital coupons from many different servers at once and they’re each being written to a separate file.

The key is to use the “-f” flag of the unix “tail” command and to pass in all the files as arguments. Like so:

tail -f logs/*

You’ll get output that looks like this:

==> log/local-coupon/solr.log < ==
Apr 30, 2010 3:46:43 PM org.apache.solr.core.SolrCore registerSearcher
INFO: [] Registered new searcher Searcher@266c2164 main
Apr 30, 2010 3:46:43 PM org.apache.solr.search.SolrIndexSearcher close
INFO: Closing Searcher@742074cf main

==> log/local-coupon-web.lck < ==

==> log/local-coupon/db.log < ==
Apr 27, 2010 5:25:51 PM org.apache.solr.core.SolrResourceLoader Cloops
INFO: using system property solr.solr.home: /www/cloops/solr
Apr 27, 2010 5:25:51 PM org.apache.solr.servlet.SolrServlet init
INFO: SolrServlet.init() done
Apr 27, 2010 5:25:51 PM org.apache.solr.core.SolrResourceLoader Cloops
INFO: JNDI not configured for solr (NoInitialContextEx)
Apr 27, 2010 5:25:51 PM org.apache.solr.core.SolrResourceLoader Cloops
INFO: using system property solr.solr.home: /www/cloops/solr
Apr 27, 2010 5:25:51 PM org.apache.solr.servlet.SolrUpdateServlet init
INFO: SolrUpdateServlet.init() done

==> log/local-coupon/test.log < ==
Rendered layouts/Cloops (0.2ms)
Rendered layouts/_flagged_business (3.0ms)
Rendered layouts/_footer (1.5ms)
Rendered layouts/_admin_footer (0.2ms)
Rendered layouts/_google (0.1ms)
Rendered layouts/_assets_bottom (6.3ms)
Completed in 215ms (View: 90, DB: 5) | 200 OK [http://cloops.com/business_signup]

Reading several log files at once

This is a trick that I need to use a ton on my new local coupon site: read from several log files at once in the same terminal. We’re serving digital coupons from many different servers at once and they’re each being written to a separate file.
The key is to use the “-f” flag of […]

Portage makes KDE go zoom

Last week I had some undiagnosable problem at bootup and I decided to just backup my home directory, /etc and some other key files and reinstall Gentoo from scratch (stage 1). It turned out to take longer than I remembered, but it has proven to be well worth it.
Having run Gentoo before (for a […]

Debian Sarge Released

Debian 3.1 has finally been released. It took over two years to get from Debian’s last release (Woody) to the current one. My experiences with Woody could be summed up as “stable, but really old”, so hopefully this new release will breathe some life back into the Debian user community.
Get it:
via ftp
Debian […]

Linux equivalents of Windows Software

GNU software provides an equivalent to almost any Windows application but for people who’re new to GNU/Linux, figuring out what they have available to them can be tricky. Photoshop doesn’t exist on *nix systems and beginners are unlikely to expect something called ‘The Gimp.’
The following website keeps an updated chart of corresponding Posix - […]



Categories: