[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: How do you turn on and off a program automatcially



On 10/1/07, Celejar <celejar@gmail.com> wrote:
> On Sun, 30 Sep 2007 21:17:57 +0300
> ndemou@gmail.com wrote:
> > On 9/30/07, Celejar <celejar@gmail.com> wrote:
> > > [...]
> > > 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?

if you enter the "set" command in bash you get a list of bash
variables that are accessible to all programms that you execute. This
is called "the bash environment" (see [1] for more info). A lot of
programms really need to check the values of some of these variables
to execute. Cron has only a small portion of them set so a lot of
programms fail when run from cron (can't tell if this is your specific
case though)

_____________
[1] http://tldp.org/LDP/Bash-Beginners-Guide/html/chap_03.html



Reply to: