rejetto forum

Software => HFS ~ HTTP File Server => Topic started by: Avalon on April 07, 2009, 04:52:07 PM

Title: remote control or a schedule (turn on / off)
Post by: Avalon on April 07, 2009, 04:52:07 PM
Hi all!

First of all, I really love HFS, it saved my life so many times, as I use it mainly for downloading my files at university when I left them home. Thanks for it!
I applied a strong password at the root, and I use it through https://, but I am still scared of my data winding up in wrong hands, so I would like to turn off HFS every time I am home, and I do not need it. The problem is, that I use HFS on my home file server, where my only access to it is through remote desktop.
Is there any way, to turn on / off HFS remotely, without logging in with RDC, or any way to set up a scheduling, so it turns on every day 7am, when I leave?

Thanks for any replies in advance,
Mate Gulyas
Title: Re: remote control or a schedule (turn on / off)
Post by: bacter on April 07, 2009, 06:07:28 PM
At least in XP and Vista you can use the task scheduler to start or exit HFS at selected hours.

To turn HFS on remotely, you have to use some rdc, because a not running program won't accept any commands! ;)
Title: Re: remote control or a schedule (turn on / off)
Post by: Avalon on April 07, 2009, 06:44:21 PM
At least in XP and Vista you can use the task scheduler to start or exit HFS at selected hours.

To turn HFS on remotely, you have to use some rdc, because a not running program won't accept any commands! ;)
It is running, but you can set HFS on and off with F4. I do this, so it can accept commands. :) But the scheduler is a good idea, I give it a try.
Title: Re: remote control or a schedule (turn on / off)
Post by: rejetto on April 07, 2009, 09:33:00 PM
it's easy to make a command to switch off your HFS remotely.
it's ok to add this to the template

[switchoff]
{.set ini|active=no.}

and then access http://server_address/~switchoff
but what about turning it on. you can't do it via http, because the server is off. so, how do you communicate with it?
Title: Re: remote control or a schedule (turn on / off)
Post by: Mars on April 08, 2009, 12:14:24 AM
 or into  hfs.events with an internal use
http://www.rejetto.com/forum/index.php?topic=6834.0
Title: Re: remote control or a schedule (turn on / off)
Post by: rejetto on April 08, 2009, 12:20:03 AM
i don't see how those events could help him with his needs
Title: Re: remote control or a schedule (turn on / off)
Post by: darren on May 26, 2009, 04:42:58 AM
I am running hfs (i love it) on windows 7 RC.  I use the windows task scheduler to run it at system startup, it works almost like a service.  You can also schedule a time on/off quite easily.  This is great, but the tray icon does not show up in this case.  There does not seem to be a way to access the program while the task is running (its invisible).  To make a change, i have to kill the task from task manager, manually open the program, make the change, close the program, and re-run the task.  Anyone know why this is or what can be dome about it?

Don't forget to donate.

Darren
Title: Re: remote control or a schedule (turn on / off)
Post by: MarkV on May 26, 2009, 07:33:37 AM
HFS is running in another user-context (see task manager, HFS probably runs in session 0). While in XP services still could interact with the desktop, it is impossible in Vista (security measures). HFS would need to be split in a service and a GUI part communicating over TCP (example).
Title: Re: remote control or a schedule (turn on / off)
Post by: rejetto on May 26, 2009, 10:56:06 AM
that's how i would design it if only i knew it was a server :D
http://www.rejetto.com/wiki/index.php/HFS:_History