Wed 21 Mar 2007 01:21:20 PM UTC, original submission:
Hello Olivier,
For all jailkit versions it isn't possible to log error messages from the jailkit utilities in scripts because the utilities don't log error messages to stderror!
When always
reproducible yes
how:
---------------------------------------------------------------
root@william-laptop:/home/william# jk_cp /blah /blah 2>logfile
ERROR: /blah is not a directory
Usage: /usr/sbin/jk_cp [OPTIONS]
-h --help : this help screen
-v, --verbose : show what is being copied
-f, --force : overwrite existing files
-k, --hardlink : use hardlinks if possible
root@william-laptop:/home/william# cat logfile
root@william-laptop:/home/william#
root@william-laptop:/home/william# jk_cp /blah /blah 1>logfile
root@william-laptop:/home/william#
root@william-laptop:/home/william# cat logfile
ERROR: /blah is not a directory
Usage: /usr/sbin/jk_cp [OPTIONS]
-h --help : this help screen
-v, --verbose : show what is being copied
-f, --force : overwrite existing files
-k, --hardlink : use hardlinks if possible
---------------------------------------------------------
With kind regards,
William van de Velde
-unavailable-
cobradevil
|