Skip to main content
Solved

Run Workspace by command line


mr_fme
Enthusiast
Forum|alt.badge.img+8

I want to run the workspace by command line. But my workspace don´t have source dataset and output dataset. I´m using just creator and HttpCaller for download the zip file.

I haven´t experience to run workspace by command line. I was created the batch file like this:

fme.exe C:\\Users\\FME\\Desktop\\Workspace\\download.fmw LOG_FILENAME c:\\fme.log

But nothing happens..:(

Best answer by takashi

If the actual workspace file path (C:\\...\\...fmw) contains spaces, you have to quote it by double quotations.

 

Also, I don't think the dash leading LOG_FILENAME is necessary.

 

View original
Did this help you find an answer to your question?

10 replies

takashi
Influencer
  • August 1, 2018
  • What result would be shown on the command prompt window, if you run the workfpace through cmd with the same command line?
  • Have the log file "c:\\fme.log" been created?

 


fmelizard
Safer
Forum|alt.badge.img+18
  • Safer
  • August 1, 2018

Hi @mr_fme Did you forget the dash? It should be -LOG_FILENAME


mr_fme
Enthusiast
Forum|alt.badge.img+8
  • Author
  • Enthusiast
  • August 1, 2018
takashi wrote:
  • What result would be shown on the command prompt window, if you run the workfpace through cmd with the same command line?
  • Have the log file "c:\\fme.log" been created?

 

There´s no log file created!

 

 

The CMD show me the message below

 

 

Expected an even number of command line arguments, instead got 3 for command line: >> `embargos.fmw' `-LOG_FILENAME' `C:\\fme.log' <<Program TerminatingTranslation FAILED.

 


takashi
Influencer
  • Best Answer
  • August 1, 2018
If the actual workspace file path (C:\\...\\...fmw) contains spaces, you have to quote it by double quotations.

 

Also, I don't think the dash leading LOG_FILENAME is necessary.

 


takashi
Influencer
  • August 1, 2018
takashi wrote:
  • What result would be shown on the command prompt window, if you run the workfpace through cmd with the same command line?
  • Have the log file "c:\\fme.log" been created?

 

If the actual workspace file path (C:\\...\\...fmw) contains spaces, you have to quote it by double quotations.

 

Also, I don't think the dash leading LOG_FILENAME is necessary.

 


mr_fme
Enthusiast
Forum|alt.badge.img+8
  • Author
  • Enthusiast
  • August 1, 2018
takashi wrote:
If the actual workspace file path (C:\\...\\...fmw) contains spaces, you have to quote it by double quotations.

 

Also, I don't think the dash leading LOG_FILENAME is necessary.

 

@takashi

 

 

You help a lot. This command work properly, but when I paste in .bat file nothing happens.

 

 

C:\\FME_2017\\fme.exe "C:\\Users\\Smith\\Workspaces\\Fluxos\\down river.fmw" -LOG_FILENAME c:\\fme.log

takashi
Influencer
  • August 1, 2018
takashi wrote:
If the actual workspace file path (C:\\...\\...fmw) contains spaces, you have to quote it by double quotations.

 

Also, I don't think the dash leading LOG_FILENAME is necessary.

 

Sounds strange. The bat file should work if its content is the command line which you were able to execute through command prompt successfully.

 

How did you run the bat file?

mr_fme
Enthusiast
Forum|alt.badge.img+8
  • Author
  • Enthusiast
  • August 2, 2018
takashi wrote:
Sounds strange. The bat file should work if its content is the command line which you were able to execute through command prompt successfully.

 

How did you run the bat file?
Hi @Takashi,

 

 

I´m testing now in Windows 7, and work properly. The problem in bat file occur only in Windows 10 :(.

 

 

Thank´s

 

 

 


takashi
Influencer
  • August 2, 2018
takashi wrote:
Sounds strange. The bat file should work if its content is the command line which you were able to execute through command prompt successfully.

 

How did you run the bat file?
Run the batch file from CMD in your Windows 10 machine, and check what message would appear.

 

Just type the batch file path (quote the path with double quotations if it contains spaces) on CMD window and press the Enter (Return) Key.

mr_fme
Enthusiast
Forum|alt.badge.img+8
  • Author
  • Enthusiast
  • August 2, 2018
takashi wrote:
Run the batch file from CMD in your Windows 10 machine, and check what message would appear.

 

Just type the batch file path (quote the path with double quotations if it contains spaces) on CMD window and press the Enter (Return) Key.
My problem has been solved. I put a command line directly in the Windows 10 Task Scheduler and ran perfectly, it was what I needed. You do not need to create a batch file now. However, what is done based on execution rules for the process of running a mapping tool to run a program, for example, runs.But a usage resolution or task scheduler has already solved the problem for now.

 

Thank you very much for your attention.

 


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings