The Math Forum

Search All of the Math Forum:

Views expressed in these public forums are not endorsed by NCTM or The Math Forum.

Math Forum » Discussions » Inactive » comp.soft-sys.math.mathematica

Notice: We are no longer accepting new posts, but the forums will continue to be readable.

Topic: filename construction and Unix shell command
Replies: 0  

Advanced Search

Back to Topic List Back to Topic List  
Michael Schaferkotter

Posts: 2
Registered: 12/7/04
filename construction and Unix shell command
Posted: Jul 17, 1996 1:47 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply


i would like to execute unix shell command from Mma:

(!somecommmand )

as an argument to the command, i would like to construct various


/a/b/c/file1 /a/b/c/file2 ... et. al.

so define:

cdir = "/a/b/c/"

onefile = StringJoin[cdir,"file1"];
twofile = StringJoin[cdir,"file2"];

!somecommand onefile

complaints about the evaluation of the expression onefile:


what the shell command would like is:

!somecommand /a/b/c/file1

so how do we build the pathname and still satisfy the shell command?


m. r.

ps. i tried all manner of ToCharacterCode, ToExpression, etc., that
i could think of.

m. r. schaferkotter
sverdrup technology, inc.
stennis space center, MS

Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© The Math Forum at NCTM 1994-2018. All Rights Reserved.