HP3000-L Archives

October 1999, Week 3

HP3000-L@RAVEN.UTC.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Noam Koren <[log in to unmask]>
Reply To:
Noam Koren <[log in to unmask]>
Date:
Wed, 20 Oct 1999 06:53:25 +0200
Content-Type:
text/plain
Parts/Attachments:
text/plain (89 lines)
Thanks Mark!
You are definitely right.


        Noam Koren
        BMC/New Dimension Software
        voice: 972-3-7664508    fax: 972-3-6451100
        [log in to unmask]


> -----Original Message-----
> From: BIXBY,MARK (HP-Cupertino,ex1) [SMTP:[log in to unmask]]
> Sent: Wednesday, October 20, 1999 3:29 AM
> To:   [log in to unmask]
> Subject:      Re: Find in posix misbehaves
>
> This is the way it's supposed to work.
>
> Find is exec()-ing the program, but your sample file lacks the #! script
> interpreter file, i.e. #!/bin/sh (or #!/PERL/PUB/perl or even
> theoretically
> #!/SYS/PUB/CI).  Exec() needs to see that #! line to be able to know which
> interpreter NMPRG to fire up.
>
> - Mark B.
>
> > -----Original Message-----
> > From: Noam Koren [mailto:[log in to unmask]]
> > Sent: Tuesday, October 19, 1999 8:34 AM
> > To: [log in to unmask]
> > Subject: Find in posix misbehaves
> >
> >
> > Hello,
> >
> > I faced this strange (mis)behavior of the 'find' command in the POSIX
> > (MPE55 pp7):
> >
> > description:
> > Look at the directory which contains two files:
> > shell/iX>pwd
> > /DVLP/NOAMK/ftest
> > shell/iX>ls -l
> > -rw-rw----   1 NOAMK.DVLP        DVLP           0 Oct 19 15:10 ll.c
> > -rwxrwx---   1 NOAMK.DVLP        DVLP          49 Oct 19
> > 15:10 progtorun
> >
> > What progtorun contains:
> > shell/iX> cat progtorun
> > echo Run from find
> > echo got parameter: $1
> > exit 1
> > shell/iX>
> >
> > If I run it:
> > shell/iX> progtorun HELLO
> > Run from find
> > got parameter: HELLO
> > shell/iX>
> >
> > Now I run the find:
> > shell/iX> find . -name "ll\.c" -print -exec ./progtorun {} \;
> > ./ll.c
> > shell/iX>
> >
> > progtorun was not executed!
> > just to be sure that I 'know' to find:
> > find . -name "ll\.c" -print -exec cp {} copied \;
> > ./ll.c
> > shell/iX> ls -l
> > total 1
> > -rw-rw----   1 NOAMK.DVLP        DVLP           0 Oct 19 15:24 copied
> > -rw-rw----   1 NOAMK.DVLP        DVLP           0 Oct 19 15:10 ll.c
> > -rwxrwx---   1 NOAMK.DVLP        DVLP          49 Oct 19
> > 15:10 progtorun
> > shell/iX>
> >
> > So I think I'm doing right and the computer don't.
> > Can someone solve me the mystery (bug)?
> >
> > TIA,
> > Noam
> >
> >  Noam Koren
> >  BMC/New Dimension Software
> >  voice: 972-3-7664508 fax: 972-3-6451100
> >  [log in to unmask]
> >

ATOM RSS1 RSS2