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
Test if a linux command is available with Spawn [message #86171] Wed, 16 October 2013 05:08 Go to previous message
Fabzi is currently offline  Fabzi
Messages: 305
Registered: July 2010
Senior Member
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
[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 15:36:45 PDT 2025

Total time taken to generate the page: 0.00498 seconds