lilypond-devel
[Top][All Lists]
Advanced

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

Re: Patchy up and running now


From: James
Subject: Re: Patchy up and running now
Date: Mon, 5 Mar 2012 10:49:45 +0000

Hello,

On 5 March 2012 10:32, David Kastrup <address@hidden> wrote:
> James <address@hidden> writes:
>
>> Hello,
>>
>> On 5 March 2012 09:41, David Kastrup <address@hidden> wrote:
>>> James <address@hidden> writes:
>>
>>>>
>>>> I cant seem to get cron jobs to run on my LilyDev - I've done all the
>>>> cron.allow etc. I was wondering (if anyone knows immediately) if
>>>> stating the command in cron requires anything special if using two
>>>> concatenated commands.
>>>>
>>>> I.e. I run cd /home/james/lilypond-git && python
>>>> /home/james/patchy/lilypond-patchy-staging.py which works at the CLI
>>>> but not when I enter that literally in cron. I tried surrounding it in
>>>> " ' " but that didn't seem to make any difference.
>>>
>>> What is your complete cron line?  You are aware that the PATH variable
>>> is set to a quite basic path?
>>
>> It was
>>
>> 15 * * * * cd /home/james/lilypond-git && python
>> /home/james/patchy/lilypond-patchy-staging.py
>
> Hopefully in one line.

yes :)


>
> Where does it get the LILYPOND_GIT variable?  Is it set elsewhere in the
> cronfile?  If not, you need to write something like
> LILYPOND_GIT=/home/james/lilypond-git python ...
> instead of just python ...

That's set in my .profile or .bashrc - cannot remember off hand -
LilyDev has this set and I know I use echo $LILYPOND_GIT it reports
back /home/james/lilypond-git. The python scripts also 'complain' if
you don't have it set, they check and report back, so again I know
from that perspective it all works.

Don't waste too much of your own time David, I just wanted to make
sure that running two commands in cron didn't need some special
'qualifier' or that I should use ';' instead of '&&' (although i know
the difference).

I'll try to figure it out.

-- 
--

James



reply via email to

[Prev in Thread] Current Thread [Next in Thread]