PDA

View Full Version : Nautilus script in terminal



dignick
June 27th, 2007, 11:04 AM
I've made a small nautilus script which works great, but I need to see its output in a terminal when it runs. How can I do this?
Thanks.

Nem Chua
June 27th, 2007, 11:28 AM
Could you invoke gnome-terminal to open an xterm and outup there? (and, would it stay open once your script ends?)

Or could you use pidof( 8 ) to identify a running terminal (is it safe if you have several terminals running at the same time?)

Brucevdk
June 27th, 2007, 11:41 AM
I've made a small nautilus script which works great, but I need to see its output in a terminal when it runs. How can I do this?
Thanks.

EDIT: I assumed you needed this for debugging purposes, if not well then this really won't help you much :)

You can use the following command from the terminal (this starts up a Nautilus browser that doesn't conflict with the previous one because of the different temporary directory):


mkdir /tmp/nautilus-testing; TMPDIR=/tmp/nautilus-testing nautilus --no-desktop ~

Any output generated by your script will be sent to the terminal.