Message Boards Message Boards

Batch execution: Mathematica. -script my.m Cannot remove the "Functions"

Posted 5 years ago

Dear all,

I am a Windows user and a newcomer to Mathematica (8.0.4.0; used Macsyma earlier). Moreover I have never abandoned the efficiency of batch processing (punched cards....). Therefore I use scripts. So, while a script is being developed, Mathematica is repeatedly called thus from a Windows command-window:

E:\>F:\sys\Mathematica\mathematica.exe -script x.m

This loads Mathematica to my "desktop" when first called in the morning; here it stays the rest of the day.

Mathematica opens a (sub) window, the toolbar of which reads:

 Functions,Sections, Update, Debug and "Run Package". 

I click "Run Paxkage" and, when the script has finished, I close the (sub) window by means of its "x". From here I go on to inspect the LaTeX output that x.m makes.

My problem: When I click the "Functions" label, then there is a list of functions that has been previously defined.

Question: How do I get rid of everything, so that the commands of the script x.m runs in a clean and pristine environment?

Much search on the www has lead me to begin the x.m with the following lines; but to no avail.

ClearAll[Evaluate[Context[] <> "*"]]
ClearAll["Global`*"]
Unprotect["`*"];
ClearAll["`*"];

Regards, ChG

Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard

Group Abstract Group Abstract