Solved

make a shell

Posted on 1998-09-21
1
378 Views
Last Modified: 2010-08-05
Hi there,
I am writing a C++ program in Linux doing some enigineering stuff.  I want to make a shell in the program such that it can plot the graph by gnuplot automatically (or transform to eps format and display in ghostview) without exiting the program.

spawnl available in TC++ etc cannot be used in Linux, what can I use instead.  BTW, I dont want to quit the program striaght ahead. So execl is not a option...
0
Comment
Question by:oldjst
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 2

Accepted Solution

by:
JYoungman earned 30 total points
ID: 1638104
You can use popen("gnuplot", "w").   [man popen]

Write to it, "set output your-temp-file" and "set terminal postscript" to start with.  

When you're done, send the temporary file to the print spooler.

0

Featured Post

Three Reasons Why Backup is Strategic

Backup is strategic to your business because your data is strategic to your business. Without backup, your business will fail. This white paper explains why it is vital for you to design and immediately execute a backup strategy to protect 100 percent of your data.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
AWS EC2 HTTP & HTTPS 2 115
I NEED A "BARE" LINUX ... 9 121
IP 10.0.1.2 / 255.0.0.0 61 107
Checking what device is using certificate to access internal site? 4 55
In my business, I use the LTS (Long Term Support) versions of Linux. My workstations do real work, and so I rarely have the patience to deal with silly problems caused by an upgraded kernel that had experimental software on it to begin with from a r…
1. Introduction As many people are interested in Linux but not as many are interested or knowledgeable (enough) to install Linux on their system, here is a safe way to try out Linux on your existing (Windows) system. The idea is that you insta…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial

732 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