perl-embperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Wim Kerkhoff <...@netmaster.com>
Subject RE: system()
Date Fri, 02 Jun 2000 15:55:21 GMT
You would do it just like you do in normal perl.

<html>

[-
        open (DIG, "dig domain.com | ");
        $foo = <DIG>;
        close (DIG); 
-]
dig returned: [+ $foo +]

alternatively, you can try:

dig returned: [+ `/usr/local/bin/dig domain.com` +]

On 02-Jun-2000 Embperl wrote:
> just wanna know how you can include system("dig domain.com"); in embperl and
> be able to put the result in a variable.
> 
> tnx
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
> For additional commands, e-mail: embperl-help@perl.apache.org

Regards,

Wim Kerkhoff, Software Engineer
NetMaster Networking Solutions
wim@netmaster.com

Mime
View raw message