In <a href="http://mpirun.pg">mpirun.pg</a> somewhere at line number 106 you can have a statement which checks for environment variable $PBS_NODEFILE and if found proceeds further else exits with an error.<br><br>if [ -z "$PBS_NODEFILE" ] ; then echo "Not Spawned through PBS so exiting." ; exit 1 ; fi<br>
<br><div class="gmail_quote">On Thu, Jul 10, 2008 at 7:18 AM, <<a href="mailto:zhyang@lzu.edu.cn">zhyang@lzu.edu.cn</a>> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi Joshua Bernstein<br>
<br>
Thanks for you comment. sorry I have not made myself clear. It means that some user running mpirun program straight in head nodes,and not use Torque assign nodes. so , I want to forbid the user to submit job in this way. our cluster use NFS,all application program install NFS.so, I can not remove it.I want know if have configure in Torque or maui can achieve this result.<br>
<br>
Thanks<br>
<br>
yang<br>
<br>
<br>
<br>
> : "Joshua Bernstein" <<a href="mailto:jbernstein@penguincomputing.com">jbernstein@penguincomputing.com</a>><br>
> : 2008-07-10 04:09:29<br>
> : <a href="mailto:zhyang@lzu.edu.cn">zhyang@lzu.edu.cn</a><br>
> :<br>
> : Re: [torqueusers] how to forbid the user which do not use jobmanager submit job<br>
> Hi Yang,<br>
><br>
><br>
><br>
> While I'm not exactly sure what you are asking for, I'll try to take a<br>
><br>
> stab at it. What exactly do you want to forbid the user from doing?<br>
><br>
><br>
><br>
> If you want to forbid the user from lauching a program with mpirun,<br>
><br>
> then the most straight forward approach is to simply remove mpirun from<br>
><br>
> the headnode, by either excluding it from the users path, or just<br>
><br>
> removing it all together. You'll of course need to provide mpirun on the<br>
><br>
> compute nodes, but if the binary isn't on the system to begin with (or<br>
><br>
> not accessible by the user), then there isn't a chance they can lauch it.<br>
><br>
><br>
><br>
> -Joshua Bernstein<br>
><br>
> Software Engineer<br>
><br>
> Penguin Computing<br>
><br>
><br>
><br>
> <a href="mailto:zhyang@lzu.edu.cn">zhyang@lzu.edu.cn</a> wrote:<br>
><br>
> > Hi<br>
><br>
> ><br>
><br>
> > I have a cluster, I do not want to user submit job without use jobmanger(with mpirun..) in front nodes, so whether have configration in Torque or Maui can solve this problems?<br>
><br>
> > --<br>
><br>
> ><br>
><br>
> > Thanks<br>
><br>
> ><br>
><br>
> > Best Regards<br>
><br>
> ><br>
><br>
> > yang<br>
><br>
> > _______________________________________________<br>
><br>
> > torqueusers mailing list<br>
><br>
> > <a href="mailto:torqueusers@supercluster.org">torqueusers@supercluster.org</a><br>
><br>
> > <a href="http://www.supercluster.org/mailman/listinfo/torqueusers" target="_blank">http://www.supercluster.org/mailman/listinfo/torqueusers</a><br>
><br>
><br>
<br>
<br>
_______________________________________________<br>
mauiusers mailing list<br>
<a href="mailto:mauiusers@supercluster.org">mauiusers@supercluster.org</a><br>
<a href="http://www.supercluster.org/mailman/listinfo/mauiusers" target="_blank">http://www.supercluster.org/mailman/listinfo/mauiusers</a><br>
</blockquote></div><br><br clear="all"><br>-- <br>Regards--<br>Rishi Pathak<br>