I need to call “/usr/bin/pdf2txt.py” with few arguments from my Perl script. How should i do this ?
I need to call /usr/bin/pdf2txt.py with few arguments from my Perl script. How should
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
If you need to capture STDOUT:
You can easily capture STDERR redirecting it to STDOUT:
If you need to capture the exit status, then you can use:
Take in mind that both
``andsystem()block until the program finishes execution.If you don’t want to wait, or you need to capture both STDOUT/STDERR and exit status, then you should use IPC::Open3.