Hi,
How wud I script a particular log file to be compressed at a particular time and to be uncompressed after say 2 hours ?
Im on a aix 3.2 box .
file to be compressed --- > # pwd
# /zssps/sps06/slogfile
Thanks (3 Replies)
Hi All !
We have to compress a big data file in unix server and transfer it to windows and uncompress it using winzip in windows.
I have used the utility ZIP like the below.
zip -e <newfilename> df2_test_extract.dat
but when I compress files greater than 4 gb using zip utility, it... (4 Replies)
Hello dear Community,
I have a task to wrtie a script which will gzip not zipped files in a directory and itīs subdirectories. I succeeded in gzippung the directory but not the subdirectories:
#/bin/bash
#go to the directory where to zip
cd $1
#Zip unzipped files
for i in `ls | xargs... (2 Replies)
I'd really appreciate if anyone could assist me with this code
A directory with multiple subdirectories has multiple files which are timestamp'ed.
We need to
- compress files as per timestamp
- save compressed file/s in the respective folder
- delete the source files
============... (2 Replies)
Hi,
I want to write script for the last 5 files to compress.
#!/bin/sh
a= ls -ltr | awk '{print $9}' | head -5 | tail -3
echo `compress $a`
exit 0
but this was telling "not found"
please modify the script if i am wrong. (5 Replies)
#!/bin/bash
#
name=$1
type=$2
number=1
for file in ./**
do
if
then
filenumber=00$number
elif
then
filenumber=0$number
fi
tempname="$name""$filenumber"."$type"
if (4 Replies)
I need bash script that monitor folders for new pdf files and create xml file for rss feed with newest files on the list. I have some script, but it reports errors.
#!/bin/bash
SYSDIR="/var/www/html/Intranet"
HTTPLINK="http://TYPE.IP.ADDRESS.HERE/pdfs"
FEEDTITLE="Najnoviji dokumenti na... (20 Replies)
I have a bash that downloads a list and if that list has data in it then a new main directory is created (with the date) with several subdirectories (example1, example2, example3). My question is in that list there are portion of specific file types (.vcf.gz) - identifier towards the end that have... (0 Replies)
Discussion started by: cmccabe
0 Replies
LEARN ABOUT DEBIAN
pacoball
PACOBALL(8) System PACOBALL(8)NAME
pacoball - Binary package support for paco(8).
SYNOPSIS
pacoball [-bgftv] [-d DIR] [-1..9] [-a|<packages>]
pacoball -e [-ltv] [-C DIR] <pacoballs>
DESCRIPTION
By default, pacoball may be given one or more package names as arguments, and for each of those packages it creates a binary tarball
(.tar.bz2 or .tar.gz) containing all the currently installed files. For this to work the input packages have to be registered in the paco
database.
Leading slashes ('/') are stripped from the paths of the files in the tarballs.
With option -e, pacoball admits one or more previously created tarballs ("pacoballs") as arguments, and installs them into the system,
optionally logging the installation with paco.
Mandatory arguments to long options are mandatory for short options too.
GENERAL OPTIONS -t, --test
Test compressed file integrity.
-h, --help
Show usage information and exit.
-v, --verbose
Verbose output.
-V, --version
Display version information and exit.
PACKAGE CREATION OPTIONS -a, --all
Create a pacoball for each package logged in the paco database.
-d, --directory=DIR
Create the pacoballs in directory DIR (default is '.').
-b, --bzip2
Compress with bzip2 (this is the default).
-g, --gzip
Compress with gzip.
-# Set the compression level (speed/quality balance). '#' is a number between 1 (faster compression) and 9 (best compression).
--fast An alias for -1.
--best An alias for -9.
-f, --force
Force overwrite of existing output files.
PACKAGE EXTRACTION OPTIONS -e, --extract
Extract (install) the given <pacoballs>, in directory '/' by default.
-l, --log
Log the file extraction with paco(8), retrieving the appropiate package name from the name of the pacoball.
-C, --root=DIR
Extract the files into directory DIR (as the -C option in tar).
FILES
/etc/pacorc - paco configuration file
/var/log/paco - default paco log directory
WEB SITE
The latest version of pacoball should be always available at:
http://paco.sourceforge.net
COPYRIGHT
Copyright (C) 2004-2009 David Rosal <davidrr@sourceforge.net>
This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICU-
LAR PURPOSE.
SEE ALSO paco(8), pacorc(5), superpaco(8), rpm2paco(8)paco-2.0.9 28 June 2010 PACOBALL(8)