+if ($::single_process_only > 0) {
+ my @processes = `/bin/ps -A`;
+ my $running = 0;
+ foreach my $p (@processes) {
+ if ($p =~ m/ctsimtext/) {
+ $error .= "Another online simulation is currently running.<br>You may wait a moment and then click your browser's <b>Refresh</b> button to resubmit your simulation<br>";
+ last;
+ }
+ }
+}
+