Adept Scientific - English
The world's best software and hardware for research, science and engineering.
flag arrow
clearclear

 Adept Store | register Join My Adept | Flags  
Adept Scientific | Amor Way | Letchworth Garden City | Herts | SG6 1ZA | Tel: +44 (0)1462 480055  
UKdedksvnofi
Home
Products
Training
Events
 Buy Online
Downloads
Academic Discounts
Support
My Adept
International |  About Us |  Adept Scientific Blog |  Contact Us |  Press Room |  Jobs
Adept Scientific on Facebook Adept Scientific on Twitter Adept Scientific on YouBube Adept Scientific on LinkedIn


The Next Steps

• Ask us a question
• Watch Maple Video Demonstrations
• Buy Maple Now
• View Maple Pricing
• Download a Brochure
• Request a Brochure
• Request an Evaluation
• Meet Our Team
• Read our RSS Feeds

Learn More

Maple Home
Maple 16 Overview
Maple 16 Professional
Maple 16 Academic
Maple 16 Student Use
What's New in Maple 16
Maple New Features
Datasheet

Maple History
Recorded Online Seminars

MapleSim
MapleNet
Maple T.A.
BlockImporter™
Maple Toolboxes

Maple Rave Reviews
Maple Study Guides
Books about Maple
System Requirements

Latest Information

New Features: Professional
New Features: Academic
Maple Features
The Maple Reporter Online

Service & Support

Maple Primes
blogs, forums etc

Elite Maintenance Program
Application Centre
Powertools
Search the Knowledge Base
Technical Support request

List Archives >  Maple User Group List Archive >  Archive by date >  This Month By Date >  This Month By Topic

[MUG] Can cmaple run in a server mode?

Search email archive for  

[MUG] Can cmaple run in a server mode?
Author: Carl Eberhart    Posted: 10/11/2000 15:21:35 GMT
>> From: "Carl Eberhart"


Hello,
Is there a version of command line maple which runs in a
server mode? That is, it can be started up and accept input
from and return output to other applications, such as a Perl
script? None of the command line options to cmaple (in Maple 6)
suggest that this is the case, but perhaps not all options are listed.
Thanks in advance.
Carl Eberhart

[MUG] Re: Can cmaple run in a server mode?
Author: Maple Group    Posted: 15/11/2000 20:58:58 GMT
>> From: Maple Group

| >> From: "Carl Eberhart"
|
| Hello,
| Is there a version of command line maple which runs in a
| server mode? That is, it can be started up and accept input
| from and return output to other applications, such as a Perl
| script?

-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-

Date: Tue, 14 Nov 2000 13:22:06 +0100
From: Theodore Kolokolnikov
To:
Subject: Can cmaple run in a server mode?


Yes. By default cmaple reads from standard input and writes to standard
output.
Use also -q option. We have successfully used cmaple as an engine
for over-the-web evaluation of math tests.

See also my answer on
http://www-math.math.rwth-aachen.de/MapleAnswers/735.html
which also contains a Java class to interact with Maple.


Regards,
theodore.


-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-

To:
From: "Nikolay Semchenok"
Date: Tue, 14 Nov 2000 18:30:41 +0300 (MSK)
Subject: Can cmaple run in a server mode?

Hello,

Try the following example. It illustrates how to send commands from Maple to
Perl, and retrieve calculations and graphics.

#!/usr/local/bin/perl
#get the current process number
$pid = $$;
#open a connection to Maple
$maple = "| cmaple -q > maple.$pid";
$maplegif = "maplegif.$pid";
open(MAPLE, $maple) || print STDERR "Maple can't be opened!\n";
#Send commands via print
print MAPLE "evalf(Pi); \n";
print MAPLE
"interface(plotdevice=gif,plotoutput=`$maplegif`,plotoptions=`width=500,height=3
00`);\n";
print MAPLE "plot(x^2, x=-2..2);";
print MAPLE "quit;\n";
close(MAPLE);


Regards,
Nikolay Semchenok


-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-

Date: Tue, 14 Nov 2000 12:55:53 -0800
From: "Joe Riel (home)"
To:
Subject: Can cmaple run in a server mode?

The standard cmaple process will do this. I use one with emacs to
display help pages and execute code. You probably want to call it with
the -q option to suppress the startup messages. You also might have to
play with the interface settings to suppress prompts [I'm a little hazy
here, it's been awhile since I wrote the code].

Joe Riel


[MUG] Re: Can cmaple run in a server mode?
Author: Greg Nash    Posted: 17/11/2000 22:18:01 GMT
>> From: Greg Nash

I'm not quite sure I understand your question, but I have run cmaple in
a cgi directory from a perl script on a remote server. From my web
browser, using forms to enter data/procedures, I ran cmaple on the
server using this input and returned results that got displayed in my
browser. I set up the script to allow me to download output files as
well by clicking on a button.

If you want any more details let me know, but it was very
straightforward.

Greg Nash
Centar


Carl Eberhart wrote:
>
> >> From: "Carl Eberhart"
>
> Hello,
> Is there a version of command line maple which runs in a
> server mode? That is, it can be started up and accept input
> from and return output to other applications, such as a Perl
> script? None of the command line options to cmaple (in Maple 6)
> suggest that this is the case, but perhaps not all options are listed.
> Thanks in advance.
> Carl Eberhart

[MUG] Re: Can cmaple run in a server mode?
Author: Andre Poenitz    Posted: 27/11/2000 08:29:01 GMT
>> From: Andre Poenitz

> Carl Eberhart wrote:
> >
> > >> From: "Carl Eberhart"
> >
> > Hello,
> > Is there a version of command line maple which runs in a
> > server mode? That is, it can be started up and accept input
> > from and return output to other applications, such as a Perl
> > script? None of the command line options to cmaple (in Maple 6)
> > suggest that this is the case, but perhaps not all options are listed.
> > Thanks in advance.
> > Carl Eberhart

You can pipe a command into maple as grab the output as you would do with
every other command:

~ > echo -e "result:\n `echo 'int(x,x);' | maple -q`"

result:
2
1/2 x


The -q supresses the "banner" at startup.

Andre'

--
Andre Poenitz ........................................

Previous by date: [MUG] Question on implicitplot colors, Sol X Rochman
Next by date: [MUG] Re: printing plots with G-4, Mike Schmiderer
Previous thread: [MUG] Kronecker delta,  Willard, Daniel Dr DUSA-OR
Next thread: [MUG] printing plots with G-4, Edwin Clark



Ready to buy?

For more pricing information:
Visit our webstore, call us on +1 800 724 8380 or email us at info@adeptscience.com

Featured Downloads

Maple 16 & MapleSim 5 Professional Brochure
Maple 16 Academic Datasheet
Maple 16 & MapleSim 5 Academic Brochure
Maple 16 What is New datasheet
Maple 16 Professional Datasheet
Maple Whitepaper: Driving Innovation - How mathematical modeling and optimisation increase efficiency and productivity in vehicle design.
MapleSim Whitepaper - Technological Superiority in Multi-Domain Physical Modelling and Simulation

Latest Downloads

Maple 16 Programming Guide
Maple 16 User Manual
Maple 16 Academic Datasheet
Maple 16 Professional Datasheet
Maple 16 & MapleSim 5 Academic Brochure

Product Reviews

"Without the Maple software, we would have to spend weeks generating the equations of motion for every experiment. Then the chances that we did it right would basically be near zero. There would always be a mistake somewhere. It is very difficult to set up a dynamic motion model by hand."
- Jean-Claude PiedBeouf, Ph.D Manager of Robotics, Canadian Space Agency

"Its very good - highly accurate and easy to use. The speed of Maple allows me to change equations and quickly reintegrate them into the application, so more possibilities can be explored to achieve the precise effect desired."
Shawn Neely, Senior R & D Director for PDI/Dreamworks

Latest News

Connectivity to major CAD systems extended in Maple 16
MapleSim Breaks New Ground in Hardware-in-the-Loop real-time simulation for planetary rovers
MapleSim Breaks New Ground in Hardware-in-the-Loop real-time simulation for planetary rovers
Maths software usability reaches new heights with Maple 16
"MapleSim was an eye-opener for us.
adept

Top of the Page

Popular Links: ChemDraw | ChemOffice | Data Acquisition | Data Analysis | EndNote | Maple | MapleSim | Mathcad | MathType | Quality Analyst | Reference Manager | VisSim

EU ePrivacy Directive | Our Privacy and Terms and Conditions Statement
All Trademarks Recognised. Copyright © 2012, Adept Scientific plc.
Site designed and maintained by Lyndon Ash

Adept Scientific | Amor Way | Letchworth Garden City | Herts | SG6 1ZA | Tel: +44 (0)1462 480055