Usenet comp.unix.tru64 (2000-2013)
 help / color / mirror / Atom feed
* Memory consuming script for CSH
@ 2002-09-05 16:24 Maurizio Fuschetto
  2002-09-05 21:26 ` Paul Szabo
  0 siblings, 1 reply; 2+ messages in thread
From: Maurizio Fuschetto @ 2002-09-05 16:24 UTC (permalink / raw)


Under Digital Unix 4.0F and csh, the following script:

while (1)
  sleep 1
  kill -USR2 `cat pidfile`
end

where pidfile contains a pid of a target process, cause the csh in which
is executed to eat lot of memory - say, about 500K per second.

Interrupting the script execution with CTRL-C, produces the csh to break
the script but NOT frees the allocated memory.

Replacing `cat pidfile` with a constant or using anything but kill (I
tried with echo) does not have such effect.

Some tips??


-- 
Posted via Mailgate.ORG Server - http://www.Mailgate.ORG


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2002-09-05 21:26 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-09-05 16:24 Memory consuming script for CSH Maurizio Fuschetto
2002-09-05 21:26 ` Paul Szabo

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox