I'm trying to make a wrapper procedure that will launch an external program with some dynamic arguments. To do this I created a proc and used the launch command from the process package. My procedure seems to be syntactically correct, but when I run it all it does is echo the procedure code.
Since nothing was working I have created a simplified procedure that simply tries to launch Notepad. Instead of launching notepad it just echos out the source of the procedure:
My definition of the procedure RunNotepad:
> RunNotepad() := proc()
> use process in
> end use;
> end proc;
RunNotepad() := proc() (process:-launch)("notepad.exe") end proc;
Trying to call it:
proc() (process:-launch)("notepad.exe") end proc;
Can Launch be called from inside a procedure? Am I doing something wrong here?
Thanks any help that you can provide,