Re: Help Understanding While Loop

2005-10-15 Thread Drew Tomlinson
On 10/14/2005 3:24 PM David Kirchner wrote: On 10/14/05, Drew Tomlinson <[EMAIL PROTECTED]> wrote: OK, I've been working on an sh script and I'm almost there. In the script, I created a 'while read' loop that is doing what I want. Now I want to keep track of how many times the loop execute

Re: Help Understanding While Loop

2005-10-15 Thread Jan Grant
On Fri, 14 Oct 2005, Will Maier wrote: > > count = $(( count + 1 )) > ^^^ > > You're missing something here ;) Actually, you don't need the leading "$". With it, you'll get variable interpolation, which'll normally do the same thing. Once the expression has been interpolated, it'

Re: Help Understanding While Loop

2005-10-14 Thread David Kirchner
On 10/14/05, Drew Tomlinson <[EMAIL PROTECTED]> wrote: > OK, I've been working on an sh script and I'm almost there. In the > script, I created a 'while read' loop that is doing what I want. Now I > want to keep track of how many times the loop executes. Thus I included > this line between the '

Re: Help Understanding While Loop

2005-10-14 Thread Will Maier
On Fri, Oct 14, 2005 at 02:48:19PM -0700, Drew Tomlinson wrote: > OK, I've been working on an sh script and I'm almost there. In > the script, I created a 'while read' loop that is doing what I > want. Now I want to keep track of how many times the loop > executes. Thus I included this line betw

Re: Help With 'for' Loop

2005-10-14 Thread Drew Tomlinson
On 10/14/2005 1:05 PM Will Maier wrote: On Fri, Oct 14, 2005 at 12:33:07PM -0700, Drew Tomlinson wrote: [...] Yet 'echo $i' only returns "/multimedia/Pictures/1998", stopping at the first space. Is it possible to get 'i' to represent the whole string that 'find' returns? If so, how?

Re: Help With 'for' Loop

