| f00li5h | meow |
| killer_ | thrig: my small example is also broken http://www.paste.me.uk/437.html |
| thrig | where's the die after the open? Why are you still using the dangerous FH and ">$filename" syntax? |
| killer_ | file not created and I ran that as root.. sheesh |
| f00li5h | killer_: why would you test a buggy script as root? killer_: are you mad? |
| killer_ | die is missing from my small script f00li5h: aparently so |
| f00li5h | killer_: open ... or die "Failed : $!" killer_: $! tells you what's wrong eval: open my $fh, '>', q/i'm in a chroot so it'll fail/ or die "Failed: $!" |
| buubot | f00li5h: Error: Failed: Too many open files at eval line 1. |
| f00li5h | killer_: you see? " Too many open files " killer_: that's what's in $! |
| killer_ | I added die.. and $! says nothing no output |
| f00li5h | killer_: wanna paste again, with the die? killer_: and did you use "or" or "||"? |
| killer_ | http://www.paste.me.uk/438.html or |
| f00li5h | killer_: so you mean to say that it doesn't die? |
| killer_ | nope it doesn't die |
| f00li5h | killer_: then it is opening it killer_: what makes getUniqueFilename() return something unique? |
| killer_ | it prints the /tmp/200703172348ARYT.txt and exits |
| thrig | so, it works? |
| killer_ | f00li5h: File::Temp |
| f00li5h | killer_: File::Temp makes it unique? |
| killer_ | Randal was helping with this earlier..and it was working |
| thrig | why did it stop working? What changed? |
| killer_ | could I have too many open files on my system? |
| f00li5h | killer_: so you mean to say that the file is not written? |
| thrig | why would there be no error if the system had too many open files? |
| killer_ | I can do "vi test2.pl" and save and the file is there an has content no file written.. not even an empty one |
| thrig | that seems to be a serious system problem |
| killer_ | and further I don't understand on my LONG script pasting why "&print startOutput; also stopped printing to the console |
| f00li5h | killer_: $fh = File::Temp->new() that will open a temp file handle that you can just print to |