Re: recommended book/guide for /bin/sh shell programming

2003-08-14 Thread Marvin J. Kosmal
On Wed, 2003-08-06 at 14:21, Dave [Hawk-Systems] wrote:
 For multiple reasons I am moving away from doing everything in perl/php for
 server based tasks. Made sense at the time to do everything in the language we
 used for the web as well, but am finding I do less web work and more server
 admin work as time progreses, and there are some significant hits to loading
 perl or php each time I want to move files and do other such tasks. As such I am
 finding more and more tasks being performed in plain ol shell scripting, thousgh
 this is still a hunt and peck type of operation fr the appropriate commands
 etc...
 
 As such, am looking for recommendations for a good guide/book or two for shell
 programming, but most of the books seem to be specific to bash, tcsh, ksh,
 etc... Given that there is a seperate bash shell port available, I would assume
 that /bin/sh != bash.  I would prefer to use plain ol /bin/sh since most of the
 core scripts scattered through the stable installs we have use it.
 
 Sugestions? Amazon links?
 
 Thanks
 
 Dave
 







Linux and Unix Shell Programming by David Tansley

ISBN  0-201-67472-6

Published by Addison-Wesley

Great book




Cheers





 
 ___
 [EMAIL PROTECTED] mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to [EMAIL PROTECTED]
 
-- 
Marvin J. Kosmal
Linux Activist
Registered User # 88512
Brought to by Libranet 2.7

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: ppp connection

2003-07-19 Thread Marvin J. Kosmal
These are the files
++/etc/ppp/ppp.conf++

#
# PPP  Sample Configuration File
# Originally written by Toshiharu OHNO
# Simplified 5/14/1999 by [EMAIL PROTECTED]
#
# See /usr/share/examples/ppp/ for some examples
#
# $FreeBSD: src/etc/ppp/ppp.conf,v 1.2.2.5 2001/07/13 10:55:23 brian Exp $
#

default:
 set log Phase Chat LCP IPCP CCP tun command
 ident user-ppp VERSION (built COMPILATIONDATE)

 # Ensure that device references the correct serial port
 # for your modem. (cuaa0 = COM1, cuaa1 = COM2)
 #
 set device /dev/cuaa0

 set speed 115200
 set dial ABORT BUSY ABORT NO\\sCARRIER TIMEOUT 5 \
   \\ AT OK-AT-OK ATE1Q0 OK \\dATDT\\T TIMEOUT 40 CONNECT
 set timeout 180# 3 minute idle timer (the default)
 enable dns # request DNS info (for resolv.conf)

papchap:
 #
 # edit the next three lines and replace the items in caps with
 # the values which have been assigned by your ISP.
 #

 set phone 360.314.4221 
 set authname lamsokvr
 set authkey *

 set ifaddr 10.0.0.1/0 10.0.0.2/0 255.255.255.0 0.0.0.0
 add default HISADDR# Add a (sticky) default route


++/etc/resolv.conf***

domain xprt.net
nameserver 209.102.124.11

nameserver 209.102.124.10


Thank YOU





On Sat, 2003-07-19 at 07:46, Matthew Graybosch wrote:
 On Friday 18 July 2003 08:20 pm, Marvin J. Kosmal wrote:
 
  I can't ping anyone.
 
  TIA
 
 Send me copies of your /etc/ppp/ppp.conf and /etc/resolv.conf so I can 
 diagnose your problem. I need firsthand info if I'm to properly 
 troubleshoot your problem.
 
 -- 
 Matthew Graybosch
 http://www.starbreaker.net
 I am become root, shatterer of kernels.
 
 ___
 [EMAIL PROTECTED] mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to [EMAIL PROTECTED]
 
-- 
Marvin J. Kosmal
Linux Activist
Registered User # 88512
Brought to by Libranet 2.7

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


ppp connection

2003-07-18 Thread Marvin J. Kosmal

Hi

 trying to get my ppp connection to work

I created a /etc/resolv.conf
/etc/ppp/options
/etc/ppp/chat.script
/etc/ppp/pap-secrets



I launch it with

/usr/sbin/pppd


And nothing happens

Any ideas??

-- 
Marvin J. Kosmal
Linux Activist
Registered User # 88512
Brought to by Libranet 2.7

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: ppp connection

2003-07-18 Thread Marvin J. Kosmal
On Fri, 2003-07-18 at 16:23, Matthew Graybosch wrote:
 On Friday 18 July 2003 06:00 pm, Marvin J. Kosmal wrote:
  Hi
 
   trying to get my ppp connection to work
 
  And nothing happens
 
  Any ideas??
 
 It sounds like you're trying to use kernel ppp. Use user ppp 
 instead. Edit /etc/ppp/ppp.conf to set the modem device, phone 
 number, userid, and password. Then invoke it with ppp -foreground 
 papchap.
 


This is what I get now..



rl0: flags=8802BROADCAST,SIMPLEX,MULTICAST mtu 1500
ether 00:4f:4e:05:32:b6
media: Ethernet autoselect (10baseT/UTP)
status: no carrier
lp0: flags=8810POINTOPOINT,SIMPLEX,MULTICAST mtu 1500
faith0: flags=8002BROADCAST,MULTICAST mtu 1500
lo0: flags=8049UP,LOOPBACK,RUNNING,MULTICAST mtu 16384
inet6 ::1 prefixlen 128 
inet6 fe80::1%lo0 prefixlen 64 scopeid 0x4 
inet 127.0.0.1 netmask 0xff00 
ppp0: flags=8010POINTOPOINT,MULTICAST mtu 1500
sl0: flags=c010POINTOPOINT,LINK2,MULTICAST mtu 552
tun0: flags=8010POINTOPOINT,MULTICAST mtu 1500


