Reputation
1,622
Top tag
Next privilege 2,000 Rep.
Edit questions and answers
Badges
8 9
Newest
 Yearling
Impact
~169k people reached

  • 0 posts edited
  • 1 helpful flag
  • 266 votes cast
Jul
23
awarded  Yearling
May
23
comment Can I detect when a client has disconnected from a CGI?
Thanks. NPH still exists. (it's used for 'server push' type applications) (now to go and see if I can get it working w/ my problematic program)
May
23
comment Can I detect when a client has disconnected from a CGI?
Unfortunately, no ... it's a file downloader, and the clients are pretty stupid, not your standard web browser. Not a single one supports a 503 response, and most don't even handle a Location: to try to give them a URL w/ serial number to try to buy more time. The only thing that I might be able to slowly trickle to them is an HTTP header, but to do that would mean I could no longer send other HTTP status if something goes wrong.
May
23
comment Can I detect when a client has disconnected from a CGI?
I might have to ... right now, I hand off to the program entirely rather than run the output through the wrapper (as it might generate 2GB of output). ... but if the only way to sense the disconnect is a failure on writing, and the writing might not start for 10min, there might not be any gains.
May
23
comment Can I detect when a client has disconnected from a CGI?
I wish I had that much control over the process that I'm handing off to. (my CGI is a wrapper to a program that's intended to be run on the command line) The problem is that the underlying program sometimes needs to load data from another server (which could be bogged down ... they're currently taking 10+ minutes for some to transfer)... and sometimes that other server needs to load the data from tape (which doesn't happen automatically ... I have to figure out that it happened, and then fire off a request out-of-band)
May
23
asked Can I detect when a client has disconnected from a CGI?
Apr
17
comment Apache shuts down unintentionally
You menton it's 'mostly at night', suggesting that it's happening at other times. If it's not happening at a really consistent time (indicating a cron job), you might want to montitor memory usage and disk space on /tmp and / ... I've seen similar issues before when a CentOS system ran out of memory, and I can't remember if it restarted or just shut things down.
Dec
9
comment Linux - Is there a way to prevent/protect a file from being deleted even by root?
@Craig : you mean the respone that I quoted in my own answer? He said he was looking for an extra level of protection ... he never said if he was trying to protect against accidental deletion or malicious users. And my answer still stands for the generic case. It's also a good idea to run something to monitor critical files (puppet, cobweb, etc.) You seem awfully eager to put down my answer when your response is one that specifically has the problems that I'm trying to make sure people avoid.
Dec
8
comment Linux - Is there a way to prevent/protect a file from being deleted even by root?
@Craig : it might not be the crux of the question, but it is the crux of the problem (XY problem?) ... but I have no idea what they're doing as root, so if they could make use of setuid and/or limited sudo privileges. And you should re-read the question, as I see no mention by Jerry that he's only trying to protect against unintentional removal ("i need to make sure it is not delete whatsoever"), and he only gave one follow-up that I see (which triggered my response).
Dec
8
comment Linux - Is there a way to prevent/protect a file from being deleted even by root?
@Craig : it's a bad idea to have lots of users with root, especially if they aren't trusted to not mess with critical files.
Dec
7
answered Linux - Is there a way to prevent/protect a file from being deleted even by root?
Nov
17
awarded  Caucus
Jul
28
comment Restore InnoDB to different machine
you might have better luck getting an answer on dba.stackexchange.com
Jul
23
awarded  Yearling
Sep
13
comment How can I identify the manufacturer of our raised floor?
Thanks. I had tried going through patents for raised floor systems (trying to identify the style of the reinforcement), but had absolutely no luck. In the end, our solution was to pull up enough of them until we finally found one with identifying information still on it. (it turned out to be a local company, and the same company that supplied our newer perforated tiles). It also didn't help that people kept claiming the room was a retrofit (yet there was no ramp, you just rolled straight in from the hallway).
Jul
23
awarded  Yearling
Sep
26
comment How can I identify the manufacturer of our raised floor?
I suspect if I'm trying to identify just my specific flooring, that this question would qualify as 'too localized' and closed.
Sep
26
awarded  Student
Sep
26
asked How can I identify the manufacturer of our raised floor?
Jul
23
awarded  Yearling