<?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: error msg when rebooting in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/error-msg-when-rebooting/m-p/2600051#M34064</link>
    <description>How about checking in /etc/rc.config.d/.  Perhaps someone threw a csh script or at least a file using csh syntax in this directory.&lt;BR /&gt;&lt;BR /&gt;-Santosh</description>
    <pubDate>Wed, 24 Oct 2001 13:55:37 GMT</pubDate>
    <dc:creator>Santosh Nair_1</dc:creator>
    <dc:date>2001-10-24T13:55:37Z</dc:date>
    <item>
      <title>error msg when rebooting</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/error-msg-when-rebooting/m-p/2600045#M34058</link>
      <description>When I reboot my HP-UX 11.00 machine, I see this:&lt;BR /&gt;&lt;BR /&gt;# shutdown -r now&lt;BR /&gt;&lt;BR /&gt;SHUTDOWN PROGRAM&lt;BR /&gt;10/23/01 19:08:57 EDT&lt;BR /&gt;Do you want to send your own message? (You must respond with 'y' or 'n'.): n&lt;BR /&gt;&lt;BR /&gt;Broadcast Message from bwilliam (ttyp1) Tue Oct 23 19:09:00...&lt;BR /&gt;PLEASE LOG OFF NOW ! ! !&lt;BR /&gt;        System maintenance about to begin.&lt;BR /&gt;All processes will be terminated in 0 seconds.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Broadcast Message from bwilliam (ttyp1) Tue Oct 23 19:09:00...&lt;BR /&gt;SYSTEM BEING BROUGHT DOWN NOW ! ! !&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;/sbin/auto_parms: DHCP access is disabled (see /etc/auto_parms.log)&lt;BR /&gt;&lt;BR /&gt;/sbin/rc[38]: setenv:  not found.&lt;BR /&gt;/sbin/rc[38]: setenv:  not found.&lt;BR /&gt;&lt;BR /&gt;     System shutdown in progress&lt;BR /&gt;     ___________________________&lt;BR /&gt;&lt;BR /&gt;     Stopping OpC agent processes (opcagt). .................... OK&lt;BR /&gt;     Stop CDE login server ..................................... OK&lt;BR /&gt;     Stop X print server(s) .................................... N/A &lt;BR /&gt;     Stop NFS server subsystem ................................. OK&lt;BR /&gt;     Stopping ClearCase ........................................ OK&lt;BR /&gt;     Shutting down CIFS Client ................................. N/A &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;From where might this "/sbin/rc[38]: setenv:  not found." error message be coming?&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 23 Oct 2001 22:22:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/error-msg-when-rebooting/m-p/2600045#M34058</guid>
      <dc:creator>Brian Williams_5</dc:creator>
      <dc:date>2001-10-23T22:22:14Z</dc:date>
    </item>
    <item>
      <title>Re: error msg when rebooting</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/error-msg-when-rebooting/m-p/2600046#M34059</link>
      <description>Hi Brian:&lt;BR /&gt;&lt;BR /&gt;Looks like you have a 'csh' (yuk!) script in your startup/shutdown sequence.&lt;BR /&gt;&lt;BR /&gt;'setenv' is a 'csh' construct used to set an environment variable.&lt;BR /&gt;&lt;BR /&gt;The startup/shutdown scripts in '/sbin/rc?.d/' and the configuration files in '/etc/rc.config.d/' that drive them, are expected to be POSIX scripts.&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Tue, 23 Oct 2001 22:36:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/error-msg-when-rebooting/m-p/2600046#M34059</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2001-10-23T22:36:01Z</dc:date>
    </item>
    <item>
      <title>Re: error msg when rebooting</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/error-msg-when-rebooting/m-p/2600047#M34060</link>
      <description>Somewhere in your shutdown scripts you have a ksh script trying to execute a csh command. Could be an issue, but probably not. search your rc directories for scripts with setenv in them, and then if they do, then make sure they aren't ksh scripts.</description>
      <pubDate>Wed, 24 Oct 2001 00:50:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/error-msg-when-rebooting/m-p/2600047#M34060</guid>
      <dc:creator>harry d brown jr</dc:creator>
      <dc:date>2001-10-24T00:50:12Z</dc:date>
    </item>
    <item>
      <title>Re: error msg when rebooting</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/error-msg-when-rebooting/m-p/2600048#M34061</link>
      <description>Brian,&lt;BR /&gt;&lt;BR /&gt;  line 38 of /sbin/rc refers&lt;BR /&gt;to /sbin/rc.utils.&lt;BR /&gt;/sbin/rc.utils is the script&lt;BR /&gt;which execures the rc scripts&lt;BR /&gt;in /sbin/init.d  .  &lt;BR /&gt;To find the culprit csh script&lt;BR /&gt;which is giving this error do&lt;BR /&gt;&lt;BR /&gt;grep -l setenv /sbin/init.d/*&lt;BR /&gt;&lt;BR /&gt;  This should catch the script&lt;BR /&gt;with the setenv command.&lt;BR /&gt;Find out what the script is&lt;BR /&gt;for and if it is needed, convert it into a posix shell script.&lt;BR /&gt;&lt;BR /&gt;HTH&lt;BR /&gt;raj</description>
      <pubDate>Wed, 24 Oct 2001 01:13:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/error-msg-when-rebooting/m-p/2600048#M34061</guid>
      <dc:creator>Roger Baptiste</dc:creator>
      <dc:date>2001-10-24T01:13:30Z</dc:date>
    </item>
    <item>
      <title>Re: error msg when rebooting</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/error-msg-when-rebooting/m-p/2600049#M34062</link>
      <description>Strange, I ran all these commands:&lt;BR /&gt;&lt;BR /&gt;# grep -l setenv /sbin/init.d/*&lt;BR /&gt;# grep setenv /sbin/rc0.d/*&lt;BR /&gt;# grep setenv /sbin/rc1.d/*&lt;BR /&gt;# grep setenv /sbin/rc2.d/*&lt;BR /&gt;# grep setenv /sbin/rc3.d/*&lt;BR /&gt;# grep setenv /sbin/rc4.d/*&lt;BR /&gt;grep: can't open /sbin/rc4.d/*&lt;BR /&gt;&lt;BR /&gt;and found no occurrence of "setenv".&lt;BR /&gt;&lt;BR /&gt;The only thing I've added to this machine since it's been shipped to me is the ClearCase client and a script to start up my company's product.&lt;BR /&gt;&lt;BR /&gt;# ls /sbin/rc0.d&lt;BR /&gt;K480syncer      K888kminit      K900localmount&lt;BR /&gt;K800killall     K890kmbuild     K96AVSearch&lt;BR /&gt;&lt;BR /&gt;and /sbin/rc0.d/K96AVSearch is:&lt;BR /&gt;&lt;BR /&gt;lrwxrwxr-x   1 root       sys             21 Oct 23 19:28 K96AVSearch -&amp;gt; /sbin/init.d/AVSearch&lt;BR /&gt;&lt;BR /&gt;and /sbin/init.d/AVSearch is this:&lt;BR /&gt;&lt;BR /&gt;#!/bin/sh&lt;BR /&gt;#&lt;BR /&gt;# AVSearch  This script starts and stops the AV Enterprise Search daemons.&lt;BR /&gt;#&lt;BR /&gt;# chkconfig: 345 96 96&lt;BR /&gt;# description: AltaVista's AV Enterprise Search product.&lt;BR /&gt;&lt;BR /&gt;MODE=s          ## default mode is startup&lt;BR /&gt;&lt;BR /&gt;if [ $# -gt 0 ]; then&lt;BR /&gt;  case "$1"&lt;BR /&gt;  in&lt;BR /&gt;    start) MODE=s;;&lt;BR /&gt;    stop) MODE=k;;&lt;BR /&gt;    start_msg);; #line added for HP-UX compatibility&lt;BR /&gt;    stop_msg);; #line added for HP-UX compatibility&lt;BR /&gt;    *) echo "$0: unknown option: $1" exit 1;;&lt;BR /&gt;  esac&lt;BR /&gt;fi&lt;BR /&gt;&lt;BR /&gt;( cd /usr/AVSearch/Enterprise ; ./avsetup -$MODE )&lt;BR /&gt;&lt;BR /&gt;and the /usr/AVSearch/Enterprise/avsetup script is a bourne shell script, too.  It has #!/bin/sh at the top of the file.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Perplexed.</description>
      <pubDate>Wed, 24 Oct 2001 13:46:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/error-msg-when-rebooting/m-p/2600049#M34062</guid>
      <dc:creator>Brian Williams_5</dc:creator>
      <dc:date>2001-10-24T13:46:56Z</dc:date>
    </item>
    <item>
      <title>Re: error msg when rebooting</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/error-msg-when-rebooting/m-p/2600050#M34063</link>
      <description>Have a look in the file /sbin/rc (yes it is there, no not the rc?.d directory) and see if there are any setenv statements in there.&lt;BR /&gt;&lt;BR /&gt;I would also make sure that it is using /sbin/sh for its shell and not csh.  The first line should be:  #!/sbin/sh&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 24 Oct 2001 13:52:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/error-msg-when-rebooting/m-p/2600050#M34063</guid>
      <dc:creator>Patrick Wallek</dc:creator>
      <dc:date>2001-10-24T13:52:51Z</dc:date>
    </item>
    <item>
      <title>Re: error msg when rebooting</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/error-msg-when-rebooting/m-p/2600051#M34064</link>
      <description>How about checking in /etc/rc.config.d/.  Perhaps someone threw a csh script or at least a file using csh syntax in this directory.&lt;BR /&gt;&lt;BR /&gt;-Santosh</description>
      <pubDate>Wed, 24 Oct 2001 13:55:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/error-msg-when-rebooting/m-p/2600051#M34064</guid>
      <dc:creator>Santosh Nair_1</dc:creator>
      <dc:date>2001-10-24T13:55:37Z</dc:date>
    </item>
    <item>
      <title>Re: error msg when rebooting</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/error-msg-when-rebooting/m-p/2600052#M34065</link>
      <description># grep -l setenv /etc/rc.config.d/*&lt;BR /&gt;&lt;BR /&gt;# ls -altr /sbin/rc&lt;BR /&gt;-r-xr--r--   1 bin        sys           4262 Nov  7  1997 /sbin/rc&lt;BR /&gt;&lt;BR /&gt;# grep setenv /sbin/rc&lt;BR /&gt;&lt;BR /&gt;# grep -l setenv /sbin/rc&lt;BR /&gt;&lt;BR /&gt;(I checked, and yes, the /sbin/rc file has "#!/sbin/sh" as its first line.)&lt;BR /&gt;&lt;BR /&gt;# csh&lt;BR /&gt;&lt;BR /&gt;# alias findinfile 'find . -name \* -exec grep -i \!$ {} /dev/null \;'&lt;BR /&gt;&lt;BR /&gt;# cd /sbin&lt;BR /&gt;&lt;BR /&gt;# findinfile setenv&lt;BR /&gt;./ttytype:SHELLshcshtcshsetenv %s %s;&lt;BR /&gt;./ttytype:setenv %s %d;&lt;BR /&gt;&lt;BR /&gt;# cd /etc&lt;BR /&gt;&lt;BR /&gt;# findinfile setenv&lt;BR /&gt;./csh.login:    setenv MANPATH /usr/share/man:/usr/contrib/man:/usr/local/man&lt;BR /&gt;./csh.login:            setenv MANPATH `cat /etc/MANPATH`&lt;BR /&gt;./csh.login:            setenv TZ `/usr/bin/sh -c '. /etc/TIMEZONE ; echo $TZ' `&lt;BR /&gt; # set the TZ variable&lt;BR /&gt;./csh.login:            setenv TZ MST7MDT      # change this for local time.&lt;BR /&gt;./csh.login:            setenv TERM hp                  #   use the default&lt;BR /&gt;grep: can't open ./vhelp/volumes/C/DCErncore.hv</description>
      <pubDate>Wed, 24 Oct 2001 14:27:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/error-msg-when-rebooting/m-p/2600052#M34065</guid>
      <dc:creator>Brian Williams_5</dc:creator>
      <dc:date>2001-10-24T14:27:55Z</dc:date>
    </item>
  </channel>
</rss>

