Portál AbcLinuxu, 7. května 2024 20:58
tar: Removing leading `/' from member namesa tato se později v hlášeních cronu zobrazuje a zbytečně je odesílána jako "chyba" při zálohování. Rád bych dosáhnul stavu, kdy budou hlášení cronu odesílána pouze se skutečnými chybami. Určitě jsem hledal špatně, ale man, help ani hledání na webu mi nepomohlo - umí někdo s touto banalitou poradit nebo odkázat na info. Děkuji za radu
grep -Fxv "tar: Removing leading `/' from member names"
tar(1)
-P, --absolute-names don't strip leading `/'s from file namesa pak se taky rozhodni jestli je tam chceš mít nebo ne.
-C, --directory DIR change to directory DIRTřeba například
tar czfC muj.tgz / usr
dc -e '?[...
dc -e '?[...
s vaším problémem nesouvisí, to je kolegova patička
dc
DC(1) DC(1) NAME dc - an arbitrary precision calculator SYNOPSIS dc [-V] [--version] [-h] [--help] [-e scriptexpression] [--expression=scriptexpression] [-E scriptexpression] [--initexpr=scriptexpression] [-f scriptfile] [--file=scriptfile] [file ...] DESCRIPTION Dc is a reverse-polish desk calculator which supports unlimited preci- sion arithmetic. It also allows you to define and call macros. Nor- mally dc reads from the standard input; if any command arguments are given to it, they are filenames, and dc reads and executes the contents of the files before reading from standard input. All normal output is to standard output; all error output is to standard error. A reverse-polish calculator stores numbers on a stack. Entering a num- ber pushes it on the stack. Arithmetic operations pop arguments off the stack and push the results.To co mám v patičce je nejkratší implementace výpočtu největšího společného dělitele a po spuštění je potřeba vložit dvě čísla oddělená mezerou, nebo tam dát dva otazníky a pak se mohou vložit každé zvlášť na řádku, nebo moje oblíbená metoda
dc -e '?[dSarLa%d0<a]dsax+p' <<<'357367686735399256 3691790960471891256'
Tiskni Sdílej:
ISSN 1214-1267, (c) 1999-2007 Stickfish s.r.o.