* John McCreesh <[EMAIL PROTECTED]> [030219 16:15]: > When I double-click on a URL in an email in my client (Sylpheed), I want: > > - if phoenix is not running, start it and display the URL > - if phoenix is already running, show the URL in a new tab or window > > I can do either one or the other, not both. Apologies for the completely > off-topic posting, but has anyone solved this little puzzle?
I think this came from someone on this list, in almost this same form: #!/bin/bash URL="$@" PHOENIX=/usr/local/phoenix/phoenix $PHOENIX -remote "ping()" # $? = false if running, true if not if [ $? = 0 ] ; then $PHOENIX -remote openURL"($URL,new-tab)" else $PHOENIX $URL fi exit Set the absolute address of your phoenix in the third line, and place it somewhere in your path. Mine is in /usr/local/bin and is named phoenix It works here. -- Jan Wilson, SysAdmin _/*]; [EMAIL PROTECTED] Corozal Junior College | |:' corozal.com corozal.bz Corozal Town, Belize | /' chetumal.com & linux.bz Reg. Linux user #151611 |_/ Network, PHP, Perl, HTML ------------------------------------------------------- This SF.net email is sponsored by: SlickEdit Inc. Develop an edge. The most comprehensive and flexible code editor you can use. Code faster. C/C++, C#, Java, HTML, XML, many more. FREE 30-Day Trial. www.slickedit.com/sourceforge _____________________________________________________________________ Ltsp-discuss mailing list. To un-subscribe, or change prefs, goto: https://lists.sourceforge.net/lists/listinfo/ltsp-discuss For additional LTSP help, try #ltsp channel on irc.freenode.net