LinuxQuestions.org
Visit Jeremy's Blog.
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 06-18-2013, 05: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, 06:24 PM   #2
yooy
Senior Member
 
Registered: Dec 2009
Posts: 1,387

Rep: Reputation: 174Reputation: 174
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, 06:30 PM   #3
sag47
Senior Member
 
Registered: Sep 2009
Location: Raleigh, NC
Distribution: Ubuntu, PopOS, Raspbian
Posts: 1,899
Blog Entries: 36

Rep: Reputation: 477Reputation: 477Reputation: 477Reputation: 477Reputation: 477
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 06:34 PM.
 
  


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

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

All times are GMT -5. The time now is 06:13 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