Re: [Qgis-user] Save log to file via cmd

2021-03-11 Thread Christoph Jung
That’s great, Nyall. Thank you for your effort :)

Regards,
Christoph 

> Am 11.03.2021 um 23:46 schrieb Nyall Dawson :
> 
> On Tue, 9 Mar 2021 at 00:41, Christoph Jung  wrote:
>> 
>> Hello everyone,
>> 
>> I created a model and added the function “Save log to file” at the end of my 
>> model. If I start the model directly in the QGIS application, it works fine 
>> (the log file will be created and contains information).
>> 
>> Now I want to call this model from the command line to schedule this task. I 
>> created a batch file, setting up the osgeo4w environment and calling the 
>> model via qgis_processing-qgis-ltr in this script. The log file will be 
>> created, but there is no information in it. There is no error message or 
>> something else in the command prompt too. Does anybody has an idea how I 
>> could get the information in my log files when I call my model via command 
>> line?
> 
> Thanks, fixed here: https://github.com/qgis/QGIS/pull/42208/files
> 
> Nyall
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user


Re: [Qgis-user] Save log to file via cmd

2021-03-11 Thread Nyall Dawson
On Tue, 9 Mar 2021 at 00:41, Christoph Jung  wrote:
>
> Hello everyone,
>
> I created a model and added the function “Save log to file” at the end of my 
> model. If I start the model directly in the QGIS application, it works fine 
> (the log file will be created and contains information).
>
> Now I want to call this model from the command line to schedule this task. I 
> created a batch file, setting up the osgeo4w environment and calling the 
> model via qgis_processing-qgis-ltr in this script. The log file will be 
> created, but there is no information in it. There is no error message or 
> something else in the command prompt too. Does anybody has an idea how I 
> could get the information in my log files when I call my model via command 
> line?

Thanks, fixed here: https://github.com/qgis/QGIS/pull/42208/files

Nyall
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user


Re: [Qgis-user] Save log to file via cmd

2021-03-11 Thread Christoph Jung
Hi Andrea,

Thank you for these information. I will look for this executable on macOS 
during the next days. 

Regards,
Christoph 

> Am 11.03.2021 um 10:46 schrieb Andrea Giudiceandrea :
> 
> Christoph Jung wrote
>> Does anybody know, how I can use the command „qgis_process-qgis-ltr“ in
>> the macOS-terminal or is this a Windows-only feature?
> 
> Hi Christoph,
> qgis_process-qgis-ltr is only an MS-DOS batch file needed to properly set
> the PATH and some env. variables.
> The real executable name is qgis_process, actually qgis_process.exe under
> Windows, qgis_process under Linux, maybe qgis_process.app under macOS or
> simply qgis_process like for the others OSs.
> 
> Regards.
> 
> Andrea
> 
> 
> 
> --
> Sent from: http://osgeo-org.1560.x6.nabble.com/QGIS-User-f4125267.html
> ___
> Qgis-user mailing list
> Qgis-user@lists.osgeo.org
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user


Re: [Qgis-user] Save log to file via cmd

2021-03-11 Thread Andrea Giudiceandrea
Christoph Jung wrote
> Does anybody know, how I can use the command „qgis_process-qgis-ltr“ in
> the macOS-terminal or is this a Windows-only feature?

Hi Christoph,
qgis_process-qgis-ltr is only an MS-DOS batch file needed to properly set
the PATH and some env. variables.
The real executable name is qgis_process, actually qgis_process.exe under
Windows, qgis_process under Linux, maybe qgis_process.app under macOS or
simply qgis_process like for the others OSs.

Regards.

Andrea



--
Sent from: http://osgeo-org.1560.x6.nabble.com/QGIS-User-f4125267.html
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user


Re: [Qgis-user] Save log to file via cmd

2021-03-10 Thread Christoph Jung
I tried to find any documentation about this command for Unix/macOS to 
reproduce this issue on another OS. Does anybody know, how I can use the 
command „qgis_process-qgis-ltr“ in the macOS-terminal or is this a Windows-only 
feature? My terminal does not recognize this command.

