Thre ways...
exec('make');
system('make');
`make`;
The three differ slightly, you might want to check the docs.
Breifly...
exec - executes the command, but your Perl program ends where it is.
system - executes the command, waits for it to finish, returns the return
code.
`` (backticks) - executes the command, waits for it to finish, returns the
output (STDOUT, not STDERR).
Rob
-----Original Message-----
From: Sidharth [mailto:[EMAIL PROTECTED]
Sent: Thursday, June 03, 2004 11:27 AM
To: [EMAIL PROTECTED]
Subject: how to execute make command
hi all,
i want to know how to execute makefile from the perl script ,its a sort
of urgent .
thank u all in advance...
----------------------------------------------------------------------------
-----------------------------------------------------
"There is nothing in a caterpillar that tells you it's going to be a
butterfly." - Anonymous
*********************************************
Sidharth M Patil
Engineer
Kyocera-Wireless (India) Pvt Ltd
5th Floor, Phase I, Divyashree Towers,
Guruppanapalya, Bannerghatta Road,
Bangalore-560072
Tel : 51106988 extn 5171
*********************************************
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>