I can't ping anyone.

TIA












 -- 
 Matthew Graybosch
 http://www.starbreaker.net
 I am become root, shatterer of kernels.
 
-- 
Marvin J. Kosmal
Linux Activist
Registered User # 88512
Brought to by Libranet 2.7

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


ports question

2003-07-13 Thread Marvin J. Kosmal


Hi

How do I go into ports

and do the make off the cdrom cause
I am not on network yet.

I am assuming I can do the make and 
the files I need are on the CDROM???


TIA


-- 
Marvin J. Kosmal
Linux Activist
Registered User # 88512
Brought to by Libranet 2.7

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


.forward file

2003-07-09 Thread Marvin J. Kosmal


.forward file

So I want to forward my mail from

a box with the email as 

[EMAIL PROTECTED]

to 

[EMAIL PROTECTED]

So if I understand this the syntax would be ( in .forward)

[EMAIL PROTECTED]:  [EMAIL PROTECTED]

???

Yes/NO???

TIA



-- 
Marvin J. Kosmal
Linux Activist
Registered User # 88512
Brought to by Libranet 2.7

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Users question...

2003-07-07 Thread Marvin J. Kosmal
On Mon, 2003-07-07 at 12:38, Ken Menzel wrote:
 This is really a MySQL question,
\

snip


  Get Paul Dubois' excellent book. MySQL Second Edition ( Sams
 Publishing).  It's great!


Is this a good beginners book???

I need to get this system down

/snip
 
-- 
Marvin J. Kosmal
Linux Activist
Registered User # 88512
Brought to by Libranet 2.7

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: netmask 0xfffffff8 broadcast 205.238.xx.7

2003-07-07 Thread Marvin J. Kosmal
On Mon, 2003-07-07 at 19:55, DanB wrote:
 inet 205.238.xx.1 netmask 0xfff8 broadcast 205.238.xx.7.   Need a
 netmask convertor   to change 0xfffc to 255.255.xxx.xxx. Anybody





 know of a good one?


me

ffhex = 255 decimal

fchex = 252


so looks like 255.255.255.252



 
 Dan
 
 
 ___
 [EMAIL PROTECTED] mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to [EMAIL PROTECTED]
 
-- 
Marvin J. Kosmal
Linux Activist
Registered User # 88512
Brought to by Libranet 2.7

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Change terminals

2003-07-07 Thread Marvin J. Kosmal


Question

When you ssh into your work machine from home

How or can you change the terminal you are on..



example below





Last login: Mon Jul  7 22:23:50 2003 from clark.lab
[EMAIL PROTECTED]:~$ w
 22:31:55 up 4 days,  8:42,  7 users,  load average: 1.16, 1.03, 1.01
USER TTY  FROM  LOGIN@   IDLE   JCPU   PCPU WHAT
mkosmal  :0   -Thu13   ?xdm?  14:27   4.09s
/usr/bin/icewm-experimental
mkosmal  pts/0:0   Thu134days  4days  4days
./setiathome
mkosmal  pts/1:0   Thu134days  0.07s  0.07s -bash
mkosmal  pts/2:0.0 Thu154days  0.31s  0.28s ssh
[EMAIL PROTECTED]
mkosmal  pts/3:0.0 Thu164days  0.00s  0.00s -bash
mkosmal  pts/4:0.0 Thu164days  0.04s  0.04s -bash
mkosmal  pts/5pdx-ppp374.pop1. 22:310.00s  0.04s  0.02s w
 


I did the w.  and am on pts/5

How do I get to pts/0??


TIA





-- 
Marvin J. Kosmal
Linux Activist
Registered User # 88512
Brought to by Libranet 2.7

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


cpu

2003-07-02 Thread Marvin J. Kosmal

Hi

How do I find out if 4.7 saw  is using both of
my CPU's

TIA


-- 
Marvin J. Kosmal
Linux Activist
Registered User # 88512
Brought to by Libranet 2.7

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


adduser question

2003-06-29 Thread Marvin J. Kosmal

Hi 

New to FreeBSD

Currently using Libranet trying to switch my main box
to FreeBSD..

MY current problem is adduser

I think is is corrupted.

When I type adduser

I get the regular first three lines.

Check /etc/shells
Check /etc/master.pwd
Check /etc/group

Usernames must match regulare expression: [mkosmal]:

That last line must come from an aborted prior attempt.
It just gets worse after that.

In /usr/sbin
the adduser script is in part

Copyright 1995-1996 Wolfram Schneider etc. yada. yada.. yada..


I am using a disk that came with Teach  Yourself FreeBSD in 24 hours..



I tried editing the following files by had

/etc/passwd.
/etc/master.pwd
/etc/group

I couldn't find the password file.  

This didn't work either..

TIA


Marvin


-- 
Marvin J. Kosmal
Linux Activist
Registered User # 88512
Brought to by Libranet 2.7

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]