Month: January 2011

ptitle-particle1

David Loyds Gym Membership…

David Loyds Gym Membership… So your thinking of signing up for the gym at David Loyds? Just remember, if you ever want to leave you need to give them written 3 months notice!! I was with them for around 18 months… Not very fair seeing as im paying over ¬£100 a month for our joint […]
Read more

Calculating PUE

Power Usage Effectiveness (PUE) Power Usage Effectiveness (PUE) is a standard developed by The Green Grid‚Ñ¢ consortium to provide a clear answer to the primary issue surrounding energy efficiency within the data center which is how much power is devoted to driving the actual computing/IT components (servers, for example) versus the ancillary support elements such […]
Read more

Get Parent PID

Get Parent PID [perl] my $parent_id = getppid(); print "$parent_id\n"; [/perl] NAME getppid – get parent process ID SYNOPSIS getppid DESCRIPTION Returns the process id of the parent process. DISCLAIMER We are painfully aware that these documents may contain incorrect links and misformatted HTML. Such bugs lie in the automatic translation process that automatically created […]
Read more

SCCS – script header

SCCS – script header While sccs checked out a file, add these lines to the top of your script to preserve versions and file information. [bash] # Master: %P% # SCCS id: %Z% %M% %I% %E% [/bash]
Read more

Perl – Lock Files (flock)

Perl – Lock Files (flock) The following script is an example of using lock files in Perl. This prevents more than one user or process accessing a file at a time. [perl] use Fcntl qw(:DEFAULT :flock); use Fcntl ‘:flock’;¬†¬†¬†¬† #LOCK_* constants my($lockneedsremoving)=0; my($lockfilename)=”/var/.pwd.lock”; unless (createlock()) { print “Lock has been created”; print “This is only […]
Read more
Cart

No products in the basket.