Re: cronjob problem

2007-09-29 Thread André Berger
* 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
.



Re: cronjob problem

2007-09-29 Thread André Berger
* 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
...
..
.



Re: cronjob problem

2007-09-29 Thread André Berger
* 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
..
.



Re: cronjob problem

2007-09-27 Thread Romain JACQUET

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 [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]




Re: cronjob problem

2007-09-27 Thread André Berger
* 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



Re: cronjob problem - Solved

2007-09-27 Thread Angela Gavazzi
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 [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]