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
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
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,
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,
3 ${i}# file1
> file2
done
cat test1
boby, e, 656a,
allen, e, 987c,
...
- Original Message -
From: "Tino Engel" <[EMAIL PROTECTED]>
To: "Halid Faith" <[EMAIL PROTECTED]>
Cc:
Sent: Tuesday, December 11, 2007 11:22 PM
Subject: Re: How to replace two
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 valuabl
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
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 PROTECT
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
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
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
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
m
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
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
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
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
http:
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 th
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
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: 1
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 =
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 ad
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 b
- Original Message -
From: "Lowell Gilbert" <[EMAIL PROTECTED]>
To: "Halid Faith" <[EMAIL PROTECTED]>
Cc:
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 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
I use FreeBSD60 on Dell1600 SC ( 2gbyte Ram 4 CPU )
amr0: mem 0xfcc0-0xfcc0 irq 21 at device
2.0 on pci2
amr0: 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.
I want to test disk / raid card.
I tried
OK
Might this condition ( udp port 514 is open ) be vulnerable ?
- Original Message -
From: "Miguel" <[EMAIL PROTECTED]>
To: "Halid Faith" <[EMAIL PROTECTED]>
Cc:
Sent: Tuesday, March 21, 2006 9:47 PM
Subject: Re: What does udp port 514 use?
> Hali
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
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
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 f
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:
Sent: Friday, March 17, 2006 10:49 AM
Subject: Re: about
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 fo
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 mac
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
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
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]>;
Sent: Tuesday, February 28, 2006 10:31 PM
Subject: Re: I c
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 ?
___
freebsd-quest
r" <[EMAIL PROTECTED]>
To: "Halid Faith" <[EMAIL PROTECTED]>
Cc:
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.
>
>
&
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" <
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
am
What shall I do ?
Thanks
- Original Message -
From: "Eric Kamara" <[EMAIL PROTECTED]>
To: "'Halid Faith'" <[EMAIL PROTECTED]>
Cc:
Sent: Tuesday, January 03, 2006 12:31 PM
Subject: RE: check script for tcp connection
>
>
> >
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 c
41 matches
Mail list logo