From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: curt Newsgroups: gmane.os.tru64.managers Subject: SUMMARY: "su" in init script Date: Tue, 14 Sep 2004 10:59:29 -0400 Sender: tru64-unix-managers-owner@ornl.gov Message-ID: <41470751.8040403@cola.iges.org> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; format=flowed; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1095174060 16433 80.91.229.6 (14 Sep 2004 15:01:00 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 14 Sep 2004 15:01:00 +0000 (UTC) Original-X-From: tru64-unix-managers-owner-gotm-tru64-unix-managers=m.gmane.org@sws1.ctd.ornl.gov Tue Sep 14 17:00:46 2004 Return-path: Original-Received: from sws1.ornl.gov ([160.91.1.101]) by deer.gmane.org with smtp (Exim 3.35 #1 (Debian)) id 1C7EnV-0003TN-00 for ; Tue, 14 Sep 2004 17:00:45 +0200 Original-Received: (qmail 12411 invoked by uid 5); 14 Sep 2004 15:00:06 -0000 Original-Followup-To: poster Precedence: bulk Original-Received: (qmail 12396 invoked by uid 49501); 14 Sep 2004 15:00:06 -0000 Original-Received: from curt@cola.iges.org by sws1 by uid 49491 with qmail-scanner-1.21 (clamdscan: 0.70-rc. iscan: v3.1/v5.600-1011/847/50540. spamassassin: 2.63. Clear:RC:0(160.91.86.17):SA:0(-4.9/5.0):. Processed in 0.674552 secs); 14 Sep 2004 15:00:06 -0000 Original-Received: from unknown (HELO emroute2.cind.ornl.gov) (160.91.86.17) by 0 with SMTP; 14 Sep 2004 15:00:05 -0000 Original-Received: from emroute2.cind.ornl.gov (LOCALHOST [127.0.0.1]) by emroute2.cind.ornl.gov (PMDF V6.2-X27 #30899) with ESMTP id <0I41007LUDO1ER@emroute2.cind.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Tue, 14 Sep 2004 11:00:03 -0400 (EDT) Original-Received: from VIRUSCAN-DAEMON.emroute2.cind.ornl.gov by emroute2.cind.ornl.gov (PMDF V6.2-X27 #30899) id <0I4100002DNX9G@emroute2.cind.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Tue, 14 Sep 2004 10:59:59 -0400 (EDT) Original-Received: from cola.iges.org (cola.iges.org [192.239.84.10]) by emroute2.cind.ornl.gov (PMDF V6.2-X27 #30899) with ESMTP id <0I41003NQDNIXJ@emroute2.cind.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Tue, 14 Sep 2004 10:59:57 -0400 (EDT) Original-Received: from [192.239.84.224] by cola.iges.org (8.11.1/1.1.22.3/16Jan00-0454PM) id i8EExgk0000477810; Tue, 14 Sep 2004 10:59:42 -0400 (EDT) Original-To: tru64-unix-managers@ornl.gov X-Accept-Language: en-us, en User-Agent: Mozilla Thunderbird 0.7.1 (Macintosh/20040626) Xref: main.gmane.org gmane.os.tru64.managers:7573 X-Report-Spam: http://spam.gmane.org/gmane.os.tru64.managers:7573 (1) There was a typo in my script - #/bin/sh should have been #!/bin/sh (2) "nohup" needed to be added to the command. (3) The script now looks like this: #!/bin/sh nohup su -f curt -c /homes/cola/curt/fort/a.out & Several people replied saying that the init process sends a HUP signal to programs that it launches. This was the key. Thanks to all who replied, especially, Eris Sisson, Dr. Thomas P. Blinn, Richard Loken, Piotyr Grzybowski, and Oisin McGuinness. - Curt ORIGINAL POST: ~~~~~~~~~~~~~~~ I need to start up a job at system startup under a userid other than root. I'm running tru64 v5.1b (pk4?) on an ES45. I created a little script called /sbin/rc3.d/S96try: #/bin/sh su -f curt -c /homes/cola/curt/fort/a.out & If I run this script in multi-user mode, or from crontab it works just fine: it runs the little fortran program a.out under the userid "curt" - which is what I want. But when I start the system up the script doesn't "launch". Any suggestions? Sincerely, Curt Steinmetz