LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (http://www.linuxquestions.org/questions/linux-server-73/)
-   -   Job submission on cluster (http://www.linuxquestions.org/questions/linux-server-73/job-submission-on-cluster-535254/)

kossi_vi 03-06-2007 10:47 PM

Job submission on cluster
 
Hi there,

I am working on a Linux cluster, writing a CGI to automatically submit job.
But the user 'apache', who is running the CGI does not have the privileges to submit job.
Could anyone suggest me how I can go around that problem?

Thanks.

stress_junkie 03-09-2007 10:01 AM

I'm figuring that you are trying to use the "at" command to submit a job and that you want the job to run on the same node as the process that submits it.

Example:
Code:

at -f my-script.sh now
That command will submit the file named my-script.sh to a queue and will run it immediately.

First you have to configure your system to run the "atd" daemon. That is one of the scripts in the /etc/init.d directory. It is probably called atd or at.

Then you have to see if your system has a file called at.deny and possibly another file called at.allow. If those files don't exist then DON'T CREATE THEM. If these exist then they may be located in the /etc directory. If either or both of these files exist then see if there are any entries in either file. These would be user account names. Make sure that the user account that you want to allow use of the at command is not in the at.deny file and is in the at.allow file.

Make sure that the executable file that you want to submit to a queue is given the executable attribute.

Make sure that the file that you want to submit to a queue is not located on a partition that is mounted with the "noexec" attribute.

Report back here what happens and if you are successful.

:)


All times are GMT -5. The time now is 12:32 PM.