Re: How to pass arguments with '*' to execvp()?
From: Alex Vinokur (alexvn_at_x-privat.org)
Date: 11/27/05
- Next message: Måns Rullgård: "Re: argv[0] in execvp()"
- Previous message: Alex Vinokur: "Re: argv[0] in execvp()"
- In reply to: Pascal Bourguignon: "Re: How to pass arguments with '*' to execvp()?"
- Next in thread: Pascal Bourguignon: "Re: How to pass arguments with '*' to execvp()?"
- Reply: Pascal Bourguignon: "Re: How to pass arguments with '*' to execvp()?"
- Reply: Måns Rullgård: "Re: How to pass arguments with '*' to execvp()?"
- Reply: Bjorn Reese: "Re: How to pass arguments with '*' to execvp()?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 27 Nov 2005 17:30:02 +0100
"Pascal Bourguignon" <spam@mouse-potato.com> wrote in message news:87zmnrt6rg.fsf@thalassa.informatimago.com...
[snip]
> What you want to do is:
>
> 1- collect the file names matching *.c into a list.
>
> 2- build the list of arguments as "ls", "-1" followed by the list
> collected by step 1.
>
> 3- call execvp with cmd and the list built by step 2.
[snip]
OK.
But what to do with the following command line:
find . -name "*.c" -print
?
--
Alex Vinokur
email: alex DOT vinokur AT gmail DOT com
http://mathforum.org/library/view/10978.html
http://sourceforge.net/users/alexvn
- Next message: Måns Rullgård: "Re: argv[0] in execvp()"
- Previous message: Alex Vinokur: "Re: argv[0] in execvp()"
- In reply to: Pascal Bourguignon: "Re: How to pass arguments with '*' to execvp()?"
- Next in thread: Pascal Bourguignon: "Re: How to pass arguments with '*' to execvp()?"
- Reply: Pascal Bourguignon: "Re: How to pass arguments with '*' to execvp()?"
- Reply: Måns Rullgård: "Re: How to pass arguments with '*' to execvp()?"
- Reply: Bjorn Reese: "Re: How to pass arguments with '*' to execvp()?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|