This post in reply to the Post, Scripting with Maple

For pass argument I use the ssystem command.

So I'm able to pass argument by launching my script like this.

login@hostname:  echo  ARG | ./example.mpl

example.mpl look like this:

-------------example.mpl----------------

#!/usr/bin/maple

with(StringTools):

ResultArray:=ssystem("read MapleArg; echo ${MapleArg}"):

#

if ResultArray[1] <> 0 then:

print("Problem with system command"):

quit;

end if;

#

MapleArg:=Remove(IsSpace,ResultArray[2]):

print("Your argument is:",MapleArg):
-------------example.mpl----------------

Probably by working on MapleArg string it is possible to pass a list of argument.


Please Wait...