From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: George Gallen Newsgroups: gmane.os.tru64.managers Subject: how to tell if a cron job is still active... Date: Tue, 07 May 2002 15:07:53 -0400 Sender: tru64-unix-managers-owner@ornl.gov Message-ID: <90A3BA28098BD411AD9A0001FA7E505503455583@smtp.slackinc.com> NNTP-Posting-Host: localhost.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 X-Trace: main.gmane.org 1020799506 13001 127.0.0.1 (7 May 2002 19:25:06 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Tue, 7 May 2002 19:25:06 +0000 (UTC) Return-path: Original-Received: from sws1.ctd.ornl.gov ([160.91.20.101]) by main.gmane.org with smtp (Exim 3.33 #1 (Debian)) id 175Aa9-0003Na-00 for ; Tue, 07 May 2002 21:25:06 +0200 Original-Received: (qmail 29812 invoked by uid 5); 7 May 2002 19:06:16 -0000 Original-Followup-To: poster Precedence: bulk Original-Received: (qmail 29804 invoked from network); 7 May 2002 19:06:16 -0000 Original-Received: from unknown (HELO emroute3.ornl.gov) (134.167.3.110) by 0 with SMTP; 7 May 2002 19:06:16 -0000 Original-Received: from emroute3.ornl.gov (localhost [127.0.0.1]) by emroute3.ornl.gov (PMDF V6.1-1 #39060) with ESMTP id <0GVR0064I92GSB@emroute3.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Tue, 07 May 2002 15:06:16 -0400 (EDT) Original-Received: from poison.slackinc.com (poison.slackinc.com [12.35.245.16]) by emroute3.ornl.gov (PMDF V6.1-1 #39060) with ESMTP id <0GVR009E892D7B@emroute3.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Tue, 07 May 2002 15:06:14 -0400 (EDT) Original-Received: by smtp.slackinc.com with Internet Mail Service (5.5.2650.21) id ; Tue, 07 May 2002 15:07:54 -0400 Content-return: allowed Original-To: "'tru64-unix-managers@ornl.gov'" X-Mailer: Internet Mail Service (5.5.2650.21) Xref: main.gmane.org gmane.os.tru64.managers:83 X-Report-Spam: http://spam.gmane.org/gmane.os.tru64.managers:83 I have a cron job that is run as root at noon time that basically backs up our data to a local drive using: (cd /data2 ; tar cvf - .) | (cd /drive1/data2 ; tar xfp -) and so on for a number of different filesystems Now hours after this "should" have been done, if I run a ps, grepping for tar: # ps -ef | grep tar root 32495 32539 0.0 12:00:00 ?? 0:13.49 tar cvf - . root 32539 32524 0.0 12:00:00 ?? 0:33.87 tar xfp - I checked my mail for root and there are no messages from cron of any problems. Why arn't these processes dead? Is there anyway to tell if they are still doing anything? Maybe there is a locked file somewhere it's waiting on?? As well, is there anyway to know which directory it's on at this time since I run multiple tars one after the other (not concurrently), maybe I can check that particular FS. Each day cron fires off the backup, and leaves the above. We will get two more tomorrow (we rebooted yesterday, so only 2 today), and so on eating away at available processes. Now one theory I have, is that the directory where the data is being copied to is close on running out of space, however, the reserve % is enough to cover the difference. I can manually copy a file there with no error msgs. Could the low overhead of available disk space being hanging these processes? And a second piece I noticed, not sure what the problem is here, on reboot after a gracefull shutdown using the shutdown script, it needed to fsck the filesystem that /tmp is on?? It found some superblock discrepancies. However it didn't report any unsalvagable data, as well /lost+found is empty. I havn't manually fscked that FS today, but thought it was strange to have a FS getting fsck'd even after a gracefull shutdown If I grep for the parent i get: root 32524 1 0.0 12:00:00 ?? 0:00.01 sh -c /usr/local/copyit & which is my cron entry. Q. does cron normally add in the "sh -c " part? In man of csh, there is a -c switch which makes sense for cron to use it. This is on an older OS, 3.2c on a 2100, but I think these Q's should be applicable to T64 in general. George Gallen Senior Programmer/Analyst Accounting/Data Division ggallen@slackinc.com ph:856.848.1000 Ext 220 SLACK Incorporated - An innovative information, education and management company http://www.slackinc.com