in reply to Child Process and SAMBA

open(TEST, "|$command"); is a strange way to execute a command, since you don't feed any input into it.

Recommended ways are exec, system and for other perl scripts do.

Have you checked if the second script runs at all?

And it feels almost too stupid to ask.. but have really checked that the second dir doesn't already exist?

Replies are listed 'Best First'.
Re^2: Child Process and SAMBA
by mricci (Novice) on Feb 06, 2008 at 16:14 UTC
    Thanks and yes I know that exec or system are better ways.
    I was just throwing some quick code together to attempt the same thing a larger script does.
    I did in fact check to see if it worked and if the second script actually executed.. But your points are good ones.
    Thanks again and you can read my reply to the first reply in the thread as I believe this is a SAMBA issue not a perl issue...
    Thanks :)