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

Re: [Condor-users] Batch Script Errors



Hi Herb:

Which of the echo command does not work?  Are all the execute nodes running XP? Also, there is no need for the loop if you are only transferring one of the input files with each job (unless that was unintentional).

-B

On 2011-07-15, at 1:22 PM, Smith, Herb wrote:

> All,
> 
> I have a batch script that I want to use as my executable.  It runs fine when I run it manually from the command line.  When I have it submitted to the queue, it acts differently.  Two of the echo commands don't work and it says that one of my Rename commands is not correct (not the correct syntax).
> 
> Is there something I should be aware of when running a batch script as an executable?  I'm on Windows XP, Condor Ver. 7.6.1.
> 
> Here is the submit file:
> 
> Executable = CondorBat.bat
> Universe   = vanilla
> Output     = $(Process).msg
> Error      = $(Process).err
> 
> should_transfer_files  =  YES
> when_to_transfer_output = ON_EXIT
> 
> 
> Transfer_input_files = hypt.exe, $(Process).in
> Transfer_output_files = $(Process).out
> 
> Log        = hypt.log
> 
> Queue
> 
> This is the batch script:
> 
> set ftype=.out
> @echo %ftype%
> 
> for %%F in (*.in) do (
>   @echo %%F
>   @echo %%~nF
>  set fileNum=%%~nF
>  @echo %fileNum%
>  set outputName=%fileNum%%ftype%
>  @echo %outputName%
>  ren %%F  "input.dat"
> 
> hypt.exe
> 
> ren output.dat %outputName%
> 
> )
> 
> 
> Thanks in advance.
> 
> Herb
> 
> 
> _______________________________________________
> 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/

--
Ben Burnett
Optimization Research Group
Department of Math & Computer Science
University of Lethbridge
http://optimization.cs.uleth.ca

"Everyone is entitled to their opinion; you're not entitled to your own fact."
- Michael Specter