[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

Re: [MacPerl] what about "system()" and backticks?



At 1:46 -0500 2000.12.19, David Graff wrote:
>I haven't checked the mac-perl mail list archive -- it seems the link from the
>MacPerl faq (www.binary.net/dturley/macperl/search.html) has died off.

It has a new home.

	http://bumppo.net/lists/mp.html
	http://bumppo.net/search/macperl.html


>I'm not a mac programmer or user, so a very concientious mac person has given
>me valuable help in porting this application to macs; but we both recognize
>that there is a problem.  Sometimes, users may be confronted with literally
>thousands of files that need conversion (e.g. on a set of cdroms that I send
>them), and it's just not possible to do this manually, one file at a time.
>(Doing it manually just one directory at a time would not be much better.)  On
>wintel/unix, it's no problem -- a simple perl script will do all the files you
>want, and you just need to start it once to do it all.  But with a mac... ?

Well, in MacPerl, I'd just drop folders and/or files on a droplet.


>I think MacPerl could make this pretty simple (I could do it myself!) -- IF
>it's possible to invoke this C program from a MacPerl script, or somehow make
>the C code runnable as an extension to the script.  The "current"(?) FAQ page
>(July, 1999) says nothing about "system()", and not much about backticks (and
>it's not encouraging).

system() and backticks and piped open all work fine with ToolServer (an
extra app to call MPW tools from external apps).  ToolServer can work fine
without MPW, as long as you have the tools available to it.

Hope that helps; ask if you need more info or clarification,

-- 
Chris Nandor                      pudge@pobox.com    http://pudge.net/
Open Source Development Network    pudge@osdn.com     http://osdn.com/

# ===== Want to unsubscribe from this list?
# ===== Send mail with body "unsubscribe" to macperl-request@macperl.org