PDA

View Full Version : call commands, lazarus



marshall.robert
October 15th, 2007, 11: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, 07: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, 08: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