Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
Hello, I've got a quick question regarding the use of system(). I've written a number of perl scripts that I've combined into one program with each smaller script assigned to a subroutine. Between these subroutines I use system() to run a python script that generates txt files that subsequent perl subroutines need to use. My issue is that after I use system(), the next perl subroutine opens the python generated file (I assume, I have it set to die if it doesn't), but generates an empty output file. If I disable the system() line and run the program again with the original python generated file, it works fine. Not sure what to do here... Any suggestions?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: system() issue
by davido (Cardinal) on Dec 13, 2013 at 03:04 UTC | |
by wazat (Monk) on Dec 13, 2013 at 03:43 UTC | |
by Anonymous Monk on Dec 13, 2013 at 05:14 UTC | |
by wazat (Monk) on Dec 13, 2013 at 06:02 UTC | |
by Anonymous Monk on Dec 13, 2013 at 05:49 UTC | |
by vinoth.ree (Monsignor) on Dec 13, 2013 at 08:08 UTC | |
by Anonymous Monk on Dec 13, 2013 at 06:28 UTC | |
by Anonymous Monk on Dec 13, 2013 at 06:01 UTC | |
|
Re: system() issue
by vinoth.ree (Monsignor) on Dec 13, 2013 at 05:02 UTC | |
by Anonymous Monk on Dec 13, 2013 at 14:46 UTC | |
by Anonymous Monk on Dec 13, 2013 at 15:53 UTC | |
by Anonymous Monk on Dec 13, 2013 at 16:57 UTC |