Services & Resources / Wolfram Forums / MathGroup Archive
-----

MathGroup Archive 2011

[Date Index] [Thread Index] [Author Index]

Search the Archive

Cannot run a program using << with a string I create

  • To: mathgroup at smc.vnet.net
  • Subject: [mg115782] Cannot run a program using << with a string I create
  • From: "James" <icorone at hotmail.com>
  • Date: Thu, 20 Jan 2011 06:32:47 -0500 (EST)

Hi,

I'm trying to run a C program in Mathematica using the << operator.  This works if I explicitly code the operation as for example:

<<=E2=80=9D!myprogram var1 var2=E2=80=9D

However the numeric variables I=E2=80=99m passing to the program, var1 and var2 are arbitrary and I'd like to write something like:

myruncommand==E2=80=9D!myprogram =E2=80=9C<>ToString[var1]<>=E2=80=9D =E2=80=9C<>ToString[var2]=E2=80=9D

but when I attempt to execute:

<<myruncommand

I receive the error:

=E2=80=9CCannot open myruncommand=E2=80=9D

I don't understand what I'm doing wrong.  Can someone help me please?

Thanks,

James



  • Prev by Date: Can mathematica do a weighed nonlinear curve fit? eom
  • Next by Date: Re: adding a keyboard shortcut for double brackets
  • Previous by thread: Re: Can mathematica do a weighed nonlinear curve fit? eom
  • Next by thread: Simple n-tuple problem - with no simple solution