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

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



On Mon, 1 Oct 2007 09:26:55 -0400
"Douglas A. Tutty" <dtutty@porchlight.ca> wrote:

> On Mon, Oct 01, 2007 at 02:59:41PM +0300, ndemou@gmail.com wrote:
> > 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.
> > > >
>  
> > 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)
> 
> What if you have cron run su - [user]?  That should set up a login
> environment.

I tried (using at) 'su - username mc' and received a mail stating:

su: must be run from a terminal

> Doug.

Celejar
--
mailmin.sourceforge.net - remote access via secure (OpenPGP) email
ssuds.sourceforge.net - A Simple Sudoku Solver and Generator



Reply to: