Questions tagged [unix]
The unix tag has no usage guidance.
13 questions
2
votes
1
answer
84
views
Exported function discovery with LibraryFunction
Many internal calls boil down to invocations like
LibraryFunction["path/to/library", "funcName" , ...]
I'm on a mac, so I can use the ...
1
vote
1
answer
43
views
How to specify notebook's Saveable option from command line?
I've tried various ways to specify a notebook's Saveable option, all unsuccessful.
For example, using an external editor, I edited ...
6
votes
1
answer
391
views
How to recover WolframScript's former `-run` functionality?
With the 10.4 version of WolframScript, I could run something like
...
1
vote
1
answer
116
views
How to specify $Path items on the command line?
On Unix, I can run Python scripts from the command line like this1:
PYTHONPATH=lib/python path/to/script.py
The setting of ...
4
votes
1
answer
348
views
How to read *all* input from stdin?
The answers given to this similar question won't do, because those solutions read only one line from stdin.
I want to read all available lines, pretty much in the ...
0
votes
1
answer
46
views
Hide Or Add To Magnification Menu
Is there a way to hide or add to the Magnification menu at the bottom of each notebook.
I understand if it can't be removed but then I would like to add to the menu because it takes up a lot of space....
3
votes
2
answers
106
views
Polling Unix Commands Top
How might I display an up to date display of top inside of Mathematica?
top is unique in that it updates itself every couple of ...
2
votes
1
answer
169
views
Running an external simulation program from Mathematica
I have a physics simulation program which I run through a terminal window (I use a Mac) as shown below:
user$ programName inputfile.ele
I would like run a ...
0
votes
0
answers
74
views
How to get a script to print MaxMemoryUsed[] upon getting a system signal?
I want to instrument a Mathematica script so that, upon receiving any system signal (e.g. SIGINT, aka Ctrl-C) it will print1 the ...
7
votes
1
answer
706
views
WolframScript Unix - Script Parameters on Raspberry Pi
I'm currently trying to run a script with 2 parameters which gets called via a BASH script. The script runs fine however the list of passed parameters , ...
5
votes
1
answer
357
views
Wolfram Script Not Completing when ran as cron job
I have a fairly simple Wolfram script called from within a shell script that I would like to run at certain times. The shell script calls a python script to get some recordings to from GPIO and saves ...
2
votes
0
answers
36
views
How to make lines not wrapping in text-mode Mathematica? [duplicate]
When running Mathematica from Unix command line, i.e. pure text mode, the lines wrap at about 70 pr 80 characters, creating lots of visual clutter. How do I set it so that any outputs will not wrap ...
7
votes
3
answers
725
views
Converting between AbsoluteTime and Unix time
By trial and error, I've found that the following gives the current Unix time:
AbsoluteTime[] - UPOCH
where UPOCH can be defined in any of the following ways:
<...