LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   perl script call python -linux (https://www.linuxquestions.org/questions/linux-software-2/perl-script-call-python-linux-551044/)

cdd 05-03-2007 02:04 PM

perl script call python -linux
 
Hi,
I have a perl script that is running in windows environment. This is calling python BodyTextExtractor.
My problem is: I have to move the script to run on linux and I have to change the following part of the script and I don't know how. Please help me!

use Win32::Job;
...............................................

$job = Win32::Job->new;

open(FILE_tmp2, ">$PName");
$job->spawn("C:\\Python24\\python.exe", "python BodyTextExtractor.py $PName.txt",
{
stdout => FILE_tmp2,
});
$status = $job->run(60);
close FILE_tmp2;


Thanks a lot!

reddazz 05-03-2007 03:45 PM

Please post your thread in only one forum. Posting a single thread in the most relevant forum will make it easier for members to help you and will keep the discussion in one place. This thread is being closed because it is a duplicate.


All times are GMT -5. The time now is 02:47 AM.