Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.soft-sys.math.mathematica > #4816 > unrolled thread
| Started by | Murta <rodrigomurtax@gmail.com> |
|---|---|
| First post | 2011-09-07 09:48 +0000 |
| Last post | 2011-09-09 08:06 +0000 |
| Articles | 2 — 2 participants |
Back to article view | Back to comp.soft-sys.math.mathematica
Re: How to generate report with Mathematica script from command line (no front end) Murta <rodrigomurtax@gmail.com> - 2011-09-07 09:48 +0000
Re: How to generate report with Mathematica script from command line Armand Tamzarian <mike.honeychurch@gmail.com> - 2011-09-09 08:06 +0000
| From | Murta <rodrigomurtax@gmail.com> |
|---|---|
| Date | 2011-09-07 09:48 +0000 |
| Subject | Re: How to generate report with Mathematica script from command line (no front end) |
| Message-ID | <j47eks$l5s$1@smc.vnet.net> |
Hi James I have the same problem. By what I know, it's not possible to generate pdf using the kernel without front end... Let me know if you get it! Tks Murta On Sep 6, 5:05 am, james rund <janju...@googlemail.com> wrote: > Hi, > first of all: am overwhelmed by the loads of useful tricks on this mailing list! > > Now, my current problem is the following, perhaps you can help: > I want to use Mathematica to make pretty reports of our data analysis. > I have a mathematica notebook that will load data from a specified file and generate a PDF and CDF accordingly. > Now I want to turn this into a command line script to do the same job, where the input parameter is the filename of the file that contains the data. > > However, the script does not to anything sensible. It does not write the PDF and CDF files. > I use CreateDocument and NotebookSave for that in the notebook version of the script. > > What could be going wrong? > Do I need to have an open front end all the time? > if yes -> how to I load something via a shell command to the front end? > > The only solution I came up with so far is pretty bad: > Have a loop in a front end notebook running ALL THE TIME which checks for a specific file. If the file exists it will generate a report accordingly. > > However, this is an embarrassing solution.....don't judge me on that.... ;-)) > > Please tell me a better trick if you know one. > > Many thanks, > > james
[toc] | [next] | [standalone]
| From | Armand Tamzarian <mike.honeychurch@gmail.com> |
|---|---|
| Date | 2011-09-09 08:06 +0000 |
| Subject | Re: How to generate report with Mathematica script from command line |
| Message-ID | <j4chea$gmh$1@smc.vnet.net> |
| In reply to | #4816 |
On Sep 7, 7:48 pm, Murta <rodrigomur...@gmail.com> wrote: > Hi James > I have the same problem. > By what I know, it's not possible to generate pdf using the kernel > without front end... > Let me know if you get it! > Tks > Murta > > On Sep 6, 5:05 am, james rund <janju...@googlemail.com> wrote: > > > > > > > > > Hi, > > first of all: am overwhelmed by the loads of useful tricks on this mail= ing list! > > > Now, my current problem is the following, perhaps you can help: > > I want to use Mathematica to make pretty reports of our data analysis. > > I have a mathematica notebook that will load data from a specified file= and generate a PDF and CDF accordingly. > > Now I want to turn this into a command line script to do the same job, = where the input parameter is the filename of the file that contains the dat= a. > > > However, the script does not to anything sensible. It does not write th= e PDF and CDF files. > > I use CreateDocument and NotebookSave for that in the notebook version = of the script. > > > What could be going wrong? > > Do I need to have an open front end all the time? > > if yes -> how to I load something via a shell command to the front end? > > > The only solution I came up with so far is pretty bad: > > Have a loop in a front end notebook running ALL THE TIME which checks f= or a specific file. If the file exists it will generate a report accordingl= y. > > > However, this is an embarrassing solution.....don't judge me on that...= . ;-)) > > > Please tell me a better trick if you know one. > > > Many thanks, > > > james It is not 100% clear what the problems are and/or what the objective is but you can do lots of things by scheduling, including creation of PDFs and if you don't want to have Mathematica open you can use shell scripts to run at certain times. Based on my limited understanding of what the objective is I'd probably be looking to have one single script that generates the data file and then calls Mathematica once it has been generated ...but I'd need more info (such as how the data file gets generated currently etc). Mike
[toc] | [prev] | [standalone]
Back to top | Article view | comp.soft-sys.math.mathematica
csiph-web