Re: [Nautilus-list] Scripts: standard outputs??



On 11 Jul 2001 16:30:03 +0000, Simon A Watts wrote:
> I have just started looking at Nautilus scripts (in a rare quiet moment).
> 
> I was wondering if there is any mechanism for a script to send output to 
> some component of Nautilus, either some text window or the status bar? 
>  Where does the standard output and standard error streams go?
> 
> Could Nautilus redirect a scripts stdout to some part of itself, a text 
> display in the main window?  (Optionally, set to display if it receives 
> any non-whitespace).
> 
> For that matter, if there where pseudo devices for components (eg, 
> /dev/nautilus-statusbar, /dev/nautilus-notes)?  (These are then script 
> language independant).
> 
> Maybe there are -- doc on what Nautilus offers to scripts is pretty scarse.
nautilus script's ( I use perl most of the time ) does output to
standard output/error if nautilus is ran from a terminal ( nautilus &
), that's how I debug my simple nautilus scripts.

 

#!/bin/bash

# cat a file to standard output
cat "$1"
exit 0


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