comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Test if a linux command is available with Spawn
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: Test if a linux command is available with Spawn [message #86209 is a reply to message #86171] Thu, 17 October 2013 09:25 Go to previous messageGo to previous message
chris_torrence@NOSPAM is currently offline  chris_torrence@NOSPAM
Messages: 528
Registered: March 2007
Senior Member
On Wednesday, October 16, 2013 6:08:51 AM UTC-6, Fabien wrote:
> Hi IDLers,
>
>
>
> I want to write a clipboard copy/paste function with IDL on Linux
>
> systems. This is really straightforward with xclip. I just need to know
>
> if the system I am working on has xclip installed. Based on
>
> cgHasImageMagick, I could do:
>
>
>
> IDL> Spawn, 'xclip -version', result, error_result
>
>
>
> But xclip returns the version in the STDERR stream:
>
>
>
> IDL> print, result
>
>
>
> IDL> print, error_result
>
> xclip version 0.12 Copyright (C) 2001-2008 Kim Saunders et al.
>
> Distributed under the terms of the GNU GPL
>
>
>
> This ok for me, but how to be sure that this is the case on all linux
>
> systems?
>
>
>
> Is there a "more general way" to do this?
>
>
>
> Thanks a lot,
>
>
>
> Fabien

Hi Fabien,
If you are just looking to copy/paste text (not images or files), and you can wait until IDL 8.3, we are adding routines to provide access to the system clipboard (text only) on all platforms.
Cheers,
Chris
VIS
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: NaN problem in integer arrays
Next Topic: Where does catalyst call the catEventDispatcher?

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 17:28:25 PDT 2025

Total time taken to generate the page: 0.00455 seconds