#!/usr/local/bin/perl

$cmpl_1 = "/opt/SUNWspro/bin/f77 -g -w -c /home/B7A/pcrc_hpf/class-accounts/saleh/mpi-fortran-examples/nbody.f";
$cmpl_2= " /opt/SUNWspro/bin/f77 -g -w -o cps615-mpi-f.exe nbody.o -L/opt/SUNWhpc/lib -R/opt/SUNWhpc/lib -lmpi";

$run = "/sunhpc/SUNWhpc/bin/tmrun -np 2 cps615-mpi-f.exe";

#$cmnd = "/sunhpc/SUNWhpc/bin/tmrun -I \"0r=/dev/null,1w=out.&T.&R,2w=err.&T.&R\" -np 2 /home/B7A/pcrc_hpf/class-accounts/saleh//cps615-mpi-c.exe";

#$stat = system("$cmpl_1;$cmpl_2");

system("$run");

print "stat = $stat ";
