[Samba] smbclient write default to stderr?

kurt weiss input.maillists at kwnet.at
Tue Sep 23 07:30:53 GMT 2003


=================================================================================
clitar.c 764:
if (tar_noisy) {
	DEBUG(0, ("%12.0f (%7.1f kb/s) %s\n",
		(double)finfo.size, finfo.size / MAX(0.001, (1.024*this_time)),
				finfo.name));
		}

clitar.c 830:
if (tar_noisy) {
	DEBUG(0,("                directory %s\n", cur_dir));
}


seem's to be correct.
by default tar_noisy=true
i looked at vers. 2.2.8a there's the same.
=================================================================================
try "-q" switch to turn it off.


Pavel Lisy schrieb:

> V Út, 23. 09. 2003 v 08:52, kurt weiss píše:
> 
>>[... ]volume pass -U user -d0 -Tc /dev/tape0 > /dev/null 2>&1
>>linux basics...
> 
> Yes, I know this, but I want redirect stdout to file and see only stderr output 
> (in mail from cron daemon)
> 
> Right example is:
> 
> smbclient //comp-32/volume pass -U user -d0 -Tc /dev/tape0 >
> /tmp/backuped_files.log
> 
> and this is in crontab, so any stderr output I will receive by mail. I
> am able watch correct function of backup script with error messages in
> email only.
> 
> 
>>Pavel Lisy schrieb:
>>
>>>Hi
>>>
>>>I have problem with smbclient in samba3 rc2, rc4. 
>>>When I start tar backup with it:
>>>
>>>smbclient //comp-32/volume pass -U user -d0 -Tc /dev/tape0 > /dev/null
>>>[2003/09/23 08:27:46, 0] client/clitar.c:do_tar(830)
>>>                  directory \Kart-32\
>>>[2003/09/23 08:27:46, 0] client/clitar.c:do_tar(830)
>>>                  directory \Kart-32\mairs\
>>>[2003/09/23 08:27:46, 0] client/clitar.c:do_tar(830)
>>>                  directory \Kart-32\mairs\Kart-32\
>>>[2003/09/23 08:27:46, 0] client/clitar.c:do_tar(830)
>>>                  directory \Kart-32\mairs\Kart-32\mairs\
>>>[2003/09/23 08:27:46, 0] client/clitar.c:do_tar(830)
>>>                  directory
>>>\Kart-32\mairs\Kart-32\mairs\world_atlas_H4D\
>>>[2003/09/23 08:27:46, 0] client/clitar.c:do_tar(830)
>>>                  directory
>>>\Kart-32\mairs\Kart-32\mairs\world_atlas_H4D\pr_2mil\
>>>[2003/09/23 08:27:46, 0] client/clitar.c:do_tar(830)
>>>                  directory
>>>\Kart-32\mairs\Kart-32\mairs\world_atlas_H4D\pr_2mil\a_out\
>>>[2003/09/23 08:27:46, 0] client/clitar.c:do_tar(830)
>>>                  directory
>>>\Kart-32\mairs\Kart-32\mairs\world_atlas_H4D\zdroj\
>>>[2003/09/23 08:27:46, 0] client/clitar.c:do_tar(830)
>>>                  directory \statistika\
>>>[2003/09/23 08:27:46, 0] client/clitar.c:do_atar(764)
>>>         33792 ( 1833,3 kb/s)
>>>\statistika\mairs2002_atlas_stat_021209.xls
>>>[2003/09/23 08:27:46, 0] client/clitar.c:do_atar(764)
>>>         33792 ( 1833,3 kb/s)
>>>\statistika\mairs2002_atlas_stat_021220.xls
>>>[2003/09/23 08:27:46, 0] client/clitar.c:do_atar(764)
>>>         33792 ( 1650,0 kb/s)
>>>\statistika\mairs2002_atlas_stat_030113.xls
>>>[2003/09/23 08:27:46, 0] client/clitar.c:do_atar(764)
>>>         42496 ( 2441,2 kb/s)
>>>\statistika\mairs2002_atlas_stat_030213.xls
>>>[2003/09/23 08:27:46, 0] client/clitar.c:do_atar(764)
>>>         49664 ( 1564,5 kb/s)
>>>\statistika\mairs2002_atlas_stat_030313.xls
>>>...
>>>
>>>it is writing all listing to stderr instead to stdout. I have searched
>>>whole documentation (man, google, ...) but I didn't found solution.
>>>
>>>It was right in version 2.0.x (if I remember correctly). I have script
>>>which use it and in previous version of samba it worked correctly.
>>>
>>>Do anybody known solution?
>>>
>>>Pavel
>>>




More information about the samba mailing list