For Programmers: Free Programming Magazines  


Home > Archive > PERL CGI Beginners > July 2006 > calling external applications









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author calling external applications
eva00_ayanami99@hotmail.com

2006-07-16, 9:55 pm

hi all! i am very new to perl programming and hope u guyz can help me
out in this question:

currently i need to run external applications using perl language. may
i know the codes on how to call? for example i need to call the
program: [input.exe]. and i need to parse in something input to run in
the [input.exe]. after that i need to call the program: [generate.exe]
to generate the input and then finally call the program: [output.exe]
to parse out the filtered output. my input file name will be eg:
[rawFiles.dta]
*ps: i am in a linux fedora core 5 environment

please help me out.. thanks in advance guyz! \(^o^)/

Paul Lalli

2006-07-18, 6:55 pm

eva00_ayanami99@hotmail.com wrote:
> hi all! i am very new to perl programming and hope u guyz can help me
> out in this question:
>
> currently i need to run external applications using perl language. may
> i know the codes on how to call? for example i need to call the
> program: [input.exe]. and i need to parse in something input to run in
> the [input.exe]. after that i need to call the program: [generate.exe]
> to generate the input and then finally call the program: [output.exe]
> to parse out the filtered output. my input file name will be eg:
> [rawFiles.dta]
> *ps: i am in a linux fedora core 5 environment
>
> please help me out.. thanks in advance guyz! \(^o^)/


You're much more likely to get help from technical forums like this one
if you don't type like you're ten years old. Spell out your words,
don't use 'z' where the word ends in 's', and learn to use your shift
key.

Look up the following:
the system function (see: perldoc -f system)
qx// and "back-ticks" (see: perldoc perlop)
opening "pipes" (see: perldoc -f open, perldoc perlopentut)

For each of those perldoc statements, I mean to open up your command
line, and type those commands in directly. The resulting documentation
will print to your screen.

Once you've made an attempt, if it doesn't work the way you want, post
a *short* but *complete* script that demonstrates your failure.

Paul Lalli

Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com