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

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
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 08:51:55 -0700

If I understand the question correctly, your function should be a
stand-along executable program which reads its arguments from the
command line.  Let's say, for example, that your function (program) is
run like this from a command line:

$ programXY 5 3

Then in your .sub file you would have a line:

arguments = 5 3

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: Tuesday, September 11, 2007 3:49 AM
To: condor-users@xxxxxxxxxxx
Subject: [Condor-users] Introduce arguments

Hello:
How can I introduce input (like a int) arguments when I execute a
function?
For example:
product(x,y)
How can I put the value of x and Y on the executable?


_______________________________________________
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/

_________________________________________________________________
Moda para esta temporada. Ponte al día de todas las tendencias. http://www.msn.es/Mujer/moda/default.asp