View Full Version : call commands, lazarus
marshall.robert
October 15th, 2007, 06:00 PM
Does anyone know how i could call/manipulate commands (like: apt-get, or poweroff) using lazarus? specifically 'ifconfig eth0 up' and '/etc/init.d/networking restart'
thanks
-rob
Compyx
October 16th, 2007, 02:06 AM
Perhaps exec() will do what you want? It's been years since I've coded in Pascal, but a quick google-search came up with exec().
marshall.robert
October 16th, 2007, 03:56 PM
nah, its not, it give me 'itetifier not found' so its looks like its no assigned toa anything, thanks though. ill have a google sesh. any more suggestions are more than welcome.
-rob
vBulletin® v3.8.7, Copyright ©2000-2012, vBulletin Solutions, Inc.