Shell exceptions (Real Studio network user group Mailinglist archive)

Back to the thread list
Previous thread: Understanding Crash Log
Next thread: Multiple Inheritance


[OT] more Carbon shared library tales   -   Hadley, Joshua
  Shell exceptions   -   Dennis Birch
   Re: Shell exceptions   -   Will Leshner
    Re: Shell exceptions   -   Frank Bitterlich
     Re: Shell exceptions   -   Brady Duga
      Re: Shell exceptions   -   Will Leshner
       Re: Shell exceptions   -   Brady Duga
        Re: Shell exceptions   -   Will Leshner
     Re: Shell exceptions   -   Will Leshner
    Re: Shell exceptions   -   Dennis Birch

Shell exceptions
Date: 13.12.02 18:10 (Fri, 13 Dec 2002 09:10:39 -0800)
From: Dennis Birch
I'm working on an OS X program that uses shell classes extensively. I
want to put up an alert at startup if the shell is not available. I
assume all I would need to do is execute a simple shell command and
check for a shellnotAvailableException. Is that correct, or is there
more to it than that?

---
A searchable archive of this list is available at:
<http://dbserver.realsoftware.com/KBDB/search.php>

Unsubscribe:
<mailto:<email address removed>>

Subscribe to the digest:
<mailto:<email address removed>>

Re: Shell exceptions
Date: 13.12.02 18:53 (Fri, 13 Dec 2002 09:53:22 -0800)
From: Will Leshner
Just out of curiosity, under what circumstances would the shell not be
available?

On Friday, December 13, 2002, at 09:10 AM, Dennis Birch wrote:

> I'm working on an OS X program that uses shell classes extensively. I
> want to put up an alert at startup if the shell is not available. I
> assume all I would need to do is execute a simple shell command and
> check for a shellnotAvailableException. Is that correct, or is there
> more to it than that?


---
A searchable archive of this list is available at:
<http://dbserver.realsoftware.com/KBDB/search.php>

Unsubscribe:
<mailto:<email address removed>>

Subscribe to the digest:
<mailto:<email address removed>>

Re: Shell exceptions
Date: 13.12.02 20:03 (Fri, 13 Dec 2002 20:03:28 +0100)
From: Frank Bitterlich
... if the user ran the program on an OS 9 machine?

Cheers,
Frank+++

Will Leshner wrote:
>
> Just out of curiosity, under what circumstances would the shell not be
> available?
>
> On Friday, December 13, 2002, at 09:10 AM, Dennis Birch wrote:
>
> > I'm working on an OS X program that uses shell classes extensively. I
> > want to put up an alert at startup if the shell is not available. I
> > assume all I would need to do is execute a simple shell command and
> > check for a shellnotAvailableException. Is that correct, or is there
> > more to it than that?

Re: Shell exceptions
Date: 13.12.02 20:11 (Fri, 13 Dec 2002 11:11:30 -0800)
From: Brady Duga

On Friday, December 13, 2002, at 11:03 AM, Frank Bitterlich wrote:

> ... if the user ran the program on an OS 9 machine?
>

Or perhaps if the BSD sub-system isn't installed? I'm not sure if the
shell would fail entirely, but it would at the very least make it
fairly worthless.

--Brady
The La Jolla Underground

---
A searchable archive of this list is available at:
<http://dbserver.realsoftware.com/KBDB/search.php>

Unsubscribe:
<mailto:<email address removed>>

Subscribe to the digest:
<mailto:<email address removed>>

Re: Shell exceptions
Date: 13.12.02 20:21 (Fri, 13 Dec 2002 11:21:43 -0800)
From: Will Leshner
Can you have OS X without the BSD sub-system? That's not sarcasm. I
really don't know.

On Friday, December 13, 2002, at 11:11 AM, Brady Duga wrote:

> On Friday, December 13, 2002, at 11:03 AM, Frank Bitterlich wrote:
>
>> ... if the user ran the program on an OS 9 machine?
>>
> Or perhaps if the BSD sub-system isn't installed? I'm not sure if the
> shell would fail entirely, but it would at the very least make it
> fairly worthless.


