LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 03-19-2008, 09:39 AM   #1
vidhuc
LQ Newbie
 
Registered: Mar 2008
Posts: 4

Rep: Reputation: 0
Submitting batch job from apache


Hi All,
I am trying to submit a batch job to apache from perl cgi and R website . So work can be done when the server load is less. The batch job does gets submitted.
atq command shows the job in queue. But when the server load gets down then also it does not to the required processing. And the job is removed from the Q
The batch command is as follow
/usr/bin/R --slave < /var/www/cgi-bin/sigpathway/main.R > /var/www/html/sigpathway/output/tmp/sig2065512059358370/output.txt 2>&1 --args sig2065512059358370 wait = FALSE
Please suggest something
 
Old 03-19-2008, 10:18 AM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
I'd suggest pondering these questions:
- Is /etc/at.deny|allow used?
- What loadavg is atd started with?
- Is atd started with "-d" or are there at messages in syslog?
- What user ID submits the job to the queue and what user should the job really run as?
- Does any user have "at" job mails in its mail spool and if not, what account do you redirect e-mails to?
 
Old 03-19-2008, 10:58 AM   #3
vidhuc
LQ Newbie
 
Registered: Mar 2008
Posts: 4

Original Poster
Rep: Reputation: 0
I got following warning : " This account is currently not available."
I'd suggest pondering these questions:
- Is /etc/at.deny|allow used?
not used
- What loadavg is atd started with?
<didnt used atd....just used batch -f"
- Is atd started with "-d" or are there at messages in syslog?
- What user ID submits the job to the queue and what user should the job really run as?
apache submits the job. And apache should really run the job as all the temp files and folders are created by apache
- Does any user have "at" job mails in its mail spool and if not, what account do you redirect e-mails to?
apache does have the job mails in its spool
 
Old 03-19-2008, 11:16 AM   #4
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
Quote:
Originally Posted by vidhuc View Post
apache does have the job mails in its spool
OK, but any related to at jobs? What do these e-mails say?
 
Old 03-19-2008, 11:17 AM   #5
vidhuc
LQ Newbie
 
Registered: Mar 2008
Posts: 4

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by unSpawn View Post
OK, but any related to at jobs? What do these e-mails say?
emails says..."this account is not available"
 
Old 03-19-2008, 01:39 PM   #6
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
I doubt that's e-mail content. Try to read the file with like a text editor.
 
Old 03-20-2008, 02:05 PM   #7
vidhuc
LQ Newbie
 
Registered: Mar 2008
Posts: 4

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by unSpawn View Post
I doubt that's e-mail content. Try to read the file with like a text editor.
this the mail :
From: Apache <apache@compbio.med.harvard.edu>
To: apache@compbio.med.harvard.edu



This account is currently not available.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
using batch queue from Apache as user nobody tospo Linux - Server 0 02-15-2008 10:39 AM
batch job finished notification nkelle Linux - General 2 03-08-2007 10:45 AM
Submitting a job to a server frankie_DJ Linux - Newbie 3 06-26-2006 01:19 PM
tricky batch file job. needs vi/cc guru otchie1 Linux - Software 11 05-05-2006 10:27 AM
how to make a simple code for just restarting Apache via a Cron job hsa Programming 1 08-22-2005 04:15 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

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

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration