in reply to calling an external program, from within a perl script

Have you tried passing the arguments to mkfs like this:

system('/sbin/mkfs', '-t', 'xfs', $device);

?

Replies are listed 'Best First'.
Re: Re: calling an external program, from within a perl script
by nick (Sexton) on Aug 10, 2001 at 10:58 UTC
    yes, i tried putting the args for system in an array like that, but this makes no difference.
     
    - Nick