Re: gracebat runs in X, but not as a system call from a perl script

2007-02-23 Thread moka
Αρχικό μήνυμα από Andrew DeFaria PROBLEM solved: TOOK /usr/grace/bin/xmgrace.exe and copied it to /bin/gracebat.exe Works fine now and is consistent with the explanation that activestate does not properly interpret symlinks > > Better now, but still something is missing cygwin is under c:\c

Re: gracebat runs in X, but not as a system call from a perl script

2007-02-22 Thread Igor Peshansky
Ugh, top-posting... Reformatted. On Thu, 22 Feb 2007, moka wrote: > > On Wed, 21 Feb 2007, moka wrote: > > > > > I do startxwin to open X and then do > > > gracebat > > > this does what I want, namely produce a jpeg file > > > > > > Now if I try this for a perl script(run from X) > > > system(

Re: gracebat runs in X, but not as a system call from a perl script

2007-02-22 Thread Andrew DeFaria
[EMAIL PROTECTED] wrote: Better now, but still something is missing cygwin is under c:\cygwin e.g. c:\cygwin\bin There I see \bin\gracebat.exe->/usr/grace/bin/xmgrace.exe What is this? There is no \bin\gracebat.exe. Cygwin doesn't use backslashes in path names. So then how do you "see" thi

Re: gracebat runs in X, but not as a system call from a perl script

2007-02-22 Thread moka
Better now, but still something is missing cygwin is under c:\cygwin e.g. c:\cygwin\bin There I see \bin\gracebat.exe->/usr/grace/bin/xmgrace.exe but also the same for /bin/xmgrace.exe The script directory is c:\cygwin\mydir so in the perl script my $updir='..'; my $gracebat=$updir .'/usr/gra

Re: gracebat runs in X, but not as a system call from a perl script

2007-02-21 Thread moka
Note sure I understand what the bash solution is: I do startxwin to open an X-session, then I do bash and then run perl myscript.pl This stumbles on the same problem So if I understand you correctly, replacing "gracebat" by "C:\path_to_gracebat.exe\gracebat"(which cmd.exe would presumably unde

Re: gracebat runs in X, but not as a system call from a perl script

2007-02-21 Thread Igor Peshansky
On Wed, 21 Feb 2007, moka wrote: > I do startxwin to open X and then do > gracebat > this does what I want, namely produce a jpeg file > > Now if I try this for a perl script(run from X) > system(gracebat ) > > i.e. the exact same line that produced the right result > I get an error. > > I guess

Re: gracebat runs in X, but not as a system call from a perl script

2007-02-21 Thread Andrew DeFaria
[EMAIL PROTECTED] wrote: Forgot to say that the error message is :the system cannot execute the specified program (failure code 256) I do startxwin to open X and then do gracebat this does what I want, namely produce a jpeg file Now if I try this for a perl script(run from X) system(gracebat

Re: gracebat runs in X, but not as a system call from a perl script

2007-02-21 Thread moka
Forgot to say that the error message is :the system cannot execute the specified program (failure code 256) > > I do startxwin to open X and then do > gracebat > this does what I want, namely produce a jpeg file > > Now if I try this for a perl script(run from X) > system(gracebat ) > > i.