
26 Jan
2017
26 Jan
'17
5:03 a.m.
On 2017-01-26 10:50, PICCA Frederic-Emmanuel wrote:
Hello
I try to execute a command using system.
my code is like this
system (unwords ["python", p])
An easier way to execute programs is to use the functions defined in System.Process, e.g.: import System.Process main :: IO () main = callProcess "/usr/bin/python" ["/my super/script.py"] Note that 'callProcess' takes a list of strings, each element being one argument. The elements may contain spaces. -- Frerich Raabe - raabe@froglogic.com www.froglogic.com - Multi-Platform GUI Testing