Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
I have a problem with a perl script I am running. The script works perfectly from the command line, but when I try to look at it from a web page, it goes wrong.
I have managed to isolate the command that is causing this. It is this:
system('/usr/local/bin/dcm_dump_file -t '.$n.' > '.$dump_path.'PCfiles/dumpfile');
($n is a string relating to a particular file name, which is iterated over a foreach loop. The command basically breaks off into Unix, executes a dicom dump file, and writes the output to a file called 'dumpfile')
The question is, is the syntax correct for my system call?
Should I be doing something else to get this to work from a web page?
Thanks in advance,
C
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: system call
by Zaxo (Archbishop) on May 10, 2004 at 13:18 UTC | |
|
Re: system call
by haoess (Curate) on May 10, 2004 at 13:24 UTC | |
|
Re: system call
by Roger (Parson) on May 10, 2004 at 13:22 UTC | |
|
Re: system call
by Tomte (Priest) on May 10, 2004 at 13:18 UTC | |
|
Re: system call
by Juerd (Abbot) on May 10, 2004 at 13:20 UTC | |
|
Re: system call
by Anonymous Monk on May 10, 2004 at 14:06 UTC | |
by halley (Prior) on May 10, 2004 at 16:42 UTC |