• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Multi-line do shell script. How?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Multi-line do shell script. How?


  • Subject: Multi-line do shell script. How?
  • From: Simon Forster <email@hidden>
  • Date: Wed, 21 Apr 2004 11:13:30 +0100

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 ;-)

TIA

Simon Forster
_____________________________________________________
LDML Ltd, 62 Pall Mall, London, SW1Y 5HZ, UK
Tel: +44 (0)70 9230 5244 Fax: +44 (0)70 9230 5247
_____________________________________________________
_______________________________________________
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.


  • Follow-Ups:
    • Re: Multi-line do shell script. How?
      • From: Graff <email@hidden>
    • Re: Multi-line do shell script. How?
      • From: "Don Goyette" <email@hidden>
    • Re: Multi-line do shell script. How?
      • From: Walter Ian Kaye <email@hidden>
  • Prev by Date: Re: Print setup with XP4
  • Next by Date: Re: Changing Spelling Dictionary?
  • Previous by thread: Print syles with menus ?
  • Next by thread: Re: Multi-line do shell script. How?
  • Index(es):
    • Date
    • Thread