Re: find -mtime and wrong data return

2007-03-15 Thread ik

Hello,

First of all I wish to thank you all for your answers.

In did I miss understood the minus and the plus thingys on the man page.
The find -type f -mtime +7 did worked for me.

Ido

On 3/15/07, Peter <[EMAIL PROTECTED]> wrote:


find -type f -mtime +7

be careful, esp. if you do not use -type f . You can bracket 'between 7
and 9 days' etc with:

   find -type f -mtime +7 -a -mtime -9

This is useful for answering questions like 'wtf happened to my
not-backed-up file xxx.c 3 days ago, pretty please $DEITY make there
be a backup somewhere'.

Peter




--
http://ik.homelinux.org/

=
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]



RE: find -mtime and wrong data return

2007-03-15 Thread Peter


find -type f -mtime +7

be careful, esp. if you do not use -type f . You can bracket 'between 7 
and 9 days' etc with:


  find -type f -mtime +7 -a -mtime -9

This is useful for answering questions like 'wtf happened to my 
not-backed-up file xxx.c 3 days ago, pretty please $DEITY make there 
be a backup somewhere'.


Peter

=
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]



Re: socket or pipe?

2007-03-15 Thread Constantine Shulyupin
named pipe is a pipe

On Wed, 2007-03-14 at 18:41 +1100, Amos Shapira wrote:
> On 07/03/07, Gilad Ben-Yossef <[EMAIL PROTECTED]> wrote:
> Constantine Shulyupin wrote:
> > Suggest me please, what better to use for local IPC, socket
> or pipe?
> > What are pro and cons?
> > When and what is preferable to use?
> > The first difference is sockets are two directional and
> support 
> > client/server model. What more?
> 
> 
> Pipes are more efficient, but only applies to 1:1
> communication (father
> to child and similar).
> 
> 
> Use pipes if you have an 1:1 situatuin, Unix doman sockets
> otherwise.
> 
> What about named-pipes? Do they use the same mechanism as pipe(2)
> objects or as unix-domain sockets?
> 
> --Amos
> 


=
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]



Re: find -mtime and wrong data return

2007-03-15 Thread Yedidyah Bar-David
On Thu, Mar 15, 2007 at 02:38:30PM +0200, ik wrote:
> Hello,
> 
> I wish to use the find command in order to find all the files that
> were created prior to specific file.
> 
> So I tried to use the following command:
> 
> find -type f -mtime -7

Try
find -type f -mtime +7
-- 
Didi


=
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]



RE: find -mtime and wrong data return

2007-03-15 Thread Rony Shapiro
>From info find:

2.3.2 Comparing Timestamps
--

