Solved

get the output of last executed command

Posted on 2002-03-19
3
162 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

Are your AD admin tools letting you down?

Managing Active Directory can get complicated.  Often, the native tools for managing AD are just not up to the task.  The largest Active Directory installations in the world have relied on one tool to manage their day-to-day administration tasks: Hyena. Start your trial today.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

There are many situations when we need to display the data in sorted order. For example: Student details by name or by rank or by total marks etc. If you are working on data driven based projects then you will use sorting techniques very frequently.…
Checking the Alert Log in AWS RDS Oracle can be a pain through their user interface.  I made a script to download the Alert Log, look for errors, and email me the trace files.  In this article I'll describe what I did and share my script.
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…
In a recent question (https://www.experts-exchange.com/questions/28997919/Pagination-in-Adobe-Acrobat.html) here at Experts Exchange, a member asked how to add page numbers to a PDF file using Adobe Acrobat XI Pro. This short video Micro Tutorial sh…

809 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