[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Condor-users] Introduce arguments



Thank you for your response:

producto.m is only an example that reads the values of x and y from the command line:

producto(2,3)

It´s the first time that I´m using matlab in condor and I don´t know a way to return a value.

I need an example in which you can introduce a few values in the executable of condor(for example the values of x and y of the function producto.m ) and it produces an exit to you (producto.out) that is the output of the m file (in the case of producto.m the product of x and y).

Can you pass me an example of and m file and a executable(.bat)of condor that works?

Thank you in advance

From: "Finch, Ralph" <rfinch@xxxxxxxxxxxx>
Reply-To: Condor-Users Mail List <condor-users@xxxxxxxxxxx>
To: "Condor-Users Mail List" <condor-users@xxxxxxxxxxx>
Subject: Re: [Condor-users] Introduce arguments
Date: Wed, 12 Sep 2007 13:39:07 -0700

Well; of course producto.m won't do anything useful within Matlab
because it doesn't return a value, right?  And as written, x and y will
be provided by the calling program.  Is producto.m the real function, or
only an example?  In other words, I am wondering if this is a Matlab
question or Condor question.

If your producto.m read its x and y values from the command line, then
we can devise a way to pass those arguments using Condor.

Ralph Finch, P.E.
California Dept. of Water Resources
Delta Modeling Section, Bay-Delta Office
Room 215-13
1416 9th Street
Sacramento CA  95814
916-653-7552
rfinch@xxxxxxxxxxxx


-----Original Message-----
From: condor-users-bounces@xxxxxxxxxxx
[mailto:condor-users-bounces@xxxxxxxxxxx] On Behalf Of rosa liarte
Sent: Wednesday, September 12, 2007 9:12 AM
To: condor-users@xxxxxxxxxxx
Subject: Re: [Condor-users] Introduce arguments

I did it but the program fails.

My executable is (producto.bat):

Executable = C:\Archivos de
programa\MATLAB\R2007a\bin\win32\producto.exe
transfer_input_files =producto.m
arguments =-nosplash -nojvm -nodesktop -nofigurewindows -r producto.m
Universe = vanilla Log = c:\condor\bin\producto.log output =
c:\condor\bin\producto.out error = c:\condor\bin\producto.err getenv =
True; transfer_executable = False should_transfer_files = YES
when_to_transfer_output = ON_EXIT transfer_input_files =c:\Program
files\MATLAB\R2007a\bin\win32\producto.m
queue


And my m file (c:\Program files\MATLAB\R2007a\bin\win32\producto.m) is:

function z=producto(x,y)
z=x*y;
end

producto.exe and producto.bat are on the same path

Any idea


_______________________________________________
Condor-users mailing list
To unsubscribe, send a message to condor-users-request@xxxxxxxxxxx with a
subject: Unsubscribe
You can also unsubscribe by visiting
https://lists.cs.wisc.edu/mailman/listinfo/condor-users

The archives can be found at:
https://lists.cs.wisc.edu/archive/condor-users/

_________________________________________________________________
¿Estás pensando en cambiar de coche? Todas los modelos de serie y extras en MSN Motor. http://motor.msn.es/researchcentre/