As an alternative to comparing timestamps to the current time, you can
compare them to another file's timestamp.  That file's timestamp could
be updated by another program when some event occurs.  Or you could set
it to a particular fixed date using the `touch' command.  For example,
to list files in `/usr' modified after February 1 of the current year:

 touch -t 0201 /tmp/stamp$$
 find /usr -newer /tmp/stamp$$
 rm -f /tmp/stamp$$

 -- Test: -anewer file
 -- Test: -cnewer file
 -- Test: -newer file
 True if the file was last accessed (or its status changed, or it
 was modified) more recently than FILE was modified.  [...]
 As an example, to list any files modified since
 `/bin/sh' was last modified:

  find . -newer /bin/sh

I guess this is what you're looking for?

Rony 

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
On Behalf Of Ehud Karni
Sent: Thursday, March 15, 2007 3:02 PM
To: [EMAIL PROTECTED]
Cc: linux-il@linux.org.il
Subject: Re: find -mtime and wrong data return

On Thu, 15 Mar 2007 14:38:30 ik <[EMAIL PROTECTED]> wrote:
>
> I wish to use the find command in order to find all the files that
> were created prior to specific file.
>
> So I tried to use the following command:
>
> find -type f -mtime -7
>
> In order to get all the files that where modified prior to  a week
> ago, but it only gives me files that where last changed a week ago,
> and not prior to that at all.
>
> I can't find any other way to get such data without using some "bash
magic".
>
> Am I missing something here, or can't I get files prior to what I
> specy on -mtime ?

You used the wrong format. Instead of -7 you should use +7.

>From find man page:

  +n for greater than n,
  -n for less than n,
   n  for exactly n.

You need the "greater than n" (greater = older).

Ehud.


=
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]



Re: System stopped wotking with firefox

2007-03-15 Thread Michael Vasiliev
On Wednesday March 14 2007, Uri Bruck wrote:
> Zvi Har'El wrote:
> >> אכן, בשלב זה, אתר הכללית תומך רק בדפדפנים מסוג אינטרנט אקספלורר של
> >> מיקרוסופט מגרסה 5.5 ומעלה.
> >>
> >> מבדיקות תקופתיות שאנו עורכים על הרגלי הגלישה בישראל עולה כי כ-98%
> >> מכלל הגולשים בישראל משתמשים בדפדפן מסוג אינטרנט אקספלורר (הנתונים על
> >> הרגלי הגלישה בעולם, אגב, מראים כי 93.7% מהגולשים משתמשים בדפדפן זה).
>
> מה מקור הנתונים האילו?
> אני קורא די הרבה סטטיסיטיקות של שימוש בדפדנים שונים, םגם של אתרים
> מרכזיים שמפרסמים סטטיטיקות על עצמם וגם של כאלו שאוספים מידע ממספר
> מקורות, והמזפרים לא קרובים אפילו.
> כבר שנתיים שאקספלורר מתחת ל90% (פרט ליפן)
> ובאירופה אף מתחת  ל 80%
> ובירידה.
Got that out my insults file :)

"He uses statistics as a drunken man uses lamp-posts... for support 
rather than illumination." - Andrew Lang (1844-1912)

-- 
Sincerely Yours,
Michael Vasiliev

"as appealing as it might seem, it is impossible to patch or upgrade users"



Re: find -mtime and wrong data return

2007-03-15 Thread Geoffrey S. Mendelson
On Thu, Mar 15, 2007 at 02:38:30PM +0200, ik wrote:
> Hello,

> were created prior to specific file.
> 
> So I tried to use the following command:
> 
> find -type f -mtime -7
> 
> In order to get all the files that where modified prior to  a week
> ago, but it only gives me files that where last changed a week ago,
> and not prior to that at all.
> 
> I can't find any other way to get such data without using some "bash magic".
> 
> Am I missing something here, or can't I get files prior to what I
> specy on -mtime ?


I'm not sure what you want. If you specify -mtime 7, it will give you
files changed within 24 hours starting 7 days ago and ending 8 days
ago.

If you specify -7 it will give you files that were modified from NOW
up to seven days ago (ending time 7 days).

If you specify +7, it will give you files modified up to and including
7 days ago, but nothing modified since then.


HTH,

Geoff.


-- 
Geoffrey S. Mendelson, Jerusalem, Israel [EMAIL PROTECTED]  N3OWJ/4X1GM
IL Voice: (07)-7424-1667  Fax ONLY: 972-2-648-1443 U.S. Voice: 1-215-821-1838 
Visit my 'blog at http://geoffstechno.livejournal.com/

=
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]



Re: find -mtime and wrong data return

2007-03-15 Thread Ehud Karni
On Thu, 15 Mar 2007 14:38:30 ik <[EMAIL PROTECTED]> wrote:
>
> I wish to use the find command in order to find all the files that
> were created prior to specific file.
>
> So I tried to use the following command:
>
> find -type f -mtime -7
>
> In order to get all the files that where modified prior to  a week
> ago, but it only gives me files that where last changed a week ago,
> and not prior to that at all.
>
> I can't find any other way to get such data without using some "bash magic".
>
> Am I missing something here, or can't I get files prior to what I
> specy on -mtime ?

You used the wrong format. Instead of -7 you should use +7.

>From find man page:

  +n for greater than n,
  -n for less than n,
   n  for exactly n.

You need the "greater than n" (greater = older).

Ehud.


--
 Ehud Karni   Tel: +972-3-7966-561  /"\
 Mivtach - Simon  Fax: +972-3-7966-667  \ /  ASCII Ribbon Campaign
 Insurance agencies   (USA) voice mail and   X   Against   HTML   Mail
 http://www.mvs.co.il  FAX:  1-815-5509341  / \
 GnuPG: 98EA398D Better Safe Than Sorry

=
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]



find -mtime and wrong data return

2007-03-15 Thread ik

Hello,

I wish to use the find command in order to find all the files that
were created prior to specific file.

So I tried to use the following command:

find -type f -mtime -7

In order to get all the files that where modified prior to  a week
ago, but it only gives me files that where last changed a week ago,
and not prior to that at all.

I can't find any other way to get such data without using some "bash magic".

Am I missing something here, or can't I get files prior to what I
specy on -mtime ?

Thanks,

Ido
--
http://ik.homelinux.org/

=
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]



Re: socket or pipe?

2007-03-15 Thread Gilad Ben-Yossef

Shachar Shemesh wrote:

Gilad Ben-Yossef wrote:


Pipes are more efficient, but only applies to 1:1 communication
(father to child and similar).


Can you give a brief explanation as to why and by what factor? Didn't
manage to find any simple explanation on the web.


First mentioned in Advanced Programming in the UNIX(R) Envionment by Stevens, pipe operations seems to be faster or 
equell to any other IPC method (ignoring non synchronized shared memory, of course).


While it should be noted Stevens original recommendation pretains to stream (a.k.a bidirectional) pipes and AFAIK Linux 
does not actually support stream pipes, as well as basing his claims on measurements on Unix systems other then Linux, I 
never the less believe that the affarmation that pipes are as fast or faster then any other IPC method (bar non 
synchronized shared memory) is true.


Which shouldn't surprise anyone, as pipes are actually the first ever Unix IPC 
method, so it have a long time to evolve :-)

Cheers,
Gilad

--
Gilad Ben-Yossef <[EMAIL PROTECTED]>
Codefidence. A name you can trust(tm)
Web: http://codefidence.com  | SIP: [EMAIL PROTECTED]
IL: +972.3.7515563 ext. 201  | Fax:+972.3.7515503
US: +1.212.2026643 ext. 201  | Cel:   +972.52.8260388

"[Linux] Kernel maintainers only take you seriously
 if the first word in a message is 'PATCH'."
-- Avi Kivity.

=
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]



Re: socket or pipe?

2007-03-15 Thread Gilad Ben-Yossef

Amos Shapira wrote:
On 15/03/07, *Constantine Shulyupin* <[EMAIL PROTECTED] 
> wrote:


named pipe is a pipe


In that case one should be able to take advantage of the faster pipes 
even for 1:n situations.


The fater nature of pipes beyond Unix domain sockets are very minimal, enough 
that it would not be worth the trouble.

--
Gilad Ben-Yossef <[EMAIL PROTECTED]>
Codefidence. A name you can trust(tm)
Web: http://codefidence.com  | SIP: [EMAIL PROTECTED]
IL: +972.3.7515563 ext. 201  | Fax:+972.3.7515503
US: +1.212.2026643 ext. 201  | Cel:   +972.52.8260388

"[Linux] Kernel maintainers only take you seriously
 if the first word in a message is 'PATCH'."
-- Avi Kivity.

=
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]