Re: script keeps getting "terminated" after about 6 minutes



In article <a88a938f-7dbc-4458-9d67-6771a5ec3a71@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>,
Bennett Haselton <bennett@xxxxxxxxxxxxx> wrote:
On Oct 22, 5:50 pm, Unruh <unruh-s...@xxxxxxxxxxxxxx> wrote:
Bennett Haselton <benn...@xxxxxxxxxxxxx> writes:

scripts that I'm pretty sure I've seen run for more than 6 minutes
without getting killed.  I wonder if the VPS "knows" that this script
is sending mail and that's why it kills it.  (Perhaps as some bone-
headed measure to stop customers "spamming"?  But obviously that
wouldn't do any good, since I can stop and restart the script as many
times as I need to, to send the mails!)

It is possible. What signal is it receiving?

How would I tell?

You could make a bunch of traps, one for INT, one for TERM, and so on,
that do nothing more than print "Received TERM signal" (or whatever) and
the time. That would actually solve two problems at once -- it'd tell
you what the signal is, and it wouldn't die.

--
The powers in charge keep us in a continuous stampede of patriotic
fervor with the cry of national emergency. Always there has been some
terrible evil to gobble us up if we did not furnish the sums demanded.
Yet these disasters seem never to have been quite real. -- MacArthur (attr)
.



Relevant Pages

  • Re: script execution time too long
    ... What's VPS and multiple window solution? ... >> I have a script that does a huge database update, ... or via browser. ...
    (comp.lang.php)
  • Re: killall like linuxs
    ... You could always use this Perl script which I wrote earlier. ... It kills all the processes you specify on the command line ... and all their descendents as well. ... It also prints out the pids, users, and command lines of the ...
    (comp.unix.solaris)
  • Re: Selecting Contents of Merge Fileds
    ... Create a button on your layout for sending mail. ... Create a script for sending mail. ... I have 3 fields, Name, Email Address and Email Message. ...
    (comp.databases.filemaker)
  • Re: Bash script problem
    ... >> How can I change my script so that it kills all its child processes, ... after the exec, script.sh isn't there anymore. ... but the killall command won't work either... ...
    (Debian-User)
  • Re: CPU Hog script....
    ... I am trying to write a script or if someone has already done it even ... certain process lets' call it "build_cache" and when it see's the CPU ... it kills it. ... echo "Following runaway build_cache processes were found and killed\n ...
    (comp.unix.shell)