Re: How do you turn on and off a program automatcially
All,
Even if we solve this by going for an alternative approach as to using
a text based program, we still need a method by which we can run some
curses based application
For this we can use "screen" (man screen)
Open a new terminal and then run the program
After running this program, we can use cron to send
***** kill -STOP <pid>
***** kill -CONT <pid>
change (*****) with the cron timing which seuits you. This way we can
start and stop the program at will.
On Sun, 2007-09-30 at 17:07 -0400, Celejar wrote:
> On Sun, 30 Sep 2007 21:17:57 +0300
> ndemou@gmail.com wrote:
>
> > On 9/30/07, Celejar <celejar@gmail.com> wrote:
> > > On Fri, 28 Sep 2007 17:21:16 -0400
> > > Peter Smerdon <psmerdon@magma.ca> wrote:
> > >
> > > > Sid Arth <sidster802@gmail.com> writes:
> > > >
> > > > > Hi, I am running rtorrent and I was wondering if it is possible for the
> > > > > system to turn the program off at certain times, and turn it back on at
> > > > > other times.
> > > >
> > > > You can probably use use `cron' to achieve this.
> > >
> > > I struggled for a while to figure out how to do exactly this, without
> > > success. I believe that cron does not work, since (at least some)
> > > ncurses apps insist on being run from a terminal.
> >
> >
> > usually such problems have to do with the differences of the
> > environment (bash variables) - you can customize the env. of cron to
> > overcome this problem
>
> I don't currently have rtorrent installed, but can you give a bit more
> explanation or a pointer for future reference? What differences in the
> environment do you mean? Which variables have to be modified, and to
> what values?
>
> Celejar
> --
> mailmin.sourceforge.net - remote access via secure (OpenPGP) email
> ssuds.sourceforge.net - A Simple Sudoku Solver and Generator
>
>
--
Bhasker C V
Registered Linux user: #306349 (counter.li.org)
The box said "Requires Windows 95, NT, or better", so I installed Linux.
Reply to: