Active TopicsActive Topics  Display List of Forum MembersMemberlist  Search The ForumSearch  HelpHelp
  RegisterRegister  LoginLogin
PowerHome General
 PowerHome Messageboard : PowerHome General
Subject Topic: Starting and stopping a daemon .... Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
MrGibbage
Super User
Super User
Avatar

Joined: October 23 2006
Location: United States
Online Status: Offline
Posts: 513
Posted: December 02 2009 at 20:36 | IP Logged Quote MrGibbage

... on a linux server??

How would you do this? I have powerhome running at home
and I have a script running on my webserver (dreamhost,
so I only have remote access to the server--no physical
access) that pulls a picture from my webcams every 15
seconds. I would like to save some space and only have
it pulling pictures while my system is armed. So how
would I start and stop this script automatically from
powerhome? Right now I manually ssh into the server and
start and stop the daemon. But now I want to take it to
the next level. I thought of maybe letting the daemon
run ALL the time, but perhaps have as part of the script
to look for a certain file. If the file is there, grab
the pic. If not, don't grab the pic. So then all I
would have to do is figure out a way to put and remove
this special file. But perhaps there is a better way?
How would you solve this problem? Yeah, this isn't
exactly a PH problem, but ultimately however I do it, PH
is going to make it happen, so I do need to keep that in
mind.
Back to Top View MrGibbage's Profile Search for other posts by MrGibbage
 
MrGibbage
Super User
Super User
Avatar

Joined: October 23 2006
Location: United States
Online Status: Offline
Posts: 513
Posted: December 03 2009 at 23:08 | IP Logged Quote MrGibbage

I decided to just do it by having PH send an email to my
server and letting procmail do the dirty work.
Back to Top View MrGibbage's Profile Search for other posts by MrGibbage
 

If you wish to post a reply to this topic you must first login
If you are not already registered you must first register

  Post ReplyPost New Topic
Printable version Printable version

Forum Jump
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum