Skip site navigation (1) Skip section navigation (2)

Re: Hex representation

From: "Plugge, Joe R(dot)" <JRPlugge(at)west(dot)com>
To: "Carol Walter" <walterc(at)indiana(dot)edu>, "Steve Crawford" <scrawford(at)pinpointresearch(dot)com>
Cc: "Scott Marlowe" <scott(dot)marlowe(at)gmail(dot)com>, <pgsql-admin(at)postgresql(dot)org>
Subject: Re: Hex representation
Date: 2008-09-25 18:39:04
Message-ID: 32CC45C5BDC57241B9BCEF37AC0C5DB5080B9A0E@OMAEXMB02.corp.westworlds.com (view raw or flat)
Thread:
Lists: pgsql-admin
Change the shbang line to match where your php in installed (if it is at
all)

#!/full_path_to_my_php -q

-----Original Message-----
From: pgsql-admin-owner(at)postgresql(dot)org
[mailto:pgsql-admin-owner(at)postgresql(dot)org] On Behalf Of Carol Walter
Sent: Thursday, September 25, 2008 1:15 PM
To: Steve Crawford
Cc: Scott Marlowe; pgsql-admin(at)postgresql(dot)org
Subject: Re: [ADMIN] Hex representation

Well, it was a bit convoluted, but I created the file with Excel,  
filling the right number of cells with \x55.  This worked too.  The  
script wouldn't run for me.  I got an error about a "bad interpreter".

Carol

On Sep 25, 2008, at 1:40 PM, Steve Crawford wrote:

> Scott Marlowe wrote:
>> I used this very simple little php script to make this
>>
>> filename: mk55:
>> #!/usr/bin/php -q
>> <?php
>> for ($i=0;$i<262144;$i++){
>>     print chr(85);
>> }
>> ?>
>>
> Or, using standard *nix tools (Note: 0x55 = ascii U):
> dd bs=1k count=256 if=/dev/zero | tr '\000' U  > full_of_0x55
>
> Cheers,
> Steve
>
>
> -- 
> Sent via pgsql-admin mailing list (pgsql-admin(at)postgresql(dot)org)
> To make changes to your subscription:
> http://www.postgresql.org/mailpref/pgsql-admin


In response to

Responses

pgsql-admin by date

Next:From: Simon RiggsDate: 2008-09-25 18:50:39
Subject: Re: [ADMIN] Postgres Stats after Crash Recovery
Previous:From: Carol WalterDate: 2008-09-25 18:15:21
Subject: Re: Hex representation

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group