Improve company productivity with a Business Account.Sign Up

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 173
  • Last Modified:

get the output of last executed command

I am executing a program
system("perl prgname x=bpu02031 lang=en");

How do i transfer the output of this system command to a array?
0
lakshminair
Asked:
lakshminair
  • 2
1 Solution
 
PeeweeCommented:
lakshminair,
copy this into your program:

my @array = `perl prgname x=bpu02031 lang=en`;

regards
peewee

0
 
lakshminairAuthor Commented:
thanx for the prompt reply
0
 
PeeweeCommented:
lakshminair,
glad to be of help..

regards
peewee
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Upgrade your Question Security!

Your question, your audience. Choose who sees your identity—and your question—with question security.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now