delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2007/02/21/03:50:41

X-Spam-Check-By: sourceware.org
Message-ID: <1172047813.45dc07c528fc4@easymail-old.hol.gr>
Date: Wed, 21 Feb 2007 10:50:13 +0200
From: moka AT hol DOT gr
To: cygwin AT cygwin DOT com
Subject: gracebat runs in X, but not as a system call from a perl script
MIME-Version: 1.0
User-Agent: Internet Messaging Program (IMP) 3.2.2
X-Virus-Status: Clean
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

I do startxwin to open X and  then do 
gracebat <parameters> 
this does what I want, namely produce a jpeg file

Now if I try this for a perl script(run from X)
system(gracebat <parameters>)

i.e. the exact same line that produced the right result
I get an error.

I guess the reason is that I am using the activestate perl instead of the
cygwin
 perl; anyway there were reasons for that, not sure if valid or not[the reason
 was getting DBD::Oracle to work, which was a huge pain].
So I guess "system" to perl is whatever system Activestate was installed for,
i.e. Windows.
 The question is:
Is it possible to get around this?
Can I tweak the system command so that it executes  gracebat(but
 otherwise use Activestate, e.g.  for Oracle DBI queries?


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019