help-octave
[Top][All Lists]
Advanced

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

Re: Pipe command output in windows


From: Tatsuro MATSUOKA
Subject: Re: Pipe command output in windows
Date: Fri, 2 Oct 2009 23:59:08 +0900 (JST)

Hello

I have forgotten to cc. this mail to hep-octave.octave.org. So I will  forward 
it.

Regards

Tatsuro

--- Tatsuro MATSUOKA wrote:

> Hello
> 
> 
> --- Jim DeVore wrote:
> 
> > Thanks for your prompt help!I got the copy trick to work as you described.
> > But as for the piping, I do not quite understand your syntax.
> > If you would be willing to explain that as well, that would be fantastic!
> > -JTech
> 
> Sorry I have missed to delete reply that was almost completed.  I do not have 
> enough power to
> write 
> again to you.
> 
> I only show simple screen shot.
> 
> From cmd prompt
> 
> *********************
> d:\usr\Tatsu>cd D:\usr\Tatsu\program\Octave\test2
> 
> D:\usr\Tatsu\program\Octave\test2>dir test3.m
>  Volume in drive D has no label.
>  Volume Serial Number is ACCF-78A8
> 
>  Directory of D:\usr\Tatsu\program\Octave\test2
> 
> 2009/10/02  18:43               102 test3.m
>                1 File(s)            102 bytes
>                0 Dir(s)  50,182,217,728 bytes free
> 
> D:\usr\Tatsu\program\Octave\test2>type test3.m
> f=@(x) x./((1-x).*(1-x))-0.25*exp(20-(10000)./(450+250*x));
> %
> [x, info] = fsolve (f, 0.8)
> T=450+250*x
> 
> D:\usr\Tatsu\program\Octave\test2>octave test3.m
> 'octave' is not recognized as an internal or external command,
> operable program or batch file.
> 
> D:\usr\Tatsu\program\Octave\test2>set 
> PATH=C:\Programs\Octave\3.2.2_gcc-4.3.0\bi
> n;%PATH%
> 
> D:\usr\Tatsu\program\Octave\test2>octave test3.m
> GNU Octave, version 3.2.2
> Copyright (C) 2009 John W. Eaton and others.
> This is free software; see the source code for copying conditions.
> There is ABSOLUTELY NO WARRANTY; not even for MERCHANTABILITY or
> FITNESS FOR A PARTICULAR PURPOSE.  For details, type `warranty'.
> 
> Octave was configured for "i686-pc-mingw32".
> 
> Additional information about Octave is available at http://www.octave.org.
> 
> Please contribute if you find this software useful.
> For more information, visit http://www.octave.org/help-wanted.html
> 
> Report bugs to <address@hidden> (but first, please read
> http://www.octave.org/bugs.html to learn how to write a helpful report).
> 
> For information about changes from previous versions, type `news'.
> 
> x =  0.83633
> info = -4.4829e-007
> T =  659.08
> 
> 
> D:\usr\Tatsu\program\Octave\test2>octave test3.m > test3.txt
> 
> D:\usr\Tatsu\program\Octave\test2>type test3.txt
> GNU Octave, version 3.2.2
> Copyright (C) 2009 John W. Eaton and others.
> This is free software; see the source code for copying conditions.
> There is ABSOLUTELY NO WARRANTY; not even for MERCHANTABILITY or
> FITNESS FOR A PARTICULAR PURPOSE.  For details, type `warranty'.
> 
> Octave was configured for "i686-pc-mingw32".
> 
> Additional information about Octave is available at http://www.octave.org.
> 
> Please contribute if you find this software useful.
> For more information, visit http://www.octave.org/help-wanted.html
> 
> Report bugs to <address@hidden> (but first, please read
> http://www.octave.org/bugs.html to learn how to write a helpful report).
> 
> For information about changes from previous versions, type `news'.
> 
> x =  0.83633
> info = -4.4829e-007
> T =  659.08
> 
> D:\usr\Tatsu\program\Octave\test2>type test3.m | octave
> GNU Octave, version 3.2.2
> Copyright (C) 2009 John W. Eaton and others.
> This is free software; see the source code for copying conditions.
> There is ABSOLUTELY NO WARRANTY; not even for MERCHANTABILITY or
> FITNESS FOR A PARTICULAR PURPOSE.  For details, type `warranty'.
> 
> Octave was configured for "i686-pc-mingw32".
> 
> Additional information about Octave is available at http://www.octave.org.
> 
> Please contribute if you find this software useful.
> For more information, visit http://www.octave.org/help-wanted.html
> 
> Report bugs to <address@hidden> (but first, please read
> http://www.octave.org/bugs.html to learn how to write a helpful report).
> 
> For information about changes from previous versions, type `news'.
> 
> x =  0.83633
> info = -4.4829e-007
> T =  659.08
> 
> D:\usr\Tatsu\program\Octave\test2>type test3.m | octave > test3.txt
> 
> D:\usr\Tatsu\program\Octave\test2>type test3.txt
> GNU Octave, version 3.2.2
> Copyright (C) 2009 John W. Eaton and others.
> This is free software; see the source code for copying conditions.
> There is ABSOLUTELY NO WARRANTY; not even for MERCHANTABILITY or
> FITNESS FOR A PARTICULAR PURPOSE.  For details, type `warranty'.
> 
> Octave was configured for "i686-pc-mingw32".
> 
> Additional information about Octave is available at http://www.octave.org.
> 
> Please contribute if you find this software useful.
> For more information, visit http://www.octave.org/help-wanted.html
> 
> Report bugs to <address@hidden> (but first, please read
> http://www.octave.org/bugs.html to learn how to write a helpful report).
> 
> For information about changes from previous versions, type `news'.
> 
> x =  0.83633
> info = -4.4829e-007
> T =  659.08
> 
> **************************
> set PATH=C:\Programs\Octave\3.2.2_gcc-4.3.0\bin;%PATH%
> 
> is not required if you set PATH to bin folder of octave by control panel 
> (Windows XP).
> 
> Reference
> 
> http://www.helpwithwindows.com/WindowsXP/howto-04.html
> http://vlaurie.com/computers2/Articles/environment.htm
> http://vistaonwindows.com/environment_variables.html    
> http://ss64.com/nt/
> 
> Regards
> 
> Tatsuro
>  
> > 2009/10/1 Tatsuro MATSUOKA > 
> > > Hello
> > >
> > > One of the convenient methods is use 'quick edit mode' in the cmd screen 
> > > of
> > > octave.
> > >
> > > Please see the below
> > >
> > >
> > >
> http://www.softwaretipsandtricks.com/windowsxp/articles/124/1/Command-Prompt--Quick-edit-mode
> > >
> > > This is very useful facility on the cmd prompt.
> > >
> > > BTW
> > > In my case, the pipe works,
> > >
> > > C:\Programs\Octave\3.2.2_gcc-4.3.0\bin> echo disp("hello") | octave >
> > > Hello.txt
> > >
> > > ******Hello.txt
> > > Please contribute if you find this software useful.
> > > For more information, visit http://www.octave.org/help-wanted.html
> > >
> > > Report bugs to <address@hidden> (but first, please read
> > > http://www.octave.org/bugs.html to learn how to write a helpful report).
> > >
> > > For information about changes from previous versions, type `news'.
> > >
> > > hello
> > > **********
> > >
> > > If you don't want to carry out redirction in the octave install folder.
> > >  Please set the 'PATH'
> > > environmental variable.
> > >
> > > Regards
> > >
> > > Tatsuro
> > >
> > > Regards
> > >
> > > Tatsuro
> > >
> > > --- Jim DeVore  wrote:
> > >
> > > > Dear fellow Ocave Users,I am a College student, and would like to 
> > > > promote
> > > > Octave o my fellow engineering students, but one roadblock remains: I
> > > cannot
> > > > copy command line output under windows. I have tried all the traditional
> > > > piping methods,but cant get it working.
> > > > If you can show me how to copy command window output to a text file, 
> > > > Many
> > > of
> > > > my classmates will likely use Octave.
> > > > Thanks!
> > > > -JTech
> > > > > _______________________________________________
> > > > Help-octave mailing list
> > > > address@hidden
> > > > https://www-old.cae.wisc.edu/mailman/listinfo/help-octave
> > > >
> > >
> > >
> > > --------------------------------------
> > > Yahoo! JAPAN - Internet Security for teenagers and parents.
> > > http://pr.mail.yahoo.co.jp/security/
> > >
> > 
> 
> 
> --------------------------------------
> Yahoo! JAPAN - Internet Security for teenagers and parents.
> http://pr.mail.yahoo.co.jp/security/
> 


--------------------------------------
Yahoo! JAPAN - Internet Security for teenagers and parents.
http://pr.mail.yahoo.co.jp/security/


reply via email to

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