NONMEM Users Network Archive

Hosted by Cognigen

Re: Code lines for sequential runs through PsN

From: Paul Matthias Diderichsen <pmdiderichsen>
Date: Wed, 30 Mar 2016 11:42:50 +0200

Hi Matthew,
On 3/30/2016 10:26, HUI, Ka Ho wrote:
> I have some 10,000 to 100,000 simulation files to run through PsN so I
> typed in cmd something which looks like the following lines:
> But the string is too long in this case.

provided that you're trying to do this on linux, you could take a look
at the xargs command. Specifically, you could try the following:

ls xxxxxyyyyy_*mod | xargs execute

You can use the --max-lines parameter if you want xargs to divide the
job into chunks of a given size (say 300 models per execute). See "man
xargs" for the full documentation.

Paul Matthias Diderichsen, PhD
Quantitative Solutions, a Certara company
+31 624 330 706
Received on Wed Mar 30 2016 - 05:42:50 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: