Close ROX-filer window via command line? (Solved)

For discussions about programming, programming questions/advice, and projects that don't really have anything to do with Puppy.
Post Reply
Message
Author
User avatar
Argolance
Posts: 3767
Joined: Sun 06 Jan 2008, 22:57
Location: PORT-BRILLET (Mayenne - France)
Contact:

Close ROX-filer window via command line? (Solved)

#1 Post by Argolance »

Hello,
All is in the title! I need a ROX-filer window opened during the execution of a script to be closed while quitting this script. How could this be done?
Thank you.

Regards.
Last edited by Argolance on Wed 01 Jun 2011, 06:41, edited 1 time in total.

User avatar
lithpr
Posts: 86
Joined: Thu 10 Mar 2011, 06:33

#2 Post by lithpr »

I'll be very interested in the discussion on this one! One of the difficulties with closing a ROX window in particular is that ROX-Filer seems to fork a new thread per window, so all the PIDs are the same as the pinboard. You can't just kill on the PID, or else you'll wipe out the pinboard and every other instance of ROX that's open.

User avatar
Dougal
Posts: 2502
Joined: Wed 19 Oct 2005, 13:06
Location: Hell more grotesque than any medieval woodcut

#3 Post by Dougal »

Code: Select all

rox -D $DIR
will close all Rox windows open to the directory $DIR.
What's the ugliest part of your body?
Some say your nose
Some say your toes
But I think it's your mind

User avatar
lithpr
Posts: 86
Joined: Thu 10 Mar 2011, 06:33

#4 Post by lithpr »

Dougal,

"works a treat" as Stu90 says :)

You rock!

User avatar
Argolance
Posts: 3767
Joined: Sun 06 Jan 2008, 22:57
Location: PORT-BRILLET (Mayenne - France)
Contact:

#5 Post by Argolance »

... Great! :D
Thank you Dougal!

Regards.

Lord_Solrac2
Posts: 35
Joined: Thu 23 Dec 2010, 00:58
Location: Gurabo, Puerto Rico
Contact:

#6 Post by Lord_Solrac2 »

Best way to close it;:

Code: Select all

killall rox
:3

User avatar
Dougal
Posts: 2502
Joined: Wed 19 Oct 2005, 13:06
Location: Hell more grotesque than any medieval woodcut

#7 Post by Dougal »

Lord_Solrac2 wrote:Best way to close it;:

Code: Select all

killall rox
:3
No it is not. Please don't write things you have no idea about (like how rox works).
What's the ugliest part of your body?
Some say your nose
Some say your toes
But I think it's your mind

User avatar
suttiwit123
Posts: 9
Joined: Sat 04 Jun 2011, 07:08

RE: Close ROX-filer window via command line

#8 Post by suttiwit123 »

Or you can try these command.
1. Run this:

Code: Select all

pidof rox
2. And run this (NOTE: Replace number 1 with the output of the first command that you run.):

Code: Select all

kill 1

User avatar
puppyluvr
Posts: 3470
Joined: Sun 06 Jan 2008, 23:14
Location: Chickasha Oklahoma
Contact:

#9 Post by puppyluvr »

:D Hello,
No, no ,no...
Dougal is spot on...
Used it in many a script...
If you dont know, dont comment......
Close the Windows, and open your eyes, to a whole new world
I am Lead Dog of the
Puppy Linux Users Group on Facebook
Join us!

Puppy since 2.15CE...

User avatar
L18L
Posts: 3479
Joined: Sat 19 Jun 2010, 18:56
Location: www.eussenheim.de/

Close ROX-filer window via command line? (Solved)

#10 Post by L18L »

Dougal wrote:

Code: Select all

rox -D $DIR
will close all Rox windows open to the directory $DIR.
Thanks Dougal,
I have been searching for this and tried it. (lupu525)

Code: Select all

rox -D /mnt/sda2
result see screenshot

But though it should do the same according to documentation

Code: Select all

rox --close=/mnt/sda2
did close it immediately. 8)

I am going to use this in http://www.murga-linux.com/puppy/viewtopic.php?t=69283 (next version 032) now :)

Edited v 032 uploaded
Attachments
rox_close_dir.png
rox -D /mnt/sda2
(9.02 KiB) Downloaded 866 times

Post Reply