2005-10-14 Thread Drew Tomlinson
On 10/14/2005 12:52 PM David Kirchner wrote: On 10/14/05, Drew Tomlinson <[EMAIL PROTECTED]> wrote: Sorry to be such a pest today. I'm working on a sh script that uses a for loop. To test, I've written the following: for i in `/usr/bin/find /multimedia/Pictures -iname "*.jpg" -or -iname "

Re: Help With 'for' Loop

2005-10-14 Thread Will Maier
On Fri, Oct 14, 2005 at 12:33:07PM -0700, Drew Tomlinson wrote: [...] > Yet 'echo $i' only returns "/multimedia/Pictures/1998", stopping > at the first space. Is it possible to get 'i' to represent the > whole string that 'find' returns? If so, how? Bourne-style for loops use as the delimiter b

Re: Help With 'for' Loop

2005-10-14 Thread Mark Cullen
Drew Tomlinson wrote: Sorry to be such a pest today. I'm working on a sh script that uses a for loop. To test, I've written the following: for i in `/usr/bin/find /multimedia/Pictures -iname "*.jpg" -or -iname "*.gif" -print` do echo -e "\n$i" done The first line 'find' retur

Re: Help With 'for' Loop

2005-10-14 Thread David Kirchner
On 10/14/05, Drew Tomlinson <[EMAIL PROTECTED]> wrote: > Sorry to be such a pest today. I'm working on a sh script that uses a > for loop. To test, I've written the following: > > for i in `/usr/bin/find /multimedia/Pictures -iname "*.jpg" -or -iname > "*.gif" -print` > do > echo

Re: Help With 'for' Loop

2005-10-14 Thread Mark Cullen
Drew Tomlinson wrote: Sorry to be such a pest today. I'm working on a sh script that uses a for loop. To test, I've written the following: for i in `/usr/bin/find /multimedia/Pictures -iname "*.jpg" -or -iname "*.gif" -print` do echo -e "\n$i" done The first line 'find' retur

Re: Help With Find Syntax

2005-10-14 Thread Glenn Sieb
Drew Tomlinson said the following on 10/14/2005 3:13 PM: > OK, duh. I get it now. Thanks for pointing me in the right direction! Quite welcome! Enjoy!! Best, --Glenn -- "They that can give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety."

RE: Help With Find Syntax

2005-10-14 Thread Mark J. Sommer
> -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Drew Tomlinson > Sent: 10/14/2005 12:54 PM > To: FreeBSD Questions > Subject: Help With Find Syntax > > I want to recursively search a directory and return files that end in ".jpg" or ".gif" but I can't s

Re: Help With Find Syntax

2005-10-14 Thread Drew Tomlinson
On 10/14/2005 12:05 PM Glenn Sieb wrote: Drew Tomlinson said the following on 10/14/2005 2:53 PM: I want to recursively search a directory and return files that end in ".jpg" or ".gif" but I can't seem to get the find syntax right. My basic command lines are: find /multimedia/Pictures -in

Re: Help With Find Syntax

2005-10-14 Thread Charles Swiger
On Oct 14, 2005, at 2:53 PM, Drew Tomlinson wrote: $ find /multimedia/Pictures -iname "*.gif" -or "*.jpg" -print find: paths must precede expression Usage: find [path...] [expression] I've tried various placement of quotes, parenthesis, etc. but can't seem to find the right way to do th

Re: Help With Find Syntax

2005-10-14 Thread Glenn Sieb
Drew Tomlinson said the following on 10/14/2005 2:53 PM: > I want to recursively search a directory and return files that end in > ".jpg" or ".gif" but I can't seem to get the find syntax right. My > basic command lines are: > > find /multimedia/Pictures -iname "*.gif" -print > > OR > > find /mul

Re: help with shell script

2005-10-13 Thread Parv
in message <[EMAIL PROTECTED]>, wrote Peter Matulis thusly... Could your please wrap lines around 69 or so characters? > What I need is the size as the first item (not the second) on each > line. Then I can use sort. You can easily specify the column|key to sort on via -k flag ... { echo "po

Re: help with shell script

2005-10-13 Thread Parv
in message <[EMAIL PROTECTED]>, wrote Philip Hallstrom thusly... > > #!/bin/sh > > newline='\ > ' > > pkg_info -as | \ > tr '\n' ' ' | \ > sed -e 's/Package Size://g' \ > -e "s/(1K-blocks)/$newline/g" |\ > sed -e 's/^ *Information for //' Holy cow, i was

Re: help with shell script

2005-10-12 Thread Peter Matulis
--- Peter Matulis <[EMAIL PROTECTED]> wrote: > > --- Philip Hallstrom <[EMAIL PROTECTED]> wrote: > > > > 1. This gives me the amount of space (kB) taken up by the 10 largest > > > ports: > > > > > > $ pkg_info -as | grep ^[0-9] | sort -gr | head -10 | cut -c 1-6 > > > > > > 2. Using one figure

Re: help with shell script

2005-10-12 Thread Peter Matulis
--- Philip Hallstrom <[EMAIL PROTECTED]> wrote: > > 1. This gives me the amount of space (kB) taken up by the 10 largest ports: > > > > $ pkg_info -as | grep ^[0-9] | sort -gr | head -10 | cut -c 1-6 > > > > 2. Using one figure from above list I produce the details of the > > corresponding port:

Re: help with shell script

2005-10-12 Thread Philip Hallstrom
Hi. I am writing up a doc for the fbsd community that covers usage of ports. I have two commands that allow me to assertain the amount of disk space being utilized by currently installed ports. I would like to make a shell script (bourne or bash) out of them but I am not sure how. 1. This g

Re: Help!!!!!

2005-10-05 Thread Dmitry Mityugov
On 10/4/05, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > I lost all the pasword for root, admin, etc at FreeBsd 3 and I don't know who > to change it. and I can't access, anyone could assist me? http://www.freebsd.org/doc/en_US.ISO8859-1/books/faq/admin.html#FORGOT-ROOT-PW -- Dmitry Mityugov, S

Re: help needed for ipfw rules

2005-10-04 Thread Alex de Kruijff
On Mon, Sep 26, 2005 at 05:26:12PM +0300, Ertan Kucukoglu wrote: > Hi, > > I have a problem blocking foreign intruders for specific ports in ipfw. > > One of my friends have 4.X-Stable running in production for proxy, > e-mail, virus etc. Server also have natd and ipfw installed on it. We > hav

Re: Help!!!!!

2005-10-04 Thread Jerry McAllister
Original Message - > From: "Jerry McAllister" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Cc: > Sent: Tuesday, October 04, 2005 10:27 AM > Subject: Re: Help! > > > >> > >> I lost all the pasword for root, admin, etc

Re: Help!!!!!

2005-10-04 Thread Eros
Dont you have do the passwd for the Toor ? - Original Message - From: "Jerry McAllister" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Cc: Sent: Tuesday, October 04, 2005 10:27 AM Subject: Re: Help! I lost all the pasword for root, admin, etc at FreeBsd 3

Re: Help!!!!!

2005-10-04 Thread Jerry McAllister
> > I lost all the pasword for root, admin, etc at FreeBsd 3 and I don't know who > to change it. and I can't access, anyone could assist me? This is a frequently ask question and will be in the archive many times over.Check out booting to single user. jerry ___

Re: Help setting up Vinum mirror

2005-10-03 Thread Peter Clutton
> In some releases 'vinum_enable=yes' in /etc/conf caused a kernel panic at > boot. > Hence my question what OS... > > Arno Thanks for the replies everyone and sorry for the slow reply. I'm running 5.3 , and realised i had to run newfs and mount etc to get it going. I was getting confused thinking

Re: Help setting up Vinum mirror

2005-09-29 Thread FreeBSD usergroup
On 29 sep 2005, at 21:57, Drew Tomlinson wrote: On 9/29/2005 10:04 AM FreeBSD usergroup wrote: On 29 sep 2005, at 13:28, Peter Clutton wrote: Hi, I have gone through the docs on this but am just missing a couple of points conceptually, and would be grateful for any help. Basically i

Re: Help setting up Vinum mirror

2005-09-29 Thread Drew Tomlinson
On 9/29/2005 10:04 AM FreeBSD usergroup wrote: On 29 sep 2005, at 13:28, Peter Clutton wrote: Hi, I have gone through the docs on this but am just missing a couple of points conceptually, and would be grateful for any help. Basically i have created two slices on two IDE drives and mounted

Re: Help setting up Vinum mirror

2005-09-29 Thread FreeBSD usergroup
On 29 sep 2005, at 13:28, Peter Clutton wrote: Hi, I have gone through the docs on this but am just missing a couple of points conceptually, and would be grateful for any help. Basically i have created two slices on two IDE drives and mounted them (through fdisk, label etc), and had that al

Re: Help with Xorg

2005-09-24 Thread Subhro
Garrett Cooper wrote: On Sep 24, 2005, at 4:32 PM, nawcom wrote: Is the nvidia module being loaded into the kernel? i am assuming so. the devices should be created during bootup. let me know if / dev/nvidia* is being created, or email a boot log. Thanks, Ben Subhro wrote: Hello folks,

Re: Help with Xorg

2005-09-24 Thread Garrett Cooper
On Sep 24, 2005, at 4:32 PM, nawcom wrote: Is the nvidia module being loaded into the kernel? i am assuming so. the devices should be created during bootup. let me know if / dev/nvidia* is being created, or email a boot log. Thanks, Ben Subhro wrote: Hello folks, I am facing a problem

Re: Help with Xorg

2005-09-24 Thread Subhro
nawcom wrote: Is the nvidia module being loaded into the kernel? i am assuming so. the devices should be created during bootup. let me know if /dev/nvidia* is being created, or email a boot log. Thanks, Ben Hello Ben, Thanks for your reply. kldstat shows that nvidia.ko has been loaded. /d

Re: Help with Xorg

2005-09-24 Thread nawcom
Is the nvidia module being loaded into the kernel? i am assuming so. the devices should be created during bootup. let me know if /dev/nvidia* is being created, or email a boot log. Thanks, Ben Subhro wrote: Hello folks, I am facing a problem in using the nvidia driver with Xorg. I have ins

Re: Help! Stupid Newbie Question

2005-09-24 Thread Joe Graham
On 9/24/05, Glenn Dawson <[EMAIL PROTECTED]> wrote: > > At 01:16 PM 9/24/2005, Joe Graham wrote: > >Hello, > > I've been playing off and on with FreeBSD for a bit of time now, but I > >would still consider myself a relative newbie. I've read enough and > played > >enough to know how to install appl

Re: Help! Stupid Newbie Question

2005-09-24 Thread Glenn Dawson
At 01:16 PM 9/24/2005, Joe Graham wrote: Hello, I've been playing off and on with FreeBSD for a bit of time now, but I would still consider myself a relative newbie. I've read enough and played enough to know how to install applications from ports (e.g., I was able to successfully install Moria

Re: Help running shell script from cron

2005-09-09 Thread Kevin Kinsey
Sandy Knight wrote: I am having trouble configuring my shell scripts to run under cron (user level, not root). I have set up a test.sh script which sends me an email, it works fine from the command line (ssh). the script is as follows: #!/bin/sh echo "helloworld" | mail -s "helloworld" [EMAIL

Re: Help running shell script from cron

2005-09-09 Thread Frank Mueller - emendis GmbH
Always use full path in Scrips, e.g. /bin/echo ... /usr/local/bin/php .. Greetz, Ice Sandy Knight schrieb: I am having trouble configuring my shell scripts to run under cron (user level, not root). I have set up a test.sh script which sends me an email, it works fine from the comman

Re: Help running shell script from cron

2005-09-09 Thread jdyke
there is a possibility that the 'not found' is coming from your call to php and not that it can't find test.sh either comment out that php line, or use /full/path/to/php /home/a_user/cron/test.php HTH Jeff Sandy Knight wrote: I am having trouble configuring my shell scripts to run under cron (

Re: Help diagnosing system hangs?

2005-08-23 Thread Mike Tancsa
On Mon, 22 Aug 2005 23:50:36 -0700, in sentex.lists.freebsd.questions you wrote: >I've recently been experiencing frequent hangs with FreeBSD 5.3-RELEASE-p20. >Strangely, this didn't appear to happen with 5.3-RELEASE or before >a few months ago. > There are a lot of bugs that have been fixed sinc

Re: Help diagnosing system hangs?

2005-08-23 Thread Eric Rescorla
Nikolas Britton <[EMAIL PROTECTED]> wrote: > On 8/23/05, Eric Rescorla <[EMAIL PROTECTED]> wrote: > > I've recently been experiencing frequent hangs with FreeBSD 5.3-RELEASE-p20. > > Strangely, this didn't appear to happen with 5.3-RELEASE or before > > a few months ago. > > > > My platform is a P

Re: Help diagnosing system hangs?

2005-08-23 Thread Nikolas Britton
On 8/23/05, Eric Rescorla <[EMAIL PROTECTED]> wrote: > I've recently been experiencing frequent hangs with FreeBSD 5.3-RELEASE-p20. > Strangely, this didn't appear to happen with 5.3-RELEASE or before > a few months ago. > > My platform is a P4-2.8 GHz (dmesg appended at end). > > The behavior is

Re: Help with xorg.conf

2005-08-16 Thread Gary W. Swearingen
[EMAIL PROTECTED] writes: > However none of them have an effect! Please help! Adding to what others have said.. You can learn a lot by looking at (something like): /var/log/Xorg.0.log If your monitor and controller are fairly new, you should find info about their possible (and actual) settings

Re: Help with xorg.conf

2005-08-15 Thread Jonathan Glaschke
Hello, On Tue, Aug 16, 2005 at 04:39:37PM +1200, [EMAIL PROTECTED] wrote: > Hey guys, > > I'm a FreeBSD newbie and have been lovin' the whole experience. I've recently > got fluxbox working as my WM, which was an experience, and just got firefox > working too. My problem is that I can't get X

Re: Help with xorg.conf

2005-08-15 Thread Roland Smith
On Tue, Aug 16, 2005 at 04:39:37PM +1200, [EMAIL PROTECTED] wrote: > Hey guys, > > I'm a FreeBSD newbie and have been lovin' the whole experience. I've recently > got fluxbox working as my WM, which was an experience, and just got firefox > working too. My problem is that I can't get X to use m

Re: Help with xorg.conf

2005-08-15 Thread Kent Stewart
On Monday 15 August 2005 09:39 pm, [EMAIL PROTECTED] wrote: > Hey guys, > > I'm a FreeBSD newbie and have been lovin' the whole experience. I've > recently got fluxbox working as my WM, which was an experience, and > just got firefox working too. My problem is that I can't get X to > use my whol

Re: Help with Fluxbox

2005-08-15 Thread Leonidas Tsampros
On Mon, Aug 15, 2005 at 05:14:04PM +1200, Campbells wrote: > Hello, > > I just installed Fluxbox from the ports collection (latest version). I > subsequently added this line at the end of my xinitrc file: > > exec /usr/X11R6/bin/fluxbox > > Now when I run startx nothing has changed! It isn't

Re: Help on bash script?

2005-08-13 Thread Ian Smith
On Sat, 13 Aug 2005, Giorgos Keramidas wrote: > On 2005-08-12 13:38, Benson Wong <[EMAIL PROTECTED]> wrote: > > I prefer: > > > > for COREFILE in `find / -type f -name core -print` > > do > > ... > > done > > > > Wouldn't that accomplish the same thing? > > More or less. Less, when

Re: Help on bash script?

2005-08-12 Thread Giorgos Keramidas
On 2005-08-12 13:38, Benson Wong <[EMAIL PROTECTED]> wrote: > I prefer: > > for COREFILE in `find / -type f -name core -print` > do > ... > done > > Wouldn't that accomplish the same thing? More or less. Less, when the filenames are too many. See questions posted on this very same list about `