---
A searchable archive of this list is available at:
<http://dbserver.realsoftware.com/KBDB/search.php>

Unsubscribe:
<mailto:<email address removed>>

Subscribe to the digest:
<mailto:<email address removed>>

Re: Shell exceptions
Date: 13.12.02 20:34 (Fri, 13 Dec 2002 11:34:54 -0800)
From: Brady Duga

On Friday, December 13, 2002, at 11:21 AM, Will Leshner wrote:

> Can you have OS X without the BSD sub-system? That's not sarcasm. I
> really don't know.

It used to be an option, though I'm really not sure about current
installs. I never actually tried it, but I suppose there is someone out
there that did. Murphy would point out "someone" is probably a reviewer
for a popular Mac magazine.

--Brady
The La Jolla Underground

---
A searchable archive of this list is available at:
<http://dbserver.realsoftware.com/KBDB/search.php>

Unsubscribe:
<mailto:<email address removed>>

Subscribe to the digest:
<mailto:<email address removed>>

Re: Shell exceptions
Date: 13.12.02 20:45 (Fri, 13 Dec 2002 11:45:22 -0800)
From: Will Leshner
Ah yes. Almost certainly :)

On Friday, December 13, 2002, at 11:34 AM, Brady Duga wrote:

>> Can you have OS X without the BSD sub-system? That's not sarcasm. I
>> really don't know.
>
> It used to be an option, though I'm really not sure about current
> installs. I never actually tried it, but I suppose there is someone
> out there that did. Murphy would point out "someone" is probably a
> reviewer for a popular Mac magazine.


---
A searchable archive of this list is available at:
<http://dbserver.realsoftware.com/KBDB/search.php>

Unsubscribe:
<mailto:<email address removed>>

Subscribe to the digest:
<mailto:<email address removed>>

Re: Shell exceptions
Date: 13.12.02 20:19 (Fri, 13 Dec 2002 11:19:37 -0800)
From: Will Leshner
Right, but Dennis says this app is going to be an OS X app. So it seems
like a simple check at the beginning for OS X might be sufficient. If
the app isn't running on OS X it could simply tell the user and quit.

On Friday, December 13, 2002, at 11:03 AM, Frank Bitterlich wrote:

> ... if the user ran the program on an OS 9 machine?
>
> Cheers,
> Frank+++
>
> Will Leshner wrote:
>>
>> Just out of curiosity, under what circumstances would the shell not be
>> available?
>>
>> On Friday, December 13, 2002, at 09:10 AM, Dennis Birch wrote:
>>
>>> I'm working on an OS X program that uses shell classes extensively. I
>>> want to put up an alert at startup if the shell is not available. I
>>> assume all I would need to do is execute a simple shell command and
>>> check for a shellnotAvailableException. Is that correct, or is there
>>> more to it than that?


---
A searchable archive of this list is available at:
<http://dbserver.realsoftware.com/KBDB/search.php>

Unsubscribe:
<mailto:<email address removed>>

Subscribe to the digest:
<mailto:<email address removed>>

Re: Shell exceptions
Date: 13.12.02 21:13 (Fri, 13 Dec 2002 12:13:15 -0800)
From: Dennis Birch
From what I understand, it is possible to install OS X without the
BSD subsystem, which (again as I understand it) would mean no shell
available. I'd be delighted to learn that I'm wrong and that I can
always count on every user's OS X configuration having the shell
available.

At 9:53 AM -0800 12/13/02, Will Leshner wrote:
>Just out of curiosity, under what circumstances would the shell not
>be available?
>
>On Friday, December 13, 2002, at 09:10 AM, Dennis Birch wrote:
>
>> I'm working on an OS X program that uses shell classes
>>extensively. I want to put up an alert at startup if the shell is
>>not available. I assume all I would need to do is execute a simple
>>shell command and check for a shellnotAvailableException. Is that
>>correct, or is there more to it than that?

---
A searchable archive of this list is available at:
<http://dbserver.realsoftware.com/KBDB/search.php>

Unsubscribe:
<mailto:<email address removed>>

Subscribe to the digest:
<mailto:<email address removed>>