Message Boards Message Boards

0
|
10942 Views
|
2 Replies
|
1 Total Likes
View groups...
Share
Share this post:

I cannot pass any script to `math`, in a command line

Posted 10 years ago
POSTED BY: Toughee Eager
2 Replies
Posted 10 years ago
POSTED BY: Toughee Eager

You can test your ability to pass a script by writing a script with

Print[1+1]

This should print 2 to standard out. My output:

$ math8 -script Test1.m
2
$

I executed a script with

Put[1+1,"~/Test.txt"]

with

$ math8 -script Test2.m
$

and a Test.txt was created in my home directory with 2 in it. I am wondering if you are seeing a permissions issue.

POSTED BY: Jason Grigsby
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