Execute shell script from a perl script

K

kderaedt

Hi,

How can I executed a Unix shell script from a Perl script.
The shell script is a dump of a oracle table to a file. The perl script is
for the reformat of this output file.

Thanks

Karel
 
J

J. Gleixner

J. Gleixner said:
perldoc -f system

Or if your perl script takes input from STDIN, and you modified your
shell script to echo to STDOUT, no need to call system, it'd simply be:

script.pl < script.sh > formatted.out
 
G

Glenn Jackman

J. Gleixner said:
Or if your perl script takes input from STDIN, and you modified your
shell script to echo to STDOUT, no need to call system, it'd simply be:

script.pl < script.sh > formatted.out

You mean:
script.sh | script.pl > formatted.out
 
A

Andres Monroy-Hernandez

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,009
Latest member
GidgetGamb

Latest Threads

Top