| buubot | The paste 414537 has been copied to http://erxz.com/pb/1951 |
| f00li5h | LeoNerd: open it for writing LeoNerd: you know that already |
| Randal | perlbot, paste > lewis2 |
| f00li5h | lewis2: open the file for writing and it will be created/truncated as needed |
| Randal | for future reference |
| jagerman | Open the kitty for writing? |
| f00li5h | Randal: can we just have buubot automatically send that when it lifts the paste? i would suggest it to buu, but he'll just tell me to send patches |
| Randal | f00li5h - I would send patches to buu. :) |
| LeoNerd | f00li5h: er... Does that even compile? |
| f00li5h | see, 10 seconds for you, about 16 months for me LeoNerd: sadly not |
| lewis2 | the file exists already. I want it to be emptied after I have read it. |
| LeoNerd | Ahh.. :/ shame |
| f00li5h | lewis2: open it to read, unlink it, then open to write lewis2: (may act strangely with hard links or things that count inodes) lewis2: use lexical file handles and 3 arg open too |
| lewis2 | in effect, all I want to do is run the command '>file' |
| Randal | { open my $x, ">", "thing to empty" } |
| f00li5h | am i the only one that doesn't see an image of an alien head on erxz.com? |
| lewis2 | Randal: apologies, is that correct: open my $x, ">", $QUERYLOG; |
| f00li5h | lewis2: you may want to name your file handle more usefully |
| danilom | alguien habla espaol? |
| f00li5h | danilom: my terminal doesn't even recognise those characters |
| danilom | jeje |
| f00li5h | but you're in luck, i'm ok with english |
| danilom | ok |
| lewis2 | f00li5h: the file was already opened (http://erxz.com/pb/1951) - is there a shorter command than the one above then? |
| danilom | i need to make some customize in sql-ledger do you know it? |
| f00li5h | lewis2: keystrokes are cheap danilom: isn't that in php? |
| lewis2 | for instance: truncate <Q>; |
| danilom | f00li5h, no is in perl with postgresql |
| f00li5h | danilom: oh, rly? |
| danilom | yeah |
| f00li5h | lewis2: open is fine danilom: sexy. |
| danilom | f00li5h, im looking for someone to do it.. |
| lewis2 | should I then close it again? |