Please help me some one even if only by telling me that it is impossible. With stdout and stderr before calling the spawn. Result = os.spawnlp(os.P_WAIT, 'gpsbabel', 'gpsbabel', dataString, inputFormatStr, inputFileStr, outputFormatStr, outputFileStr)Īnd can not see how to change that to be the same as my command line option. Which sent everything to the file err.log as expected. Gpsbabel -igarmin -f/dev/ttyS1 -o zzz -F/home/neill/temp > /home/neill/temp/err.log 2>&1 From the command line I changed the command to I though that sending the output to the file would be a good start. This is what I would like to show the user of the GUI but I can find no way of doing so. Produces the following output to the screen It’s easier to combine tracks in KML format rather than GPX.Each track in your KML file will have a string of coordinates for it as shown here. I am a very inexperienced Python programmer.Ĭalling the program from the command line as gpsbabel -igarmin -f/dev/ttyS1 -o zzz -F/home/neill/temp Gebabbel is a GUI for the famous gpsbabel, a command line tool to convert various GPS file formats back and forth. All its GUIs just construct appropriate text command for the shell, which can be seen. The problem in a nutshell – I am writing a GUI wrapper for a command line utility (GPSBabel) and want to show the output of the command line on an error. GPSBabel is a purely command line software for GPS data conversion. GPSBabel converts waypoints, tracks, and routes from one format to another, whether that format is a common mapping format like Delorme, Streets and Trips.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |