<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Script csh not run on crontab! in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/script-csh-not-run-on-crontab/m-p/3646034#M810587</link>
    <description>include the -bootup option along with the -advisor_only option and it will take care of these errors.&lt;BR /&gt;&lt;BR /&gt;Best regards,&lt;BR /&gt;&lt;BR /&gt;Oz&lt;BR /&gt;</description>
    <pubDate>Tue, 11 Oct 2005 06:42:30 GMT</pubDate>
    <dc:creator>Kent Ostby</dc:creator>
    <dc:date>2005-10-11T06:42:30Z</dc:date>
    <item>
      <title>Script csh not run on crontab!</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-csh-not-run-on-crontab/m-p/3646031#M810584</link>
      <description>A dba_stats.sh script:&lt;BR /&gt;&lt;BR /&gt;#!/bin/csh -f&lt;BR /&gt;&lt;BR /&gt;# Set the current month day and year.&lt;BR /&gt;set month=`date +%m`&lt;BR /&gt;set day=`date +%d`&lt;BR /&gt;set year=`date +%Y`&lt;BR /&gt;set hour=`date +%H`&lt;BR /&gt;set minute=`date +%M`&lt;BR /&gt;set second=`date +%S` &lt;BR /&gt;&lt;BR /&gt;set YMDHMS=$year$month$day$hour$minute$second&lt;BR /&gt;&lt;BR /&gt;set glancetmp = /ccbs2/stats_raw/ccbs2_glance_$YMDHMS.tmp&lt;BR /&gt;set glancetxt = /ccbs2/stats_raw/ccbs2_glance_$YMDHMS.txt&lt;BR /&gt;set toptmp = /ccbs2/stats_raw/ccbs2_top_$YMDHMS.tmp&lt;BR /&gt;set toptxt = /ccbs2/stats_raw/ccbs2_top_$YMDHMS.txt&lt;BR /&gt;&lt;BR /&gt;# Create tmp files&lt;BR /&gt;/opt/perf/bin/glance -adviser_only -iterations 2 -j1 -syntax /ccbs2/cron/glance.syntax &amp;gt; $glancetmp&lt;BR /&gt;top -d 1 -f $toptmp&lt;BR /&gt;&lt;BR /&gt;# Rename to txt files &lt;BR /&gt;mv $glancetmp $glancetxt&lt;BR /&gt;mv $toptmp $toptxt&lt;BR /&gt;&lt;BR /&gt;I put this script into crontab and set run every 2 min. &lt;BR /&gt;&lt;BR /&gt;0,2,4,6,8,10,12,14,16,18,20,22,24,26,28,30,32,34,36,38,40,42,44,46,48,50,52,54,56,58 * * * * /ccbs2/cron/dba_stats.sh&lt;BR /&gt;&lt;BR /&gt;The script have run well for 3 months. But at Oct 6th 2005 08:32:00 it didn't run. vi /var/mail/oss before and after error:&lt;BR /&gt;&lt;BR /&gt;===================== GlancePlus Non-Fatal Error =====================&lt;BR /&gt;Version:&lt;BR /&gt;User   :   oss                    Date: Thu Oct  6 08:32:00&lt;BR /&gt;File   :   /crm/gp/source/glance/glance.c   Line: 955&lt;BR /&gt;System : COVIS1 B.11.00 9000/800&lt;BR /&gt;&lt;BR /&gt;Unable to perform functions on devices.&lt;BR /&gt;======================================================================&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;===================== GlancePlus Non-Fatal Error =====================&lt;BR /&gt;Version: B3692A GlancePlus C.03.55.00&lt;BR /&gt;User   :   oss                    Date: Thu Oct  6 08:32:04&lt;BR /&gt;File   :   /crm/gp/source/glance/glance.c   Line: 978&lt;BR /&gt;System : COVIS1 B.11.00 9000/800&lt;BR /&gt;&lt;BR /&gt;Unable to perform functions on devices.&lt;BR /&gt;======================================================================&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;===================== GlancePlus Non-Fatal Error =====================&lt;BR /&gt;Version: B3692A GlancePlus C.03.55.00&lt;BR /&gt;User   :   oss                    Date: Thu Oct  6 08:32:04&lt;BR /&gt;File   :   /crm/gp/source/glance/glance.c   Line: 980&lt;BR /&gt;System : COVIS1 B.11.00 9000/800&lt;BR /&gt;&lt;BR /&gt;Unable to perform functions on devices.&lt;BR /&gt;======================================================================&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;*************************************************&lt;BR /&gt;Cron: The previous message is the standard output&lt;BR /&gt;      and standard error of one of your crontab commands:&lt;BR /&gt;&lt;BR /&gt;/ccbs2/cron/dba_stats.sh&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;From oss@COVIS1 Thu Oct  6 03:47:03 EDT 2005&lt;BR /&gt;Received: (from oss@localhost) by COVIS1 (8.7.6/8.7.1) id DAA03151 for oss; Thu, 6 Oct 2005 03:47:02 -0400 (EDT)&lt;BR /&gt;Date: Thu, 6 Oct 2005 03:47:02 -0400 (EDT)&lt;BR /&gt;From: oss@COVIS1&lt;BR /&gt;Message-Id: &amp;lt;200510060747.DAA03151@COVIS1&amp;gt;&lt;BR /&gt;&lt;BR /&gt;A copy of an editor buffer of your file "setenv"&lt;BR /&gt;was saved when the editor was killed.&lt;BR /&gt;This buffer can be retrieved using the "recover" command of the editor.&lt;BR /&gt;An easy way to do this is to give the command "ex -r setenv".&lt;BR /&gt;This works for "edit" and "vi" also.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;From root@COVIS1 Fri Oct  7 12:16:00 TST 2005&lt;BR /&gt;Received: (from root@localhost) by COVIS1 (8.7.6/8.7.1) id MAA02670 for oss; Fri, 7 Oct 2005 12:16:00 +0700 (TST)&lt;BR /&gt;Date: Fri, 7 Oct 2005 12:16:00 +0700 (TST)&lt;BR /&gt;From: root@COVIS1&lt;BR /&gt;&lt;BR /&gt;This script is OK when run manual but not run when put on crontab :(. Please help me!</description>
      <pubDate>Mon, 10 Oct 2005 22:32:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-csh-not-run-on-crontab/m-p/3646031#M810584</guid>
      <dc:creator>pavenvn</dc:creator>
      <dc:date>2005-10-10T22:32:57Z</dc:date>
    </item>
    <item>
      <title>Re: Script csh not run on crontab!</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-csh-not-run-on-crontab/m-p/3646032#M810585</link>
      <description>Is it running fine now?? did you have problem at the time when this script did not run??&lt;BR /&gt;&lt;BR /&gt;Did you look at syslog.log at around the time when the script did not run?</description>
      <pubDate>Mon, 10 Oct 2005 22:45:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-csh-not-run-on-crontab/m-p/3646032#M810585</guid>
      <dc:creator>RAC_1</dc:creator>
      <dc:date>2005-10-10T22:45:43Z</dc:date>
    </item>
    <item>
      <title>Re: Script csh not run on crontab!</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-csh-not-run-on-crontab/m-p/3646033#M810586</link>
      <description>The dba_stats.sh script was written for my monitoring program. The monitor program help the people who work on Windows platform (not using  X-Windows telnet/ssh HPUX) can collect and monitor the system performance (CPU,DISK I/O,MEMORY,TOP Process, vmstat,iostat, ...). My program have 3 parts: &lt;BR /&gt;   - 1 or more scripts on HPUX&lt;BR /&gt;   - 2 clients on Windows:&lt;BR /&gt;    + FTP client: transfer data on HPUX to Windows&lt;BR /&gt;    + Process client: processing data and put into Database&lt;BR /&gt;   - Monitoring Program: (monitor.exe) run on any Windows to monitor.&lt;BR /&gt;&lt;BR /&gt;I have just solved this problem by restarting  the Windows which FTP program &amp;amp; Process program run on. But I don't know exactly that this is the problem?&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 11 Oct 2005 00:39:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-csh-not-run-on-crontab/m-p/3646033#M810586</guid>
      <dc:creator>pavenvn</dc:creator>
      <dc:date>2005-10-11T00:39:52Z</dc:date>
    </item>
    <item>
      <title>Re: Script csh not run on crontab!</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-csh-not-run-on-crontab/m-p/3646034#M810587</link>
      <description>include the -bootup option along with the -advisor_only option and it will take care of these errors.&lt;BR /&gt;&lt;BR /&gt;Best regards,&lt;BR /&gt;&lt;BR /&gt;Oz&lt;BR /&gt;</description>
      <pubDate>Tue, 11 Oct 2005 06:42:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-csh-not-run-on-crontab/m-p/3646034#M810587</guid>
      <dc:creator>Kent Ostby</dc:creator>
      <dc:date>2005-10-11T06:42:30Z</dc:date>
    </item>
  </channel>
</rss>

