[oak perl] Oakland Digest, Vol 42, Issue 3

Tabatchnick, Justin justin.tabatchnick at intel.com
Tue Dec 5 12:57:23 PST 2006


Thanks 

-----Original Message-----
From: oakland-bounces+justin.tabatchnick=intel.com at pm.org
[mailto:oakland-bounces+justin.tabatchnick=intel.com at pm.org] On Behalf
Of oakland-request at pm.org
Sent: Tuesday, December 05, 2006 12:01 PM
To: oakland at pm.org
Subject: Oakland Digest, Vol 42, Issue 3

Send Oakland mailing list submissions to
	oakland at pm.org

To subscribe or unsubscribe via the World Wide Web, visit
	http://mail.pm.org/mailman/listinfo/oakland
or, via email, send a message with subject or body 'help' to
	oakland-request at pm.org

You can reach the person managing the list at
	oakland-owner at pm.org

When replying, please edit your Subject line so it is more specific
than "Re: Contents of Oakland digest..."


Today's Topics:

   1. Re: new to Perl (Quinn Weaver)


----------------------------------------------------------------------

Message: 1
Date: Mon, 4 Dec 2006 12:08:06 -0800
From: Quinn Weaver <qw at sf.pm.org>
Subject: Re: [oak perl] new to Perl
To: Oakland Perl Mongers <oakland at pm.org>
Message-ID: <20061204200806.GA25247 at fu.funkspiel.org>
Content-Type: text/plain; charset=us-ascii

On Mon, Dec 04, 2006 at 08:40:15AM -0800, Tabatchnick, Justin wrote:
> Hi ;
> 
>  
> 
> I am new to Perl and I need some advice on how to execute a command
> within a Perl script. In particular I need to run HSPICE  ( an
> electrical simulator) followed by two arguments -i and the filename.
Is
> this possible within Perl or do I have to create a Unix shell script ?


Yep, you can do it.  'man perlfunc' and check out system, fork, and
exec.
If you want your Perl process to wait until HSPICE exits and then resume
doing Perl stuff, use system.  If you want to end the Perl program,
replacing it with the HSPICE process, use exec.  If you want to run
HSPICE in the background while Perl continues to do other things,
use fork and then exec.

By the way, I recommend O'Reilly's Perl Cookbook for people new to
Perl.  It covers many issues like this, where you know what you want
to do but don't know how to do it.  It's a huge time-saver.

--
qw (Quinn Weaver); #President, San Francisco Perl Mongers
=for information, visit http://sf.pm.org/weblog =cut


------------------------------

_______________________________________________
Oakland mailing list
Oakland at pm.org
http://mail.pm.org/mailman/listinfo/oakland

End of Oakland Digest, Vol 42, Issue 3
**************************************


More information about the Oakland mailing list