NONMEM Users Network Archive

Hosted by Cognigen

RE: SPAM: Interactive Control of NONMEM runs

From: Bauer, Robert <Robert.Bauer>
Date: Fri, 25 May 2012 15:57:10 +0000

You should read the next several paragraphs in the guide, stating how you c=
an alternatively control NONMEM if the control keys do not work in certain =
environments. This is done using the sig.exe program supplied with NONMEM.

Robert J. Bauer, Ph.D.
Vice President, Pharmacometrics, R&D
ICON Development Solutions
7740 Milestone Parkway
Suite 150
Hanover, MD 21076
Tel: (215) 616-6428
Mob: (925) 286-0769
Email: Robert.Bauer

-----Original Message-----
From: owner-nmusers
 Behalf Of Fidler,Matt,FORT WORTH,R&D
Sent: Friday, May 25, 2012 11:26 AM
To: Paolo Denti; nmusers
Subject: RE: SPAM: [NMusers] Interactive Control of NONMEM runs

I believe Perl Speaks NONMEM runs

-> Perl which calls
   -> NONMEM

Therefore, I think all the control-codes from the console are sent to the P=
erl process, not the NONMEM process. Currently, the work-around is to run =
NONMEM directly.

However, it is theoretically possible to look at the execute code and add a=
 patch that monitors key behaviors(via Perl's ReadKey) http://search.cpan.o=
rg/dist/TermReadKey/ You just need to figure out what the contro=
l characters are:


-----Original Message-----
From: owner-nmusers
 Behalf Of Paolo Denti
Sent: Wednesday, May 23, 2012 5:57 AM
To: nmusers
Subject: SPAM: [NMusers] Interactive Control of NONMEM runs

Hello everyone,
In the NONMEM 7.2 guide, I found this interesting section:
> I.11 Interactive Control of a NONMEM batch Program
> A NONMEM run can now be controlled to some extent from the console by
> issuing certain
> control characters.
> Console iteration printing on/off during any Estimation analysis
> (ctrl-J from console NONMEM,
> Iterations button from PDx-POP).
> Exit analysis at any time, which completes its output, and goes on to
> next mode or estimation
> method (ctrl-K from console, or Next button in PDx-POP).
> Exit program gracefully at any time (ctrl-E or Stop button).
> Monitor the progress of each individual during an estimation by
> toggling ctrl-T. Wait 15
> seconds or more to observe a subject's ID, and individual objective
> function value. It is also
> good to test that the problem did not hang if a console output had not
> been observed for a long
> while.

It seems like there is a feature to interact with a NONMEM run and
interrupt it but still get the results in a neat way, which would be
very useful, especially with long runs.

I've tried using CTRL+K, but I had no luck. I am using the execute
script of Perl Speaks NONMEM to run my models, so maybe console commands
(except CTRL+C) get filtered away. Any experience from anybody in the
group? Is this feature working when running NONMEM directly, without a
wrapper like PSN? Any workaround?

Any help would be greatly appreciated.

Thank you,

Paolo Denti, PhD
Junior Lecturer
Division of Clinical Pharmacology
Department of Medicine
University of Cape Town

K45 Old Main Building
Groote Schuur Hospital
Observatory, Cape Town
7925 South Africa
phone: +27 21 404 7719
fax: +27 21 448 1989
email: paolo.denti

This e-mail (including any attachments) is confidential and may be legally =
privileged. If you are not an intended recipient or an authorized represent=
ative of an intended recipient, you are prohibited from using, copying or d=
istributing the information in this e-mail or its attachments. If you have =
received this e-mail in error, please notify the sender immediately by retu=
rn e-mail and delete all copies of this message and any attachments.

Thank you.
ICON plc made the following annotations.
This e-mail transmission may contain confidential or legally privileged i=
that is intended only for the individual or entity named in the e-mail ad=
dress. If you
are not the intended recipient, you are hereby notified that any disclosu=
re, copying,
distribution, or reliance upon the contents of this e-mail is strictly pr=
ohibited. If
you have received this e-mail transmission in error, please reply to the =
sender, so that
ICON plc can arrange for proper delivery, and then please delete the mess=
Thank You,
ICON plc
South County Business Park
Dublin 18
Registered number: 145835

Received on Fri May 25 2012 - 11:57:10 EDT

The NONMEM Users Network is maintained by ICON plc. Requests to subscribe to the network should be sent to:

Once subscribed, you may contribute to the discussion by emailing: