• 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
Re: Multiline commands in do shell script
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Multiline commands in do shell script


  • Subject: Re: Multiline commands in do shell script
  • From: "John C. Welch" <email@hidden>
  • Date: Tue, 03 Feb 2004 13:38:39 -0600

On 2/3/04 10:59 AM, "Hanaan Rosenthal" <email@hidden> wrote:

> Try to separate the different shell commands with a semicolon:
>
> do shell script"command 1;command 2"
>
> Hanaan
>
>>
>> So I need to deal with a command that never exits, (mDNS to be precise)
> and
>> do shell script.
>>
>> Because of the way mDNS works, even if I run it as this:
>>
>> mDNS -B _ssh._tcp local. > ~/Desktop/mDNSService.txt &
>>
>> I never return from the do shell script step. What I'd like to do is just
>> create a three - line shell script and run that, but have it live only in
>> the script itself...something like
>>
>> do shell script "#!/bin/sh
>> mDNS -B _ssh._tcp local. > ~/Desktop/mDNSService.txt &
>> killall mDNS"
>>
>> I know there's something stupid I'm missing here, but I can't quite figure
>> it out.
>>

Nope...command never executes.

john

--
"Carnation milk is best of all,
No tits to pull, no shit to haul,
No buckets to wash, no hay to pitch,
Just poke a hole in the son-of-a-bitch!"

Non - Winning entry in contest for slogan for Carnation Canned Milk, circa
1940s
_______________________________________________
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: Multiline commands in do shell script
      • From: Graff <email@hidden>
  • Prev by Date: Re: Multiline commands in do shell script
  • Next by Date: Re: Grab list of album names in iTunes?
  • Previous by thread: Re: Multiline commands in do shell script
  • Next by thread: Re: Multiline commands in do shell script
  • Index(es):
    • Date
    • Thread