Re: Cron restart csak stoppol de nem indit ujra

2006-01-13 bef zés Zidarics Zoltan
Hello,
Lebukott! 
Nem volt beallitva egy korny. valtozo. 
Tanulsag, a cron nem allitja be a user environment-et, amikor atkapcsol. :(

2006. január 12. 11.13 dátummal [EMAIL PROTECTED] ezt írta:
> On Thu, 12 Jan 2006, Zidarics Zoltan wrote:
> [...]
>
> > A syslog-ban latszik, hogy elindul a script a megadott idoben, de semmi
> > mas hibauzenet nincs.
> >
> > Hogy szoktak cron-t debugolni?
>
> Az indító scriptbe tegyél egy 'set -x' parancsot, akkor látszódni fog,
> hogy mi fut le a scriptből, hátha segít. Egyébként általában környezeti
> változó problémák szoktak lenni, pl. más a PATH, amikor cron-ból fut a
> script, mint amikor command line-ból, stb.
>
>   Bye,NAR

-- 
udv,

Zoltan Zidarics programmer
PTE University Pecs, Hungary
icq: 43288694
_
linux lista  -  linux@mlf.linux.rulez.org
http://mlf2.linux.rulez.org/mailman/listinfo/linux


Re: Cron restart csak stoppol de nem indit ujra

2006-01-12 bef zés Zidarics Zoltan
Hello,
Koszi, kiprobalom, de most utana neztem milyen set opciok vannak es talaltam 
benne egy set -e parancsot, ami az elso hibanal kilepest allit be!


2006. január 12. 11.13 dátummal [EMAIL PROTECTED] ezt írta:
> On Thu, 12 Jan 2006, Zidarics Zoltan wrote:
> [...]
>
> > A syslog-ban latszik, hogy elindul a script a megadott idoben, de semmi
> > mas hibauzenet nincs.
> >
> > Hogy szoktak cron-t debugolni?
>
> Az indító scriptbe tegyél egy 'set -x' parancsot, akkor látszódni fog,
> hogy mi fut le a scriptből, hátha segít. Egyébként általában környezeti
> változó problémák szoktak lenni, pl. más a PATH, amikor cron-ból fut a
> script, mint amikor command line-ból, stb.
>
>   Bye,NAR

-- 
koszi,

Zoltan Zidarics programmer
PTE University Pecs, Hungary
icq: 43288694
_
linux lista  -  linux@mlf.linux.rulez.org
http://mlf2.linux.rulez.org/mailman/listinfo/linux


Re: Cron restart csak stoppol de nem indit ujra

2006-01-12 bef zés attila . rajmund . nohl
On Thu, 12 Jan 2006, Zidarics Zoltan wrote:
[...]
> A syslog-ban latszik, hogy elindul a script a megadott idoben, de semmi mas 
> hibauzenet nincs. 
> 
> Hogy szoktak cron-t debugolni?

Az indító scriptbe tegyél egy 'set -x' parancsot, akkor látszódni fog,
hogy mi fut le a scriptből, hátha segít. Egyébként általában környezeti
változó problémák szoktak lenni, pl. más a PATH, amikor cron-ból fut a
script, mint amikor command line-ból, stb.

Bye,NAR
-- 
"Beware of bugs in the above code; I have only proved it correct, not 
 tried it."
_
linux lista  -  linux@mlf.linux.rulez.org
http://mlf2.linux.rulez.org/mailman/listinfo/linux