Solved

get the output of last executed command

Posted on 2002-03-19
3
155 Views
Last Modified: 2012-05-04
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
Comment
Question by:lakshminair
  • 2
3 Comments
 
LVL 5

Accepted Solution

by:
Peewee earned 100 total points
ID: 6879521
lakshminair,
copy this into your program:

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

regards
peewee

0
 

Author Comment

by:lakshminair
ID: 6879584
thanx for the prompt reply
0
 
LVL 5

Expert Comment

by:Peewee
ID: 6879588
lakshminair,
glad to be of help..

regards
peewee
0

Featured Post

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Many time we need to work with multiple files all together. If its windows system then we can use some GUI based editor to accomplish our task. But what if you are on putty or have only CLI(Command Line Interface) as an option to  edit your files. I…
A year or so back I was asked to have a play with MongoDB; within half an hour I had downloaded (http://www.mongodb.org/downloads),  installed and started the daemon, and had a console window open. After an hour or two of playing at the command …
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

758 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now