1 |
begin quote |
2 |
On Mon, 18 Aug 2003 22:31:47 -0400 |
3 |
Owen Gunden <ogunden@××××××××××××.edu> wrote: |
4 |
|
5 |
> So hypothetically, if I wanted to write a shell script that behaved |
6 |
> differently if virtual/mta was installed than if it was not, what |
7 |
> would I do? |
8 |
> |
9 |
> I'd like a command that would return a specific exit status based on |
10 |
> whether or not the virtual dependency is there. But frankly I'm |
11 |
> willing to use grep for a nice gross hack too. Tell the truth, I |
12 |
> don't even know how to do this for regular (non-virtual) packages. |
13 |
> |
14 |
> I've played around with qpkg, but with little luck. Is there any way |
15 |
> to do this with or without qpkg? |
16 |
> |
17 |
|
18 |
|
19 |
cat /var/cache/edb/virtuals ... this should give you the format |
20 |
enough to work shell magic with it :) |
21 |
|
22 |
|
23 |
//Spider |
24 |
|
25 |
|
26 |
-- |
27 |
begin .signature |
28 |
This is a .signature virus! Please copy me into your .signature! |
29 |
See Microsoft KB Article Q265230 for more information. |
30 |
end |