Re: Help on bash script?

2005-08-12 Thread Benson Wong
I prefer: for COREFILE in `find / -type f -name core -print` do ... done Wouldn't that accomplish the same thing? On 8/12/05, Ian Smith <[EMAIL PROTECTED]> wrote: > On Fri 12 Aug 2005 09:33:54 +0800 Xu Qiang <[EMAIL PROTECTED]> wrote: > > > find / -type f -name core -print

RE: Help on bash script?

2005-08-11 Thread Xu Qiang
dpk wrote: > It will work with either 'let' or within an 'arithmetic expansion': > > $[++var] > let ++var > > By the way, there is another syntax, from the man page, that seems to > operate identically: > > $((++var)) and $((var+1)) With "let ++var", the result is still 0, it isn't incremented.

RE: Help on bash script?

2005-08-11 Thread dpk
On Fri, 12 Aug 2005, Xu Qiang wrote: > This is my test script: > > - > #!/bin/bash > > var=0 > var=$[3] > > vari=0 > ++vari > > echo $var > echo $vari > - > > The result is: > ./test.sh: ++vari: command not found > 3 > 0 > > So the manual of bash is incorrec

RE: Help on bash script?

2005-08-11 Thread Xu Qiang
This is my test script: - #!/bin/bash var=0 var=$[3] vari=0 ++vari echo $var echo $vari - The result is: ./test.sh: ++vari: command not found 3 0 So the manual of bash is incorrect? Regards, Xu Qiang ___

