From owner-freebsd-questions Tue Dec 19 16:33:28 2000 From owner-freebsd-questions@FreeBSD.ORG Tue Dec 19 16:33:25 2000 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from lcmail2.lc.ca.gov (lcmail2.lc.ca.gov [165.107.12.11]) by hub.freebsd.org (Postfix) with ESMTP id 977F937B400 for ; Tue, 19 Dec 2000 16:33:25 -0800 (PST) Received: from CONVERSION-DAEMON by lcmail2.lc.ca.gov (PMDF V5.2-27 #40821) id <0G5U00C01C6RF5@lcmail2.lc.ca.gov> for freebsd-questions@FreeBSD.ORG; Tue, 19 Dec 2000 16:32:56 -0800 (PST) Received: from tagalong ([165.107.42.145]) by lcmail2.lc.ca.gov (PMDF V5.2-27 #40821) with SMTP id <0G5U00BREC5W8U@lcmail2.lc.ca.gov> for freebsd-questions@FreeBSD.ORG; Tue, 19 Dec 2000 16:32:20 -0800 (PST) Date: Tue, 19 Dec 2000 16:32:30 -0800 From: Drew Tomlinson Subject: RE: URLs For Script Intro for Newbie In-reply-to: To: 'Otter' , "FreeBSD Questions (E-mail)" Message-id: MIME-version: 1.0 X-MIMEOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 X-Mailer: Microsoft Outlook CWS, Build 9.0.2416 (9.0.2910.0) Content-type: text/plain; charset="iso-8859-1" Content-transfer-encoding: 7bit Importance: Normal X-Priority: 3 (Normal) X-MSMail-priority: Normal Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG I did that and I made a script and rebooted but my script did not run as the program wasn't listed in my ps -acux output. But if I did cd /usr/local/etc/rc.d and then issued ./myscript.sh it works fine. This is my script: 103 Blacksheep# cat dynip.sh #!/bin/sh /usr/local/bin/dynipclient -f /etc/dynip.cfg Where would I find the output of what happened when this was run during boot? Thanks, Drew > -----Original Message----- > From: Otter [mailto:otterr@telocity.com] > Sent: Tuesday, December 19, 2000 3:50 PM > To: Drew Tomlinson; FreeBSD Questions (E-mail) > Subject: RE: URLs For Script Intro for Newbie > > > check out the /usr/local/etc/rc.d directory. If you make a script in > the form of script.sh they will be called on to start at boot time. if > you have apache, dnetc, ups utils, etc... you can see how other apps > are using it. > -Otter > > > }-----Original Message----- > }From: owner-freebsd-questions@FreeBSD.ORG > }[mailto:owner-freebsd-questions@FreeBSD.ORG]On Behalf Of > }Drew Tomlinson > }Sent: Tuesday, December 19, 2000 6:06 PM > }To: FreeBSD Questions (E-mail) > }Subject: URLs For Script Intro for Newbie > } > } > }I've had FBSD installed for a couple of months now and have > }decided that to > }further my experience with it I need to start learning about > }scripts. I > }assume I need to learn about the standard /bin/sh shell (<- > }is this the > }correct term?). Can anyone recommend reading or URLs for > }the beginner? I > }have experience with DOS batch file and OpenVMS command > }procedures so any > }reference that makes comparisons with those operating > }systems would be extra > }helpful. > } > }My immediate need is to write a script that starts my > }dynamic IP service > }client to place in rc.d. If someone could help me with this > }I'd be most > }appreciative. To start it from the command line, I just su > }to root and type > }"dynipclient". How do I put this in a script? > } > }Thanks, > } > }Drew > } > } > } > }To Unsubscribe: send mail to majordomo@FreeBSD.org > }with "unsubscribe freebsd-questions" in the body of the message > } > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message