Re: Multi-line do shell script. How?
Re: Multi-line do shell script. How?
- Subject: Re: Multi-line do shell script. How?
- From: Walter Ian Kaye <email@hidden>
- Date: Wed, 21 Apr 2004 03:45:06 -0700
At 11:13a +0100 04/21/2004, Simon Forster didst inscribe upon an
electronic papyrus:
How can I "do shell script" with more than 1 line. More
specifically, how can I do the equivalent of:
python
>>> import sys
>>> sys.path
from within do shell script?
Actually, I only want to do this to check that an environment
variable set in ~/.bashrc is also set in whatever environment "do
shell script" runs under. The real goal is to import a module and
run one of its functions with a supplied argument, all from "do
shell script". So if you could let me know how to do this, I'd be
eternally grateful (well, until the next issue giving me large bumps
on head and associated headache crops up ;-)
Concatenate with either a semicolon or a LF.
do shell script "command 1; command 2; command 3"
-boo
+How would Dr. Bronowsky know which zoo it was from?
-He knows everything.
+Oh, I wouldn't like that. That would take all the mystery out of life.
Anyway, if it was from the zoo, it'd have "Property of the Zoo" stamped on it!
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.