PHWinfo banniere

Titres
PORTAIL ANNUAIRE ARTICLES COMPARATEUR HÉBERGEURS DEVIS FORUMS RÉDUCTEUR D'URL
Précédent   PHWinfo > Forums Hébergement > Forum Serveur - Sécurité et techniques > linux.debian.user > cronjob problem
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
linux.debian.user debian-user@lists.debian.org.

cronjob problem

Réponse
 
LinkBack Outils de la discussion
Vieux 27/09/2007, 09h40   #1
Angela Gavazzi
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut cronjob problem

Hallo,

could someone please explain me why the following cronjob generates an empy
file when copy-pasting the command to console generates a "full" file?
It's in roots crontab created with crontab -e

00 21 * * * /usr/local/ldap/sbin/slapcat
> /var/backups/ldap/dumps/slapdump.`date +\%g\%m\%d_\%k:\%M`


Debian version is etch.

tia,

angela


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
  Réponse avec citation
Vieux 27/09/2007, 11h10   #2
Romain JACQUET
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: cronjob problem

Angela Gavazzi a écrit :
> Hallo,
>
> could someone please explain me why the following cronjob generates an empy
> file when copy-pasting the command to console generates a "full" file?
> It's in roots crontab created with crontab -e
>
> 00 21 * * * /usr/local/ldap/sbin/slapcat
>
>> /var/backups/ldap/dumps/slapdump.`date +\%g\%m\%d_\%k:\%M`
>>

>
> Debian version is etch.
>
> tia,
>
> angela
>
>
>

Maybe Crontab execution environnement is different from your
commandline environnement.
Check all varialbles like PATH,...


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
  Réponse avec citation
Vieux 27/09/2007, 12h00   #3
André Berger
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: cronjob problem

* Angela Gavazzi (2007-09-27):
> Hallo,
>
> could someone please explain me why the following cronjob generates an empy
> file when copy-pasting the command to console generates a "full" file?
> It's in roots crontab created with crontab -e
>
> 00 21 * * * /usr/local/ldap/sbin/slapcat
> > /var/backups/ldap/dumps/slapdump.`date +\%g\%m\%d_\%k:\%M`

>
> Debian version is etch.


/path/to/date

-André

--
May as well be hung for a sheep as a lamb!
Linkstation/KuroBox/HG/HS/Tera Kernel 2.6/PPC from <http://hvkls.dyndns.org>
  Réponse avec citation
Vieux 27/09/2007, 13h10   #4
Angela Gavazzi
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: cronjob problem - Solved

On Thursday 27 September 2007 12:38:59 André Berger wrote:
> * Angela Gavazzi (2007-09-27):
> > Hallo,
> >
> > could someone please explain me why the following cronjob generates an
> > empy file when copy-pasting the command to console generates a "full"
> > file? It's in roots crontab created with crontab -e
> >
> > 00 21 * * * /usr/local/ldap/sbin/slapcat
> >
> > > /var/backups/ldap/dumps/slapdump.`date +\%g\%m\%d_\%k:\%M`

> >
> > Debian version is etch.

>
> /path/to/date
>
> -André!


Thank you!
Angela


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
  Réponse avec citation
Vieux 30/09/2007, 00h30   #5
André Berger
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: cronjob problem

* Angela Gavazzi (2007-09-27):
> Hallo,
>
> could someone please explain me why the following cronjob generates an empy
> file when copy-pasting the command to console generates a "full" file?
> It's in roots crontab created with crontab -e
>
> 00 21 * * * /usr/local/ldap/sbin/slapcat
> > /var/backups/ldap/dumps/slapdump.`date +\%g\%m\%d_\%k:\%M`

>
> Debian version is etch.


/path/to/date

-André

--
May as well be hung for a sheep as a lamb!
Linkstation/KuroBox/HG/HS/Tera Kernel 2.6/PPC from <http://hvkls.dyndns.org>
..
  Réponse avec citation
Vieux 30/09/2007, 04h50   #6
André Berger
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: cronjob problem

* Angela Gavazzi (2007-09-27):
> Hallo,
>
> could someone please explain me why the following cronjob generates an empy
> file when copy-pasting the command to console generates a "full" file?
> It's in roots crontab created with crontab -e
>
> 00 21 * * * /usr/local/ldap/sbin/slapcat
> > /var/backups/ldap/dumps/slapdump.`date +\%g\%m\%d_\%k:\%M`

>
> Debian version is etch.


/path/to/date

-André

--
May as well be hung for a sheep as a lamb!
Linkstation/KuroBox/HG/HS/Tera Kernel 2.6/PPC from <http://hvkls.dyndns.org>
...
..
  Réponse avec citation
Réponse


Outils de la discussion

Règles de messages
Vous ne pouvez pas créer de nouvelles discussions
Vous ne pouvez pas envoyer des réponses
Vous ne pouvez pas envoyer des pièces jointes
Vous ne pouvez pas modifier vos messages

Les balises BB sont activées : oui
Les smileys sont activés : oui
La balise [IMG] est activée : oui
Le code HTML peut être employé : non
Trackbacks are oui
Pingbacks are oui
Refbacks are oui


Fuseau horaire GMT +1. Il est actuellement 03h59.


Édité par : vBulletin® version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC5 Tous droits réservés.
Version française #16 par l'association vBulletin francophone
PHWinfo est un site Éducation Sans Frontières
Ad Management by RedTyger
©Tous droits réservés par les parties respectives
Page generated in 0,14401 seconds with 14 queries