LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
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 06-18-2013, 06:59 PM   #1
manojg
Member
 
Registered: May 2004
Posts: 78

Rep: Reputation: 15
log of the running job


Hi,

I was running some jobs on my account in Linux machines. It was supposed to run for more than 10 hours but it was terminated before that without completing it. Codes are fine, I have run this many time. There was no power outage, and server was not shutdown. Looks like admin is terminating my running jobs. How can I log the events so that I can find out the reason? I am not a root user.

Thanks.
 
Old 06-18-2013, 07:24 PM   #2
yooy
Senior Member
 
Registered: Dec 2009
Posts: 1,223

Rep: Reputation: 139Reputation: 139
you can set simple while loop that gives some output to your log file in some time interval. If your job is terminated by admin there may be hardly any way to say goodbye before shutting down as there may be no shutting down when stopped & force killed.
 
Old 06-18-2013, 07:30 PM   #3
sag47
Senior Member
 
Registered: Sep 2009
Location: Philly, PA
Distribution: Kubuntu x64, RHEL, Fedora Core, FreeBSD, Windows x64
Posts: 1,509
Blog Entries: 35

Rep: Reputation: 384Reputation: 384Reputation: 384Reputation: 384
Quote:
Originally Posted by manojg View Post
I was running some jobs on my account in Linux machines. It was supposed to run for more than 10 hours but it was terminated before that without completing it. Codes are fine, I have run this many time. There was no power outage, and server was not shutdown. Looks like admin is terminating my running jobs. How can I log the events so that I can find out the reason? I am not a root user.
Have you asked the admin directly why they are terminating your jobs? I would start by asking the admin of the server what they are doing and finding out if it actually is them terminating it.

It may also be that your cpu time for a process is limited by ulimit.

Code:
ulimit -a
Under cpu time in seconds it will tell you how much cpu time your processes are limited to (or unlimited).

Code:
ulimit -t
Will show you just the value set in cpu time.

Last edited by sag47; 06-18-2013 at 07:34 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
start a remote job and then log off and return later JonathanWilson Linux - Software 5 02-01-2012 12:36 AM
Log off or Log out a User By running a Command Hi_This_is_Dev Linux - Networking 7 09-25-2010 07:37 PM
Debian cron job log elainelaw Linux - Newbie 1 03-15-2010 12:07 AM
log errors in cron job timl Red Hat 2 10-02-2009 04:09 AM
log cron job to capture errors if there are ashley75 Linux - General 1 05-21-2004 11:34 AM


All times are GMT -5. The time now is 11:46 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration