in reply to Re: calling an external program, from within a perl script
in thread calling an external program, from within a perl script
Ok, this explains the error level. However, it doesn't explain the fact that the command doesn't work from this perl script. However, it does work from the cmnd line, and also from a little 3 liner (in the examples above). So I know the system call is working, because it can call the 3 line perl script. I know the command 'mkfs' is working, because I can run the 3 liner, and the command executes. when I run the 'mkfs' command from the large perl script, even though ($? >> 8) may return a 0 exit code, the device is not created, because there is not XFS filesystem on the device when I check after running it. Also, if I grab the output with backticks, there is none. (and this is a verbose command, so there should be several lines of output when generating the XFS Filesystem). Any thoughts? - Nick
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: calling an external program, from within a perl script
by trantor (Chaplain) on Aug 09, 2001 at 22:39 UTC | |
by nick (Sexton) on Aug 10, 2001 at 11:28 UTC |