Re: Problem with open and rm

2011-03-17 Thread Barrie Stott
On 16 Mar 2011, at 18:42, Greg Wooledge wrote: > On Wed, Mar 16, 2011 at 10:54:15AM +, Barrie Stott wrote: >> The script that follows is a cut down version of one that came from >> elsewhere. >> >> #!/bin/bash >> >> cp /tmp/x.html /tmp/$$.html >> ls /tmp/$$.html >> [ "$DISPLAY" ] && open /

Re: Problem with open and rm

2011-03-17 Thread Chet Ramey
On 3/17/11 3:55 AM, Barrie Stott wrote: > Eric Blake suggested using '[ "$DISPLAY" ] && open <(cat /tmp/x.html)' so > that rm > is not needed. I liked this but it failed with some error message and sleep > worked. It didn't work because LaunchServices could not find the right application to ope