RE: Help on bash script?

2005-08-11 Thread Xu Qiang
dpk wrote: > On Fri, 12 Aug 2005, Xu Qiang wrote: >> 1. The way of incrementing the variable NCOREFILES. Why does it use >> the formula of "NCOREFILES=$[ $NCOREFILES + 1 ]", and not the direct >> way of "NCOREFILES=$NCOREFILES+1"? > > If that was done, NCOREFILES would end up looking like: > > +1

RE: Help on bash script?

2005-08-11 Thread Xu Qiang
Giorgos Keramidas wrote: > On 2005-08-12 10:16, Xu Qiang <[EMAIL PROTECTED]> wrote: >> Btw, can we "export" a value in the sub-shell back to the parent? > > Only through `backquote subtitution', as the child process cannot > affect the environment of the parent process. > > value=`shell com

Re: Help on bash script?

2005-08-11 Thread Giorgos Keramidas
On 2005-08-12 10:16, Xu Qiang <[EMAIL PROTECTED]> wrote: > Btw, can we "export" a value in the sub-shell back to the parent? Only through `backquote subtitution', as the child process cannot affect the environment of the parent process. value=`shell command` value=$(shell command)

RE: Help on bash script?

2005-08-11 Thread Xu Qiang
dpk wrote: > On Fri, 12 Aug 2005, Xu Qiang wrote: > As soon as you used the pipe, to the while, you entered a sub-shell. > There's no way (that I'm aware of anyways) to get the sub-shell's > variables sent back up to the parent. Thanks for your detailed analysis and a solution. Yes, I didn't notic

Re: Help on bash script?

2005-08-11 Thread dpk
On Fri, 12 Aug 2005, Xu Qiang wrote: > Hi, all: > > I don't know if this is the right list to ask this question. But since I > didn't find a bash script mail list and you guys are always so helpful, > then... > > Here are an excerpt of a bash script: > > ---

Re: Help Me Please!!!

2005-07-26 Thread Frank Staals
Joseph Lynch wrote: cd . && /usr/local/bin/bash /usr/ports/textproc/intltool/work/intltool-0.34/missing --run automake-1.9 --gnu /usr/ports/textproc/intltool/work/intltool-0.34/missing: line 52: automake-1.9: command not found WARNING: `automake-1.9' is missing on your system. You should only n

Re: help

2005-07-21 Thread virgil huston
On 7/19/05, Bryan Maynard <[EMAIL PROTECTED]> wrote: > On Tuesday 19 July 2005 10:14 am, Rommi Alvian (MTHK/EDP) wrote: > > I am deeply interested with freeBSD. currently, i am a windows expert > > then i am trying to move into freeBSD. The problem is no one can teach > > me. i have read xxxguide

Re: help

2005-07-19 Thread Bryan Maynard
On Tuesday 19 July 2005 10:14 am, Rommi Alvian (MTHK/EDP) wrote: > I am deeply interested with freeBSD. currently, i am a windows expert > then i am trying to move into freeBSD. The problem is no one can teach > me. i have read xxxguide but it can't help me. does freeBSD support > GUI interface?

Re: help

2005-07-19 Thread Robert Slade
On Tue, 2005-07-19 at 10:14, Rommi Alvian (MTHK/EDP) wrote: > I am deeply interested with freeBSD. currently, i am a windows expert then > i am trying to move into freeBSD. The problem is no one can teach me. i have > read xxxguide but it can't help me. does freeBSD support GUI interface? > > pl

Re: help

2005-07-19 Thread Jonathan Glaschke
Hello Alvian, On Tue, Jul 19, 2005 at 05:14:38PM +0700, Rommi Alvian (MTHK/EDP) wrote: > I am deeply interested with freeBSD. currently, i am a windows expert then > i am trying to move into freeBSD. The problem is no one can teach me. i have > read xxxguide but it can't help me. does freeBSD sup

Re: help with she script

2005-07-07 Thread Alejandro Pulver
On Wed, 6 Jul 2005 23:29:17 -0400 "fbsd_user" <[EMAIL PROTECTED]> wrote: > On Sun, 3 Jul 2005 16:47:24 -0400 > "fbsd_user" <[EMAIL PROTECTED]> wrote: > > > This is my last coding problem. > > > > > > target="check-state" > > > > # Find the rule number of the target rule where you want the > doorm

RE: help with she script

2005-07-06 Thread fbsd_user
On Sun, 3 Jul 2005 16:47:24 -0400 "fbsd_user" <[EMAIL PROTECTED]> wrote: > This is my last coding problem. > > > target="check-state" > > # Find the rule number of the target rule where you want the doorman > # pass rules inserted before. > > ruleno=`ipfw list | sed -n -e "s/00\([0-9]*\) $target

Re: Help passwd file convert

2005-07-05 Thread Lowell Gilbert
Sean Murphy <[EMAIL PROTECTED]> writes: > I am going to move over from Solaris 8 to FreeBSD 5.4 but would like > to keep uid, usernames, and passwords from the Solaris 8 box intact > when I move them to the FreeBSD box. Is it just as simple as a copy > and paste for the passwd file? Is there any

Re: help with sh script

2005-07-04 Thread FreeBSD questions mailing list
On 03 jul 2005, at 19:03, fbsd_user wrote: On Sun, 3 Jul 2005 12:14:05 -0400 "fbsd_user" <[EMAIL PROTECTED]> wrote: Thanks but I need a little more help. num_ip="(printf $raw_ip | sed 's/\.//g')" gives me a error. What would the correct syntax be? I am trying to write script to insert ru

Re: help with sh script

2005-07-04 Thread Roland Smith
On Sun, Jul 03, 2005 at 01:03:40PM -0400, fbsd_user wrote: > > I get this error "printf missing format character" > > Does sed need different syntax or have I got it all wrong? Issue the following command and be enlightend: man 1 printf Or just use 'echo' instead. Roland -- R.F.Smith (http:/

Re: help with sh script

2005-07-03 Thread Giorgos Keramidas
On 2005-07-03 09:39, fbsd_user <[EMAIL PROTECTED]> wrote: > What is the sh coding to strip the periods from a IP address?? > > raw_ip='10.0.10.5' this is starting > num_ip='100105'and this is what I need to convert to. There are many ways: echo "${raw_ip}" | sed -e 's/\.//g' echo "${

Re: help with she script

2005-07-03 Thread Alejandro Pulver
On Sun, 3 Jul 2005 16:47:24 -0400 "fbsd_user" <[EMAIL PROTECTED]> wrote: > > Thanks guys your solutions have worked and I am learning allot along > the way. > You are welcome. > This is my last coding problem. > > > target="check-state" > > # Find the rule number of the target rule where yo

RE: help with she script

2005-07-03 Thread fbsd_user
Thanks guys your solutions have worked and I am learning allot along the way. This is my last coding problem. target="check-state" # Find the rule number of the target rule where you want the doorman # pass rules inserted before. ruleno=`ipfw list | sed -n -e "s/00\([0-9]*\) $target/\1/p"` T

Re: help with sh script

2005-07-03 Thread Alejandro Pulver
On Sun, 3 Jul 2005 14:59:32 -0400 "fbsd_user" <[EMAIL PROTECTED]> wrote: > > > std_text='No ALTQ support in kernel ALTQ related functions disabled' > ret_ob='No ALTQ support in kernel ALTQ related functions disabled > OK' > > ret_ob=`printf "$ret_ob" | sed 's/\$std_text//g'` > Does not strip of

Re: help with sh script

2005-07-03 Thread FreeBSD questions mailing list
On 03 jul 2005, at 20:59, fbsd_user wrote: std_text='No ALTQ support in kernel ALTQ related functions disabled' ret_ob='No ALTQ support in kernel ALTQ related functions disabled OK' ret_ob=`printf "$ret_ob" | sed 's/\$std_text//g'` Does not strip off the std_text stuff. How would I code a s

RE: help with sh script

2005-07-03 Thread fbsd_user
std_text='No ALTQ support in kernel ALTQ related functions disabled' ret_ob='No ALTQ support in kernel ALTQ related functions disabled OK' ret_ob=`printf "$ret_ob" | sed 's/\$std_text//g'` Does not strip off the std_text stuff. How would I code a statement to remove everything from $ret_ob but

Re: help with sh script

2005-07-03 Thread FreeBSD questions mailing list
On 03 jul 2005, at 17:18, fbsd_user wrote: On 03 jul 2005, at 15:39, fbsd_user wrote: What is the sh coding to strip the periods from a IP address?? raw_ip='10.0.10.5' this is starting num_ip='100105'and this is what I need to convert to. Hi, many ways, here's one: pri

RE: help with sh script

2005-07-03 Thread fbsd_user
On Sun, 3 Jul 2005 12:14:05 -0400 "fbsd_user" <[EMAIL PROTECTED]> wrote: >> Thanks but I need a little more help. >> >> num_ip="(printf $raw_ip | sed 's/\.//g')" >> >> gives me a error. >> >> What would the correct syntax be? >> >> I am trying to write script to insert rules into PF firewall >> on

Re: help with sh script

2005-07-03 Thread Roland Smith
On Sun, Jul 03, 2005 at 12:14:05PM -0400, fbsd_user wrote: > >many ways, here's one: > > > >printf '10.0.10.5' | sed 's/\.//g' > > > >Arno > > * > > Thanks but I need a little more help. > > num_ip="(printf $raw_ip | sed 's/\.//g')" > > gives me a error.

Re: help with sh script

2005-07-03 Thread Alejandro Pulver
On Sun, 3 Jul 2005 12:14:05 -0400 "fbsd_user" <[EMAIL PROTECTED]> wrote: > Thanks but I need a little more help. > > num_ip="(printf $raw_ip | sed 's/\.//g')" > > gives me a error. > > What would the correct syntax be? > > I am trying to write script to insert rules into PF firewall > on 5.4.

RE: help with sh script

2005-07-03 Thread fbsd_user
On 03 jul 2005, at 15:39, fbsd_user wrote: >> What is the sh coding to strip the periods from a IP address?? >> >> >> raw_ip='10.0.10.5' this is starting >> num_ip='100105'and this is what I need to convert to. >> >> >> >Hi, >many ways, here's one: > >printf '10.0.10.5' | sed 's/\./

Re: help with sh script

2005-07-03 Thread FreeBSD questions mailing list
On 03 jul 2005, at 15:39, fbsd_user wrote: What is the sh coding to strip the periods from a IP address?? raw_ip='10.0.10.5' this is starting num_ip='100105'and this is what I need to convert to. Hi, many ways, here's one: printf '10.0.10.5' | sed 's/\.//g' Arno __

Re: help with matrox parhelia 256Mb with dual head = Success

2005-07-02 Thread Eric Ekong
Looks like I have figured it out and things are working in DVI mode with dual head desktop. It took a couple of friends over my shoulder to figure this out, but once I did what a wonderful thing. Attaching my xorg.conf and X.0.log for viewing and I hope this helps other people out as every other

Re: help with matrox parhelia 256Mb with dual head

2005-07-01 Thread Paul Schmehl
--On Friday, July 01, 2005 17:34:53 -0400 Eric Ekong <[EMAIL PROTECTED]> wrote: As far as I know there is no freebsd driver for the P-Series of the Matrox card P650, P750, and Parhelia. Everything I could find points to using the downloadable driver. The matrox driver for these cards is mtx a

Re: help with matrox parhelia 256Mb with dual head

2005-07-01 Thread Eric Ekong
As far as I know there is no freebsd driver for the P-Series of the Matrox card P650, P750, and Parhelia. Everything I could find points to using the downloadable driver. The matrox driver for these cards is mtx as opposed tot he mga/mga_hal/mgadrm. Mind sharing your xorg.conf just so I can co

Re: help with matrox parhelia 256Mb with dual head

2005-07-01 Thread Eric Ekong
As far as I know there is no freebsd driver for the P-Series of the Matrox card P650, P750, and Parhelia. Everything I could find points to using the downloadable driver. The matrox driver for these cards is mtx as opposed tot he mga/mga_hal/mgadrm. Mind sharing your xorg.conf just so I can co

Re: help with matrox parhelia 256Mb with dual head

2005-07-01 Thread Paul Schmehl
--On Friday, July 01, 2005 13:56:00 -0400 Eric Ekong <[EMAIL PROTECTED]> wrote: Initially the second monitor wasn't coming up at all. Now, with a minor change or two, I have the second monitor coming up, but it seems to bring up a second window manager that I have no access to..., the second mo

Re: help with matrox parhelia 256Mb with dual head

2005-07-01 Thread Paul Schmehl
--On Thursday, June 30, 2005 14:10:55 -0400 Eric Ekong <[EMAIL PROTECTED]> wrote: * Eric Ekong <[EMAIL PROTECTED]> [050629 23:18]: I am having issues getting dual head to work with this card and freebsd 5.4-STABLE. I previously had it working with the G550 with no problem. I am using Xorg wi

Re: help with matrox parhelia 256Mb with dual head

2005-06-30 Thread Eric Ekong
* Eric Ekong <[EMAIL PROTECTED]> [050629 23:18]: > I am having issues getting dual head to work with this card and > freebsd 5.4-STABLE. I previously had it working with the G550 > with no problem. I am using Xorg with everything all updated > from ports as of 5 minutes ago. As well as I am usi

Re: Help, I killed my machine.

2005-06-24 Thread Ken Ebling
On Jun 23, 2005, at 3:23 PM, Ben Timby wrote: I was upgrading from 4.10-STABLE to 5.4-STABLE, following the instructions in the freebsd handbook and something went wrong. I used CVSup to update my sources. I built the world and kernel as follows: cd /usr/src make buildworld && make build

RE: help with a failed install

2005-06-24 Thread Nethaniel
> On 6/23/05, Brian Duke <[EMAIL PROTECTED]> wrote: > > The BTX loader fails right after the initial setup screen. I press any > > option except install prompt and it fails. > > the first thing i would do is try different installation media. > disabling acpi might help. it's certainly worth a try(

Re: Help with 'make' failure while building custom kernel

2005-06-24 Thread Kris Kennaway
On Fri, Jun 24, 2005 at 04:11:17AM -0500, Jim Haskell wrote: > The offending lines from make: > > cc -c -x assembler-with-cpp -DLOCORE -O -pipe -Wall -Wredundant-decls > -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith > -Winline -Wcast-qual -fformat-extensions -std=

Re: Help with 'make' failure while building custom kernel

2005-06-24 Thread Jim Haskell
Kevin Kinsey wrote: Jim Haskell wrote: I, a relatively newcomer to FreeBSD, am having trouble compiling my own kernel for my new FreeBSD box. According to the handbook, if 'make' fails (and /usr/sbin/config and make dep do not have problems,) I should seek the wisdom of those on this listserv.

Re: Help with 'make' failure while building custom kernel

2005-06-23 Thread Kevin Kinsey
Jim Haskell wrote: I, a relatively newcomer to FreeBSD, am having trouble compiling my own kernel for my new FreeBSD box. According to the handbook, if 'make' fails (and /usr/sbin/config and make dep do not have problems,) I should seek the wisdom of those on this listserv. Attached is my kernel

Re: help with a failed install

2005-06-23 Thread luke
On 6/23/05, Brian Duke <[EMAIL PROTECTED]> wrote: > The BTX loader fails right after the initial setup screen. I press any > option except install prompt and it fails. the first thing i would do is try different installation media. disabling acpi might help. it's certainly worth a try(those instru

Re: Help, I killed my machine.

2005-06-23 Thread Björn König
Louis LeBlanc wrote: On 06/23/05 10:02 PM, Björn König sat at the `puter and typed: The -p stands for "pre-buildworld mode", i.e. you should run it before buildworld. ;-) Uh, careful. My copy of the FreeBSD handbook (http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/makeworld.html)

Re: Help, I killed my machine.

2005-06-23 Thread Louis LeBlanc
On 06/23/05 10:02 PM, Björn König sat at the `puter and typed: > Ben Timby wrote: > > > [...] I built the world and kernel as follows: > > So I guess you didn't followed the step-by-step instructions in the > migration guide? > > http://www.freebsd.org/releases/5.4R/migration-guide.html > > >

Re: Help, I killed my machine.

2005-06-23 Thread Björn König
Ben Timby wrote: [...] I built the world and kernel as follows: So I guess you didn't followed the step-by-step instructions in the migration guide? http://www.freebsd.org/releases/5.4R/migration-guide.html cd /usr/src make buildworld && make buildkernel [...] I did mergemaster -p. Th

Re: Help, I killed my machine.

2005-06-23 Thread Ben Timby
Chuck Swiger wrote: Ben Timby wrote: [ ... ] I understand a Signal 12 is a non-existant system call. The half installworld probably caused this. How can I recover from this? The easiest way is probably to perform an "upgrade" from a 5.4 CD burned from the ISO image. Make sure you don't r

Re: Help, I killed my machine.

2005-06-23 Thread Chuck Swiger
Ben Timby wrote: [ ... ] I understand a Signal 12 is a non-existant system call. The half installworld probably caused this. How can I recover from this? The easiest way is probably to perform an "upgrade" from a 5.4 CD burned from the ISO image. Make sure you don't repartition or enable ne

Re: help!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

2005-06-22 Thread Adi Pircalabu
On Tue, 21 Jun 2005 23:11:21 +0200 "M" <[EMAIL PROTECTED]> wrote: > I tried to boot some FreeBSD CD's on a Compaq/HP nx9110 laptop (5.4- > i386-disc1.iso, 4.9-i386-disc1.iso Every time i have the same > result : after the boot, the laptop shutdown whitout any message Hi, When the boot menu appear

RE: help!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

2005-06-21 Thread fbsd_user
You have to use a more descriptive subject. Explain in more detail just what you mean by "after boot" also explain how you created the disc1 cdrom. Check cdrom to see if it has single file or directory structure on it. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTE

Re: help! Strange traffic

2005-06-09 Thread Ean Kingston
On June 9, 2005 10:19 pm, Karan Gupta wrote: > Hi > Im running a fBSD T1 router(a gatewat with a sangoma 514 csu/dsu card) > that performs dhcp, nat, ipfw firewall. > FreeBSD rtr-eee..com 4.8-RELEASE FreeBSD 4.8-RELEASE #4: Thu Jul 31 > 04:47:04 PDT 2003 root@:/usr/src/sys/compile/GENERIC

<    5   6   7   8   9   10   11   12   13   14   >