Re: Include "\" in do shell script command
Re: Include "\" in do shell script command
- Subject: Re: Include "\" in do shell script command
- From: "Steven D. Majewski" <email@hidden>
- Date: Fri, 18 Jul 2003 14:30:25 -0400
Tim,
This works for me with the_id set to either yours or mine:
set the_id to "****"
do shell script "whois -h whois.virginia.edu \\!" & the_id
Maybe there's some other problem.
Are you SURE you're passing a valid ID ?
No leading spaces or other chars ?
-- Steve Majewski
On Friday, July 18, 2003, at 02:19 PM, Timothy K. Wilkinson wrote:
Appreciate you posting that on the list. I'll make sure to forward
all the
spam I get to you. :-)
The problem is that using that syntax works just fine if you actually
put
the id in there. It compiles and runs just fine as you so nicely
demonstrated. Now try it the way I actually posted it:
do shell script "whois -h whois.virginia.edu " & (ASCII character 92)
& "!"
& the_id
Or like this:
Do shell script "whois -h whois.virginia.edu \\!" & the_id
Both return the same error telling me the record can't be found, yet I
know
the record exists. If I look in the event log it shows the command
being
issued in exactly the same way as when I actually enter an ID into the
string. It seems as if the variable is the weak link here. I tried
running
the above and declaring the contents of the variable earlier in the
script
and got the same error.
Any other ideas?
_______________________________________________
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.