Calling shell commands?

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Calling shell commands?

stefano-franchi
This may be a very naive question, but is there any simple way to call
an external shell command from VW running on Linux or MacOsX? I looked
in the Unix- and Mac- subclasses of ExternalInterface but there does
not seem to be any such facility.
All I am trying to do is to launch an external program (GnuPlot) to
work on a VW-generated data file.

Cheers,

Stefano





__________________________________________________
Stefano Franchi
Department of Philosophy                  Ph:  (64)  9 373-7599 x83940
University Of Auckland Fax: (64) 9 373-8768
Private Bag 92019 [hidden email]
Auckland
New Zealand

Reply | Threaded
Open this post in threaded view
|

Re: Calling shell commands?

Reinout Heeck
Stefano Franchi wrote:
> This may be a very naive question,

Naive questions are welcome here :-)

> but is there any simple way to call
> an external shell command from VW running on Linux or MacOsX? I looked
> in the Unix- and Mac- subclasses of ExternalInterface but there does
> not seem to be any such facility.

See the class side of UnixProcess.
For example inspect the result of:

  UnixProcess shOne: 'ls -l'



Reinout
-------

Reply | Threaded
Open this post in threaded view
|

Re: Calling shell commands?

stefano-franchi

On May 28, 2006, at 6:03 PM, Reinout Heeck wrote:

> Stefano Franchi wrote:
>> This may be a very naive question,
>
> Naive questions are welcome here :-)
>
>> but is there any simple way to call
>> an external shell command from VW running on Linux or MacOsX? I looked
>> in the Unix- and Mac- subclasses of ExternalInterface but there does
>> not seem to be any such facility.
>
> See the class side of UnixProcess.
> For example inspect the result of:
>
>   UnixProcess shOne: 'ls -l'
>

That is it! Thanks Reinhout.

Stefano


__________________________________________________
Stefano Franchi
Department of Philosophy                  Ph:  (64)  9 373-7599 x83940
University Of Auckland Fax: (64) 9 373-8768
Private Bag 92019 [hidden email]
Auckland
New Zealand