using *.* to copy files using spawnl

Following function works well for source if it is a whole directory ,

pid = spawnl( P_NOWAIT, “/bin/cp”, “cp”, “-vcLR”, “/source”,
“/destination”, NULL );

However, it deosnt work if the /source is like /*.txt when u just want
to copy certain files using *.
Anyone got suggestion

ran zhang <rzhang@vamcointernational.com> wrote:

Following function works well for source if it is a whole directory ,

pid = spawnl( P_NOWAIT, “/bin/cp”, “cp”, “-vcLR”, “/source”,
“/destination”, NULL );

However, it deosnt work if the /source is like /*.txt when u just want
to copy certain files using *.
Anyone got suggestion

Commented in other newsgroup you posted in. Might have been
comp.os.qnx, not sure.

-David


QNX Training Services
dagibbs@qnx.com