Re: [PLUG] bash question

2010-04-03 Thread David Fleck
On Fri, 2 Apr 2010, Denis Heidtmann wrote: Is there a way for my script to detect that it is sourced rather than executed? I can think of a few tests, but since none of my machines have dash, I can't guarantee they will work You can write the name of the script into a variable, and

Re: [PLUG] bash question

2010-04-03 Thread Denis Heidtmann
On Fri, Apr 2, 2010 at 7:31 PM, Fred James fredj...@fredjame.cnc.netwrote: Denis Heidtmann wrote: On Fri, Apr 2, 2010 at 2:01 PM, Fred James fredj...@fredjame.cnc.net wrote: Denis Heidtmann wrote: On Fri, Apr 2, 2010 at 12:39 PM, Denis Heidtmann denis.heidtm...@gmail.comwrote:

Re: [PLUG] bash question

2010-04-03 Thread Denis Heidtmann
On Sat, Apr 3, 2010 at 8:18 AM, David Fleck david.fl...@mchsi.com wrote: On Fri, 2 Apr 2010, Denis Heidtmann wrote: Is there a way for my script to detect that it is sourced rather than executed? I can think of a few tests, but since none of my machines have dash, I can't guarantee they

[PLUG] short version [Was: Re: bash question]

2010-04-03 Thread Fred James
Denis Heidtmann The short version is ... (1) put a non-interactive executable in a directory somewhere in the defined PATH - set permission correctly of course (2) in the appropriate Default script, somewhere between the gdmwhich function and exit (probably closer to exit?), get

Re: [PLUG] bash question

2010-04-03 Thread Fred James
Denis Heidtmann wrote: [many omissions for bevity] Your explanation does indeed help me understand what gdmwhich() does. Since my script resides in one of my directories not in the $PATH, I chose to execute it above the setting of IFS to : using its fully qualified path. It executes fine,

Re: [PLUG] bash question

2010-04-03 Thread Denis Heidtmann
On Sat, Apr 3, 2010 at 11:34 AM, Fred James fredj...@fredjame.cnc.netwrote: Denis Heidtmann wrote: [many omissions for bevity] Your explanation does indeed help me understand what gdmwhich() does. Since my script resides in one of my directories not in the $PATH, I chose to execute it

Re: [PLUG] 2nd Router Setup

2010-04-03 Thread Richard C. Steffens
Time today permits working on this again. I'm endeavoring to set up a WRT54G ver. 6 as a wireless access point. Using my laptop, I have connected its wired Ethernet port to one of the 4 ports on the back of the WRT54G and logged in to the WRT54G's administration page. On the Setup tab. The

Re: [PLUG] 2nd Router Setup

2010-04-03 Thread Neal
On Sat, Apr 3, 2010 at 4:37 PM, Richard C. Steffens rst...@comcast.net wrote: The next section is Network Setup. I've assigned the WRT54G the IP address of 192.168.0.251 and have set the Subnet Mask set to 255.255.255.0. When I try to save those settings I get an error message that says: The

Re: [PLUG] 2nd Router Setup

2010-04-03 Thread Richard C. Steffens
Neal wrote: Actually, the WAN subnet and the LAN subnet are the same. So, I'm right. There is something fundamental I don't understand. You must use 192.168.1.x for the LAN if you're using 192.168.0.x for the WAN, or vice-versa. That worked, as far as finishing that part of the setup

Re: [PLUG] 2nd Router Setup

2010-04-03 Thread Neal
That worked, as far as finishing that part of the setup goes. But, the laptop doesn't see the Internet. Wiring is as follows: Cable from street -- Cable Modem -- Netgear Router -- Switch -- WRT54G Router -- Laptop Is the last link wired or wireless? The laptop can log in to the WRT54G

Re: [PLUG] 2nd Router Setup

2010-04-03 Thread Richard C. Steffens
Neal wrote: Can you ping the Netgear router? Cable modem? 208.67.216.231 (google)? No. The only thing the laptop can talk to is the WRT54G. -- Regards, Dick Steffens ___ PLUG mailing list PLUG@lists.pdxlinux.org

Re: [PLUG] 2nd Router Setup

2010-04-03 Thread Neal
On Sat, Apr 3, 2010 at 5:16 PM, Richard C. Steffens rst...@comcast.net wrote: Neal wrote: Can you ping the Netgear router? Cable modem? 208.67.216.231 (google)? No. The only thing the laptop can talk to is the WRT54G. What does the WRT54G configuration page say the WAN IP address is? I

Re: [PLUG] 2nd Router Setup

2010-04-03 Thread Richard C. Steffens
Neal wrote: What does the WRT54G configuration page say the WAN IP address is? I set a static IP address of 192.168.0.250, a subnet mask of 255.255.255.0, and a gateway of 192.168.0.1. I would assume you're using DHCP for that. No. But when I tried changing to that I got an assigned

Re: [PLUG] 2nd Router Setup

2010-04-03 Thread Neal
On Sat, Apr 3, 2010 at 5:30 PM, Richard C. Steffens rst...@comcast.net wrote: Neal wrote: What does the WRT54G configuration page say the WAN IP address is? I set a static IP address of 192.168.0.250, a subnet mask of 255.255.255.0, and a gateway of 192.168.0.1. I would assume you're using

Re: [PLUG] 2nd Router Setup

2010-04-03 Thread Richard C. Steffens
Neal wrote: Sorry but I'm out of time for now. Good luck with it. Me, too. Tomorrow's mostly tied up, but I'll try to fit in some more testing. Thanks for your help. -- Regards, Dick Steffens ___ PLUG mailing list PLUG@lists.pdxlinux.org