Re: Multiline commands in do shell script
Re: Multiline commands in do shell script
- Subject: Re: Multiline commands in do shell script
- From: Hanaan Rosenthal <email@hidden>
- Date: Tue, 3 Feb 2004 11:59:33 -0500
- Organization: Custom Flow Solutions
John,
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.
>
>
Ideas?
>
>
john
>
>
--
>
"The truth shall set you free."
>
U.S. Central Intelligence Agency Motto
>
_______________________________________________
>
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.
_______________________________________________
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.