Re: How to replace two strings in a file in the same time withsed command ?

2007-12-12 Thread Halid Faith
I tried it, but I get an error; cut: boby, e, 656a, No such file or directory cut: allen, e, 987c, No such file or directory ... ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe,

Re: How to replace two strings in a file in the same time withsed command ?

2007-12-12 Thread Halid Faith
I tried it, but I get an error; cut: boby, e, 656a, No such file or directory cut: boby, e, 656a, No such file or directory cut: allen, e, 987c, No such file or directory cut: allen, e, 987c, No such file or directory ... here's my script for i in `cat file1` ; do sed -e s/old1/new1 `cut -d,

How to use cut or awk commands into sed command ?

2007-12-12 Thread Halid Faith
I have a file named file1 which contains some values. I want to replace some strings into it, so I use sed command but I get an error. sed s#oldstring#`cut -d, -f3 file2`# file1 sed: 1: s/yenidomain2/f0b2875d- ...: unterminated substitute in regular expression also I get an error with awk

Re: How to use cut or awk commands into sed command ?

2007-12-12 Thread Halid Faith
Let me try to explain I have a file called A which contains variable values as below; file1, abc12 foot1, cba11 boby, def123 ... Also I have another file called B which contains partly valuable values as following; ### file of A begin Server valuable1 Client valuable2 the file end I have to

How to replace two strings in a file in the same time with sed command ?

2007-12-11 Thread Halid Faith
I want to replace two or more strings in a file in the same time with sed command. How do I that ? ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL

Re: How to replace two strings in a file in the same time with sed command ?

2007-12-11 Thread Halid Faith
Ok But I have another problem, I couldn't use any command interior of sed command. That's to say I have a script; yy=file5 for i in `cat file1`; do sed -e 's/old1/new1\ \'$i'/g' -e 's/old2/'cut -d, -f 1 ${yy}'/g' file2 file3 done When I run the script, I get an error, due to using cut

How can I assign these valuables concerning places as correctly ?

2007-12-11 Thread Halid Faith
I have a file called A which contains variable values as below; file1, abc12 foot1, cba11 boby, def123 ... Also I have another file called B which contains partly valuable values as following; begin Server valuable1 Client valuable2 end I have to assign the first column valuables in A to

Re: How to replace two strings in a file in the same time with sed command ?

2007-12-11 Thread Halid Faith
}# file1 file2 done cat test1 boby, e, 656a, allen, e, 987c, ... - Original Message - From: Tino Engel [EMAIL PROTECTED] To: Halid Faith [EMAIL PROTECTED] Cc: freebsd-questions@freebsd.org Sent: Tuesday, December 11, 2007 11:22 PM Subject: Re: How to replace two strings in a file

Re: I am looking for a bandwidth limiter tool as to time andkilobytes.

2007-10-07 Thread Halid Faith
as to time andkilobytes. On 10/6/07, Halid Faith wrote: Hello I use dummynet to limit bandwidth on freebsd6.2. But I don't know how I limit an ip blocks as to time ( for instance like 1 Gbyte in 1 month ). I am looking for a tool which provides to limit bytes according to time

I am looking for a bandwidth limiter tool as to time and kilobytes.

2007-10-05 Thread Halid Faith
Hello I use dummynet to limit bandwidth on freebsd6.2. But I don't know how I limit an ip blocks as to time ( for instance like 1 Gbyte in 1 month ). I am looking for a tool which provides to limit bytes according to time. is there any free tool for this case? Thanks already

Why crontab is not able to run some commands ?

2007-05-11 Thread Halid Faith
I have a script. As I am a root user, I can run it without a problem. I added that script to crontab in order to run as automatic. I entered in /etc/crontab and put down as below; */20 * * * * root/etc/scriptfile Despite root user, the crontab could not run above

fxp0 oversize frame problem

2007-03-29 Thread Halid Faith
Hello I use FreeBSD 6.2-RELEASE #1 as a gateway server. I have been receving a error message in /var/log/messages twice a month recently; kernel: fxp0: discard oversize frame (ether type 800 flags 3 len 1515 max 1514) As that problem has become, the concerning ethernet card has slow down very

About root user rights

2007-03-07 Thread Halid Faith
I use Freebsd6.0.stable. Let me explain my scene. I am an admin for my bsdserver. That is, I can be root user. But There are 3 people who can be root user in the same server. I have a directory. I want them not to enter that directory. if it be possible the server should ask one more password

My machine gave a panic

2007-01-27 Thread Halid Faith
I upgraded it to freebsd6.2. I got a panic again. Debug info as below; What do I have to change ? Thanks # kgdb kernel.debug /var/crash/vmcore.0 [GDB will not be able to debug user-mode threads: /usr/lib/libthread_db.so: Undefined symbol ps_pglobal_lookup] GNU gdb 6.1.1 [FreeBSD] Copyright 2004

My machine gave a panic

2007-01-27 Thread Halid Faith
I upgraded it to freebsd6.2. I got a panic again. Debug info as below; What do I have to change ? Thanks # kgdb kernel.debug /var/crash/vmcore.0 [GDB will not be able to debug user-mode threads: /usr/lib/libthread_db.so: Undefined symbol ps_pglobal_lookup] GNU gdb 6.1.1 [FreeBSD] Copyright 2004

How to upgrade an exist freebsd to freebsd6.2 ?

2007-01-26 Thread Halid Faith
I have a machine 6.0-RELEASE. How do I upgrade it to Freebsd6.2 without any problem? Could you advise a useful site about that ? After upgrade, May a problem like cannot login the system be ? Thanks ___ freebsd-questions@freebsd.org mailing list

Why does my machine give a panic?

2007-01-20 Thread Halid Faith
I used to use freebsd4.X. I didn't have any problem about it. After I reinstalled freebsd6.1 my server has started to given a panic. I am sure that the server's hardware is good. I ran kgdb on the server as below; # kgdb kernel.debug /var/crash/vmcore.0 [GDB will not be able to debug user-mode

How to change users rights for a symboliked file.

2006-12-21 Thread Halid Faith
I use Freebsd6.1. I want to give a symbolic link for a directory with ln -s as below; cd / ln -s /var/tmp/ tmp2 ls -l /var/tmp lrwxr-xr-x 1 root wheel 14 Dec 21 10:12 tmp - /var/tmp I change write of user and group but i can't that. chmod 777 tmp2 ls -l tmp2 lrwxr-xr-x 1 root

about crash debugging

2006-09-02 Thread Halid Faith
I use freebsd6.1 the server sometimes becomes crash about twice in a month. According to freebsd handbook I did kernel debug. I enabled dumpdev in rc.conf after the crash made vmcore.1 file. I typed kgdb kernel.debug /var/crash/vmcore.1 I read as below Dumping 511 MB (2 chunks) chunk 0:

fatal trap 12 error

2006-07-28 Thread Halid Faith
Hello I use FreeBSD6.0. The machine is be locked every week. it gives an error as below: I add to kernel multi cpu support. Also I haven't changed the kernel fatal trap 12: page default while in kernel mode cpuid=1 ; apic id = 00 fault code = supervisor write, page not present trap number =

How to install freebsd6 on alpha server ?

2006-05-19 Thread Halid Faith
Hello I could not install Freebsd6 to a compaq alpha server. in fact I had installed freebsd4.4 before the same machine. But this time I got an error as below at the beginning ; fatal kernel trap memory management fault. after above error message, the server goes reboot. Does anyone has any

I could not install Freebsd6 on compaq alpha server.

2006-05-18 Thread Halid Faith
Hello I use digital unix tru64 on a compaq alpha server. I want to replace with FreeBSD. I tried to install with startup diskettes. (As you know to do that there are four diskettes that boot.flp, kern1.flp, kern2flp, mfs.flp.) After I pluged all of the diskettes, I got an error messages as

Why do I get this message by the server ?

2006-04-07 Thread Halid Faith
I have a freebsd5.4 server. I sometimes get a message on the screen as below; kernel: ipfw: pullup failed What cause this problem cause ? I see the below lines when I type netstat -ni 1# netstat -ni NameMtu Network Address Ipkts IerrsOpkts Oerrs Coll bge0 1500

Re: Why do I get this message by the server ?

2006-04-07 Thread Halid Faith
- Original Message - From: Lowell Gilbert [EMAIL PROTECTED] To: Halid Faith [EMAIL PROTECTED] Cc: freebsd-questions@freebsd.org Sent: Friday, April 07, 2006 9:10 PM Subject: Re: Why do I get this message by the server ? Halid Faith [EMAIL PROTECTED] writes: I have a freebsd5.4 server. I

How do I test disk performance in Freebsd60 ?

2006-03-22 Thread Halid Faith
I use FreeBSD60 on Dell1600 SC ( 2gbyte Ram 4 CPU ) amr0: LSILogic MegaRAID 1.51 mem 0xfcc0-0xfcc0 irq 21 at device 2.0 on pci2 amr0: LSILogic PERC 4/SC Firmware 351X, BIOS 1.10, 64MB RAM I have 3 scsi disks that each about 70 Gbyte based RAID5. That is Total capacity nearly 140 Gbyte.

What does udp port 514 use?

2006-03-21 Thread Halid Faith
Hello I have a machine which have Raid5 and Freebsd6.0 runs on it. I have 2 questions Let me ask you 1 - When I type in command line as below I sometimes see a thing. systat 1 -vmstat 3 usersLoad 0.00 0.00 0.00 Mar 21 21:03 Mem:KBREALVIRTUAL

Why the usage of disks exceed %100 in systat command ?

2006-03-21 Thread Halid Faith
Hello I have a machine which have Raid5 and Freebsd6.0 runs on it. When I type in command line as below I sometimes see a thing. systat 1 -vmstat 3 usersLoad 0.00 0.00 0.00 Mar 21 21:03 Mem:KBREALVIRTUAL VN PAGER SWAP PAGER

Re: What does udp port 514 use?

2006-03-21 Thread Halid Faith
OK Might this condition ( udp port 514 is open ) be vulnerable ? - Original Message - From: Miguel [EMAIL PROTECTED] To: Halid Faith [EMAIL PROTECTED] Cc: freebsd-questions@freebsd.org Sent: Tuesday, March 21, 2006 9:47 PM Subject: Re: What does udp port 514 use? Halid Faith wrote

Re: about mbuf clusters value

2006-03-17 Thread Halid Faith
Sorry I confused it with our another server I use freebsd5.4 What should I do ? thanks - Original Message - From: Andrew Pantyukhin [EMAIL PROTECTED] To: Halid Faith [EMAIL PROTECTED] Cc: freebsd-questions@freebsd.org Sent: Friday, March 17, 2006 10:49 AM Subject: Re: about mbuf

Re: about mbuf clusters value

2006-03-17 Thread Halid Faith
Hello On Freebsd5.4-release, When I type netstat -m I see below; netstat -m 4293870790 mbufs in use 330335/65535 mbuf clusters in use (current/max) 0/6/4528 sfbufs in use (current/peak/max) 386543 KBytes allocated to network 0 requests for sfbufs denied 0 requests for sfbufs delayed 0 requests

about mbuf clusters value

2006-03-16 Thread Halid Faith
Hello On Freebsd6.0-release, When I type netstat -m I see below; netstat -m 4293870790 mbufs in use 330335/65535 mbuf clusters in use (current/max) 0/6/4528 sfbufs in use (current/peak/max) 386543 KBytes allocated to network 0 requests for sfbufs denied 0 requests for sfbufs delayed 0 requests

my server gives an error kernel: free inode /var/XXXX had X blocks

2006-03-14 Thread Halid Faith
Hello I use Freebsd6.0 release. qmail server runs on the server. Today the server was locked and the server has given the screen an error as below; free inode /var/14579103 had 104 blocks the above error that the server gave a several times. I had to push the reset button to reboot the

My machine reboots by itself

2006-03-13 Thread Halid Faith
Hello My machine whose O.S. is FreeBSD6.0 has a 512 Mbyte Ram and it works as gateway. the server restarts by itself. I looked at the messages I saw as below savecore: reboot after panic: kmem_malloc(16384): kmem_map too small: 84840448 total allocated My kernel settings as below; options

the server gives kmem_map too small ?

2006-03-13 Thread Halid Faith
Hello My machine whose O.S. is FreeBSD6.0 has a 512 Mbyte Ram and it works as gateway. the server restarts by itself. I looked at the messages I saw as below savecore: reboot after panic: kmem_malloc(16384): kmem_map too small: 84840448 total allocated My kernel settings as below; options

Re: I could not run this script in /etc/crontab

2006-03-01 Thread Halid Faith
My pathname is correct. I already checked it. Also I can run manually while I am a root user. - Original Message - From: Derek Ragona [EMAIL PROTECTED] To: Halid Faith [EMAIL PROTECTED]; freebsd-questions@freebsd.org Sent: Tuesday, February 28, 2006 10:31 PM Subject: Re: I could not run

I could not run this script in /etc/crontab

2006-02-28 Thread Halid Faith
Hello I have a script. I can run it without a problem as root manually. But I have a problem I could not run this script in /etc/crontab as below; */1 * * * * root/root/thescript What should I do ? ___

Re: Why myserver be locked ?

2006-02-15 Thread Halid Faith
PROTECTED] To: Halid Faith [EMAIL PROTECTED] Cc: freebsd-questions@freebsd.org Sent: Tuesday, February 14, 2006 9:03 PM Subject: RE: Why myserver be locked ? I would stop over riding all those sysctl knobs and see what happens when using the defaults. -Original Message- From: [EMAIL

Why myserver be locked ?

2006-02-14 Thread Halid Faith
Hello I have a Dell1600SC server. The server has 4 CPU and 2 Gbyte Ram. I had been using it based Redhat9 till a month ago. The server was working without problem. After that, I installed FreeBSD6 Release on it. The server started to run be locked. When it is locked, it becomes as freeze.I

Re: Why myserver be locked ?

2006-02-14 Thread Halid Faith
net.inet.ip.accept_sourceroute=0 net.inet.ip.sourceroute=0 net.inet.icmp.drop_redirect=1 net.inet.tcp.delayed_ack=0 net.inet.ip.forwarding=1 Do above sysctl settings cause be locked the machine ? - Original Message - From: Erik Norgaard [EMAIL PROTECTED] To: Halid Faith [EMAIL PROTECTED] Cc: freebsd-questions

check script for tcp connection

2006-01-03 Thread Halid Faith
Hello I use FreeBSD6.0. I want to use a script to check two or more case. My first cases are as below; First case My Server will check the remote ip address alive or not as icmp Second case My server will connect to other remote ip address as tcp protocol like connected or not. if my server

Re: check script for tcp connection

2006-01-03 Thread Halid Faith
What shall I do ? Thanks - Original Message - From: Eric Kamara [EMAIL PROTECTED] To: 'Halid Faith' [EMAIL PROTECTED] Cc: freebsd-questions@freebsd.org Sent: Tuesday, January 03, 2006 12:31 PM Subject: RE: check script for tcp connection -Original Message- From: [EMAIL