How runing external program vith Lazarus? lazarus / 9-Editor ---------------------------------------------------------------------- Fortuna1 · 2007-11-03 17:45 In Kylix like these.Code: [Select]        iPrg := libc.system('bunzip2 uspeh.bz2 -k');        if iPrg = -1 then           ShowMessage('Error executing your program');         end; Thanks. ---------------------------------------------------------------------- antonio · 2007-11-03 19:26 Use TProcess, http://wiki.lazarus.freepascal.org/Executing_External_Programs . ---------------------------------------------------------------------- Fortuna1 · 2007-11-03 20:34 Thans. ---------------------------------------------------------------------- hop111 · 2007-11-06 07:16 Hi! It is feasible to execute external programs as another user (not current user, linux)? Sorry my poor english! Zsolt ---------------------------------------------------------------------- Almindor · 2007-11-06 16:36 Yes, in linux you can fpfork() and in the "client" (result > 0) you can fpsetpid(userpid). But this only works if you have the rights for such things, which usually you won't. ---------------------------------------------------------------------- hop111 · 2007-11-07 07:43 This works if I was worth it well simply, the application than Root I run it. For me in that direction would be my need, that I ask for Root password from the user, and the exterior program than Root I run it. Sorry my english! I did translating with webforditas.hu help. Thanks!