help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: system command


From: Paul Kienzle
Subject: Re: system command
Date: Thu, 17 May 2001 13:49:05 +0100
User-agent: Mutt/1.2.5i

This Fails for me to.

>From the shell, the following works: 

        $ sh -c ./testscript.sh 

Octave isn't doing anything funny, just a system() call.  The following 
C program works:

        main() { system("./testscript.sh"); }

No idea.

- Paul


On Thu, May 17, 2001 at 01:28:05PM +0200, Jan-Mark Batke wrote:
> Hi Paul.
> 
> Paul Kienzle <address@hidden> writes:
> 
> > It works for me.  Try the following:
> > 
> >     pkienzle:~/octave$ export JUNK=5
> >     pkienzle:~/octave$ octave
> 
> [...]
> 
> >     systemoctave:1> system("echo $JUNK")
> >     5
> >     ans = 0
> >     octave:2> 
> 
> [...]
> 
> Yes, works here, too. Now, try the following:
> 
> ,----[ testscript.sh ]
> | #! /bin/bash
> | latex testfile.tex
> `----
> 
> and 
> 
> ,----[ testfile.tex ]
> | \documentclass[10pt,draft]{article}
> | \begin{document}
> | I am a \LaTeX ed file.
> | \end{document}
> `----
> 
> This gives 
> 
> ,----
> | octave:4> system('./testscript.sh')
> | This is TeX, Version 3.14159 (Web2C 7.3.1)
> | I can't find the format file `latex.fmt'!
> | ans = 1
> | octave:5>
> `----
> 
> Maybe its not the environment but something else and more
> teTeX-related. BTW I'm using Debian R2.1.
> 
> Jan-Mark
> -- 
> .- Dipl.-Ing. Jan-Mark Batke -- TU Berlin·Secretary FT 5-1 .
>  Phone: ++49 30 314-2 45 78     Fachgebiet Fernmeldetechnik     
>  Fax:   ++49 30 314-2 25 14     (Telecommunications Group)      
>  http://www-ft.ee.tu-berlin.de/~batke ------.¸.·¸.·´¯`·.¸.·.
>  
>                                         
> 



-------------------------------------------------------------
Octave is freely available under the terms of the GNU GPL.

Octave's home on the web:  http://www.octave.org
How to fund new projects:  http://www.octave.org/funding.html
Subscription information:  http://www.octave.org/archive.html
-------------------------------------------------------------



reply via email to

[Prev in Thread] Current Thread [Next in Thread]