Regards,
Christoph

> Am 10.03.2021 um 08:43 schrieb Karl Magnus Jönsson 
> :
> 
> No, unfortunately not. I guess it is a bug that has to be reported.
> 
> Karl-Magnus Jönsson
> 
> 
> -Ursprungligt meddelande-
> Från: Christoph Jung  
> Skickat: den 9 mars 2021 09:33
> Till: Karl Magnus Jönsson 
> Kopia: qgis-user 
> Ämne: Re: [Qgis-user] Save log to file via cmd
> 
> Thank you for you answer, Karl. Did you found another solution to create such 
> log files? I tried to write the output of the command to a file via 
> “qgis_processing-qgis-ltr [...] > path_to_logfile.log”. But only the input 
> section will be written to this file, not the result section. 
> 
>> Am 08.03.2021 um 17:03 schrieb Karl Magnus Jönsson 
>> :
>> 

___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user


Re: [Qgis-user] Save log to file via cmd

2021-03-09 Thread Karl Magnus Jönsson
No, unfortunately not. I guess it is a bug that has to be reported.

Karl-Magnus Jönsson


-Ursprungligt meddelande-
Från: Christoph Jung  
Skickat: den 9 mars 2021 09:33
Till: Karl Magnus Jönsson 
Kopia: qgis-user 
Ämne: Re: [Qgis-user] Save log to file via cmd

Thank you for you answer, Karl. Did you found another solution to create such 
log files? I tried to write the output of the command to a file via 
“qgis_processing-qgis-ltr [...] > path_to_logfile.log”. But only the input 
section will be written to this file, not the result section. 

> Am 08.03.2021 um 17:03 schrieb Karl Magnus Jönsson 
> :
> 
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user


Re: [Qgis-user] Save log to file via cmd

2021-03-09 Thread Christoph Jung
Thank you for you answer, Karl. Did you found another solution to create such 
log files? I tried to write the output of the command to a file via 
“qgis_processing-qgis-ltr [...] > path_to_logfile.log”. But only the input 
section will be written to this file, not the result section. 

> Am 08.03.2021 um 17:03 schrieb Karl Magnus Jönsson 
> :
> 
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user


Re: [Qgis-user] Save log to file via cmd

2021-03-08 Thread Karl Magnus Jönsson
Hi, I've experienced the same thing. Haven't found/heard of a solution yet. 
Would be interested in that.

Regards
Karl-Magnus Jönsson


-Ursprungligt meddelande-
Från: Qgis-user  För Christoph Jung
Skickat: den 8 mars 2021 15:41
Till: qgis-user 
Ämne: [Qgis-user] Save log to file via cmd

Hello everyone,

I created a model and added the function “Save log to file” at the end of my 
model. If I start the model directly in the QGIS application, it works fine 
(the log file will be created and contains information). 

Now I want to call this model from the command line to schedule this task. I 
created a batch file, setting up the osgeo4w environment and calling the model 
via qgis_processing-qgis-ltr in this script. The log file will be created, but 
there is no information in it. There is no error message or something else in 
the command prompt too. Does anybody has an idea how I could get the 
information in my log files when I call my model via command line?

Regards,
Christoph
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user


[Qgis-user] Save log to file via cmd

2021-03-08 Thread Christoph Jung
Hello everyone,

I created a model and added the function “Save log to file” at the end of my 
model. If I start the model directly in the QGIS application, it works fine 
(the log file will be created and contains information). 

Now I want to call this model from the command line to schedule this task. I 
created a batch file, setting up the osgeo4w environment and calling the model 
via qgis_processing-qgis-ltr in this script. The log file will be created, but 
there is no information in it. There is no error message or something else in 
the command prompt too. Does anybody has an idea how I could get the 
information in my log files when I call my model via command line?

Regards,
Christoph
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user