[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Redhat differences was: [SLUG] Simple Newbie Questions



On Mon, Jun 26, 2000 at 09:27:57PM +1000, Rodos wrote:
> On Mon, 26 Jun 2000, Matt wrote:
> 
> > Say I would like to make a script to run "dhclient eth0" for Optushome 
> > (since i'm too scared to do that rc.d stuff - i froze things up last time :) 
> 
> Just put it in the end of /etc/rc.d/rc.local (assuming RedHat).
> 
> > make a script called "oh" and enter into it "dhclient eth0",
> 
> Dont forget to make the first line
> 
> #!/bin/sh
> 
> or whatever shell you want to use to execute your script.
>  
> > chmod +x oh,
> > 
> > copy it to the /bin directory so that i'd be in a path (i know, that's what 
> > the email's for) :)
> 
> Or place it into /usr/local/bin which is the convention of where you put
> your own scripts, rather than the ones which came with the system.
> 
> > What about a perl script ? IS that how most people make "perl myperl1" into 
> > a "program" ? With a shell script that says "perl perl1" ?
> 
> Well you could do it with Perl but you don't really need to execute any
> Perl code, its best as a shell script.
> 
> "It is easier to port a shell than a shell script" --Larry Wall
>  
> > What does this mean, especially "button 2" ? Is there a SHIFT CLICK type 
> > shortcut I can use here ?
> 
> Thats the middle button on a three button mouse or both buttons
> together. Depnding on how you have configured X.
> 
> Look in the Pointer section of your /etc/X11/XF86Config (that where my
> RedHat has it) file for something like the following.

The differences between Debian and RedHat have been greatly exeragated.

The key one is /etc/init.d/ is /etc/rc.d/init.d/ on redhat and

Another is that on RedHat /etc/sysconfig/ is a rats nest of mutually
dependant shell scripts and variables definitions.

When it works, it is great. When it doesn't ... well.

Anand


--
SLUG - Sydney Linux Users Group Mailing List - http://www.slug.org.au
To unsubscribe send email to slug-request@nospam.slug.org.au with
unsubscribe in the text