Hi
I have a file with numbers in each line.
Each number is a decimal number.
My task is to add them up and get the final answer.
I have searched with the search engine.
I found bash cannot handle floating point calculation.
I tried to use 'bc' and found if the final answer is < 1 (eg. 0.2)
It di
Hello Peter
Thanks, it work.
Regards
Patrick
--- Peter Boosten <[EMAIL PROTECTED]> wrote:
> On Mon, November 12, 2007 14:01, Patrick Dung wrote:
> > Hi
> >
> >
> > I have a file with numbers in each line.
> > Each number is a decimal number.
> >
Hello, any idea about why below script is not working?
The final sum is empty..
#!/usr/local/bin/bash
for user in `ps -A -o user | sort | uniq | tail +2`
do
echo "user: $user"
ps aux -U $user | tail +2 | while read line
do
mem=`echo $line | awk {'print $4'}`
echo "mem
Hello
As title, I have tried xwd, it can't capture mouse curosr.
Regards
Patrick
Looking for last minute shopping deals?
Find them fast with Yahoo! Search.
http://tools.search.yahoo.com/newsearch/cat
Hello,
Do you know what is this logo means, or the story behind it?
I thought the BSD daemon (logo) has been around for many years in the past.
Thanks and regards,
Patrick Dung
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org
Oh I see. I have found that the logo was mentioned in news group
org.freebsd.freebsd-chat back in 1997.
From: Lowell Gilbert
To: Patrick Dung
Cc: "freebsd-questions@freebsd.org"
Sent: Wednesday, September 4, 2013 11:45 PM
Subject: Re: The lo
On Wed, 4 Sep 2013, Lowell Gilbert wrote: >Patrick Dung writes: >>>Do you know what is this logo means, or the story
behind it? >>I thought the BSD daemon (logo) has been around for many years in
the past. >>It's a movie referenc
Hello!
I am curious about the special (count down numbers) at shutdown / sync.
Those nubmers is like 8 8 8 8 2 1 2 1 0 0 0 0.
Actually what do those numbers mean?
Thanks and regards,
Patrick Dung
___
freebsd-questions@freebsd.org mailing list
http
Thanks for the answer.
That is cool and unique.
From: Polytropon
To: Patrick Dung
Cc: "freebsd-questions@freebsd.org"
Sent: Thursday, September 5, 2013 9:42 PM
Subject: Re: Question about those special (countdown numbers) at shutdown / sync
me if it is not the case.
Thanks and regards,
Patrick Dung
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Hi
For FreeBSD-stable, I can change the permission of the
/dev/bpf*.
But for FreeBSD-current, the bpf device is created at
runtime.
There is no way to decided the user/group and
permission of the device created. (/etc/devfs.conf can
be used, but it had to be start after the device is
created, whe
Only /dev/bpf0 is there at boot time
But when I run tcpdump, it automatically create
/dev/bpf1 (I have multiple NIC).
Running devfs at boot time cannot set the /dev/bpf1,
which is not present.
--- Lowell Gilbert
<[EMAIL PROTECTED]> 內容:>
Patrick Dung <[EMAIL PROTECTED]> writes:
>
--- Lowell Gilbert
<[EMAIL PROTECTED]> 內容:>
Patrick Dung <[EMAIL PROTECTED]> writes:
>
> > Only /dev/bpf0 is there at boot time
> > But when I run tcpdump, it automatically create
> > /dev/bpf1 (I have multiple NIC).
> > Running devfs at boot time ca
My last mail is waiting for the mailing list approval.
But it was already some days, so I sent it again.
--- Patrick Dung <[EMAIL PROTECTED]> 內容:>
--- Lowell Gilbert
> <[EMAIL PROTECTED]> 內容:>
> Patrick Dung <[EMAIL PROTECTED]> writes:
> >
> > > O
Hi
After browsing the *BSD cvsweb site, I have found that
FreeBSD-current's TCPIP code has added locking/mutex
in it.
I am not programmer but I want to know what is the use
of adding so much locks/mutex in the stack? Also,
would it make a newbie/beginner feel difficult to
understand the code (I m
Hi
It seems that the constant is in /usr/sys/sys/mount.h.
The limit is already there since the initial import in
1995. (From 4.4BSD?)
I want to know what is the root cause preventing a
larger value.
PS: I have found some interesting links about
MNAMELEN:
http://leaf.dragonflybsd.org/mailarchive/
Hi
I have ipsec-tools's freebsd6 natt patch on the kernel.
Run ipsec-tools(racoon with natt).
NATT should work (I see phase 2 message pass between client (XP) and
the FreeBSD server. Windows behind NAT (registry changed to do NATT)
It seems the l2tpd (from ports 0.69) does not start (which call p
Hi,
I would like to know why quota is not enabled in the stock kernel..
I remembered that it is not enabled since freebsd 3.5 or freebsd 4 generation.
Now in freebsd 9.0, it still neeed a kernel rebuild.
I have heard it has performance issue (GIANT lock) about quota.
Regards,
Patrick
__
--- Doug Barton <[EMAIL PROTECTED]> wrote:
> > On Sunday, 8 July 2007 at 12:06:26 -0700, Patrick Dung wrote:
> >> I am using FreeBSD 6.2 with the default bind (not ports).
> >> By default chroot is used.
>
> It's not a major issue, but it's probabl
Hi
I use FreeBSD 6.2 and the base bind9.
For dynamic DNS update, bind9 automatically generate the journal file
(end in .jnl).
The default config is to use chroot and the running user as 'bind'.
The problem is that after named is started (/etc/init.d/named start),
the default chroot directory /var
Thanks for reply.
Your suggestion solved my problem, thanks.
Yes, /etc/init.d/named is a typo.
Regards
Patrick
--- Doug Barton <[EMAIL PROTECTED]> wrote:
> Patrick Dung wrote:
> > Hi
> >
> > I use FreeBSD 6.2 and the base bind9.
> > For dynamic DNS update,
Hi
Suppose I have mistype a command:
# route add 192.168.3.0 255.255.255.0 192.168.3.1
There is a strange routing table and I am unable to remove it unless
reboot:
192.168.0&0xc0a80301 255.255.255.0 UGS 0 86 fxp0
Any ideas?
__
Hi
Suppose I have mistype a command:
# route add 192.168.3.0 255.255.255.0 192.168.3.1
There is a strange routing table and I am unable to remove it unless
reboot:
192.168.0&0xc0a80301 255.255.255.0 UGS 0 86 fxp0
Any ideas?
__
ting to routing socket: No such process
delete host 128.0.1: gateway 255.255.255.0: not in table
--- Oliver Fromme <[EMAIL PROTECTED]> wrote:
> Patrick Dung wrote:
> > Suppose I have mistype a command:
> > # route add 192.168.3.0 255.255.255.0 192.168.3.1
>
> S
to routing socket: No such process
delete net 192.168.3.0: not in table
[EMAIL PROTECTED] ~]# route delete -host 192.168.3.0
delete host 192.168.3.0
--- Nikos Vassiliadis <[EMAIL PROTECTED]> wrote:
> On Thursday 11 January 2007 19:01, Patrick Dung wrote:
> > Hi
> >
> &g
Hi
I found Free/Net/OpenBSD semantic is different from Linux/Solaris.
Suppose there is a directory called 'directory,
With owner www, and group www and permission 0777.
Then I touch a file:
$ touch file
$ ls -la
total 4
drwxrwxrwx 2 www www512 May 31 17:14 .
drwxrwxrwt 8 root wheel 512
I have some question about password policy in FreeBSD:
1. Administrator can enforce password expire in /etc/login.conf
Is there any tool that can check when the password will expire for the
users?
2. Any good way to enforce minimum password length and other
restriction(like password need at least
).
The user can use password A, then user change to password B and then
change back to password A...
Regards
Patrick
--- Manolis Kiagias <[EMAIL PROTECTED]> wrote:
> Patrick Dung wrote:
> > I have some question about password policy in FreeBSD:
> >
> > 1. Administrator
I am using FreeBSD 6.2 with the default bind (not ports).
By default chroot is used.
When named start or stop, it does have log in /var/log/messages.
But for example, when some do domain transfer successfully, that is not
logged (zone transfer denied is logged).
So I tried to add this part in nam
I am using FreeBSD 6.2 with the default bind (not ports).
By default chroot is used.
When named start or stop, it does have log in /var/log/messages.
But for example, when some do domain transfer successfully, that is not
logged (zone transfer denied is logged).
So I tried to add this part in nam
uot;mem: $mem"
> TMPSUMMEM=`awk -v x=$mem -v y=$TMPSUMMEM 'BEGIN{printf
> "%.2f\n",x+y}'`
> echo "summem: $TMPSUMMEM"
>done
> echo "finalsummem: $TMPSUMMEM"
--- Patrick Dung <[EMAIL PROTECTED]> wrote:
>
Hello
I would like if there is a (countable) limit for the max TCP connection
of a Apache web server.
Suppose:
1. An apache web server serves a very big iso file.
2. 5000 people tried to connect to the apache server to get the iso
file.
3. They connect to the server gradually (not 5000 people sta
--- Bill Moran <[EMAIL PROTECTED]> wrote:
> In response to Matthew Seaman <[EMAIL PROTECTED]>:
>
> > Bill Moran wrote:
> > > In response to Patrick Dung <[EMAIL PROTECTED]>:
> > >
> > >> Hello
> > >>
> > >> I
Hi
First of all, I know that most commiters or
contributors contribute their work in their free time.
I am not asking for any promise but I just want to
discuss possible improvement for FreeBSD.
OK, after using FreeBSD for some time, I would like to
see FreeBSD have these features/improvements:
--- Jeremy Faulkner <[EMAIL PROTECTED]> wrote:
> On Thu, 2004-10-28 at 16:07, Patrick Dung wrote:
> > 1) OpenLDAP Integration
> > FreeBSD has OpenLDAP support in the ports, but I
> think
> > it would be great if FreeBSD support LDAP out of
> the
> > box (
35 matches
Mail list logo