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
latest shell script puzzlements
[
Date Prev
][
Date Next
][
Thread Prev
][
Thread Next
][
Date Index
][
Thread Index
]
latest shell script puzzlements
Subject
:
latest shell script puzzlements
From: Barry Chern <
email@hidden
>
Date: Thu, 13 Jan 2005 02:34:44 -0500
First of all, I must admit I'm totally over my head in shell territory. Previously I've just found a couple unix commands I wanted to use and figured out how to write them from the ground up. But now I've been asked if I could turn an existing unix script, a software uninstaller, into an AppleScript to smooth mass deployment through ARD. I didn't see why not. (At least not until I looked at it and saw how long the command lines were and how little I understood them.)
Anyway, to get to the end of the story first, after I think I got a line all quoted up right (when reported on in the error dialog, the command looks like it did in the original script) I've ended up with a "no such file or directory" error. there is one place in the line that refers to a file, which in fact does not exist (so far)on the machine I'm testing on. However, it is in an "if" clause and is only a comparison checked to see if it is the source of one of the running processes. In the terminal it seems to be sensibly ignored since it is not.
Is this likely to be the origin of such an error, does Applescript care about non-existing files that it shouldn't? Or, is it possible it is offended by the specific enclosing folder, "usr/bin", for some reason? Or is it more likely a mis-directing error, and it's hard to get "if"s and variables (the "$" prefixed kind) to read correctly.
Yes, this was a little vague, just hoping it might ring some categorical bells at first.
And, by the way, before I got the quoting set up right I got a lot of numerical errors. (running from script debugger). Any idea whose errors those would be, unix or applescript or what, and where they might be interpreted. ( 4 digit numbers, except for awhile when I had an "error of Type 1". I thought I was having some dreadful flashback at that point.)
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
Follow-Ups
:
Re: latest shell script puzzlements
From:
Barry Chern <email@hidden>
References:
>
Re: Passing arguments to the script from command line.
(From: Andrew Oliver <email@hidden>)
>
Re: Passing arguments to the script from command line.
(From: Brian Johnson <email@hidden>)
Prev by Date:
Re: Passing arguments to the script from command line.
Next by Date:
Re: Date computation
Previous by thread:
Re: Passing arguments to the script from command line.
Next by thread:
Re: latest shell script puzzlements
Index(es):
Date
Thread