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

Re: [SLUG] Simple Newbie Questions



Ahh ! Real helpful, thanks Rodos !

Esp the /usr/local/bin .. when it comes to a Linux user's own stuff .. would 
you say that it's basically /home and /usr/local ?

Oh yeh, the perl script was for parsing nmap output, shell scripts dont do 
regular expressions do they ?

Also, Perl scripts CAN be run without #!/bin/sh on my system, it doesnt seem 
essential, is it essential in bash scripts ?

Is using #!/bin/bash exactly the same ?


Thanks again !

-- Matt



Regards, Matt


>From: Rodos <rodos@nospam.haywood.org>
>To: slug@nospam.slug.org.au
>Subject: Re: [SLUG] Simple Newbie Questions
>Date: Mon, 26 Jun 2000 21:27:57 +1000 (EST)
>
>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.
>
># Emulate3Buttons is an option for 2-button Microsoft mice
># Emulate3Timeout is the timeout in milliseconds (default is 50ms)
>
>     Emulate3Buttons
>     Emulate3Timeout    50
>
>Rodos
>
>--
>rodos@nospam.haywood.org | The best programming problems are those solved by
>Camion Technology | someone else.  Only marginally better than those
>+61 2 9873 5105   | caused by someone else.          [J.Wraxall 1998]
>
>--
>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

________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com

--
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