Hi,
I am trying to write an Archive script that should look for files older than x days, zip them and move the zip to the archive directory and delete the files that have been zipped. I am not sure how i can handle this error: "cowardly refusing to create an empty archieve".
Just wanted to know if there is any workaround for this. I did look into one of the threads but didn't find the answer so posted it here!!
Any help will be greatly appreciated!!!
Here is the code that i have written:
--------------------------------------------------
---------------------------------------------------------------
Hi,
After checking all the UNIX threads, I am able to come up with a solution so far. I am working on a shell script where it moves the files to a certain directory. The conditions to check are
1) Check if the file exists in the current directory.
2) Check if the destination directory... (2 Replies)
I can't get touch to simultaneously create three empty files file1, file2, file3. I tried:$ touch filebut all I got was one file:$ fileWhat did I do wrong? (4 Replies)
I am adding some individual files to a tar archive and would like them to be added to the archive without any directory hierarchy, even though the files themselves exist in levels of hierarchy. Unfortunately, tar seems to always preserve the directory hierarchy when it adds the files.
Here is... (2 Replies)
First and foremost - me != unix bubba.
Here is the situation. We have a box with data AND settings in the same directory path. (Data files aren't in the SAME directories as settings.) I need a script that generates a tarred-up archive of only the INI files with the directory structure. We... (2 Replies)
Plese help I need a urgent requirement.
Ex: test.log
requirement : using shell script I need to archive the log file and nil and the content of (test.log) file to 0 kb
and then in the archive folder log files are name to test.tar
test1.tar
test2.tar
EX:
/home/abc/
test.log ... (1 Reply)
Hello Guys.
Please I would like to create empty files from a list
In file1 will be the followin values, so i will like to create for each name a empty file.
file1
2191off-r0.sps
2192off-r0.sps
2193off-r0.sps
2194off-r0.sps
2195off-r0.sps
So I need to get 5 empty files.
Thanks for... (7 Replies)
Hi,
I have a test.zip archive that contains
test.zip --> (file_1.txt, file_2.txt , file_3.txt)
I need to unzip the file like this,
file_1_timestamp.txt
file_1_timestamp.trg
file_2_timestamp.txt
file_2_timestamp.trg
file_3_timestamp.txt
file_3_timestamp.trg
Could you please let me know... (7 Replies)
I need a debian 8 jessie mipsel for create packages for my vuduo(the system is identical to a Debian 8 mipsel environment).
I have some problems.
I usually use Slackware14.2+crosscompile.
For some packages (tcpdump,rsync) works without problem, for other(extundelete for example) not
So I decide... (1 Reply)
Discussion started by: Linusolaradm1
1 Replies
LEARN ABOUT OSF1
ark
ARK(1) KDE User's Manual ARK(1)NAME
ark - KDE archiving tool
SYNOPSIS
ark [-b] [-a] [-e] [-c] [-f suffix] [-p] [-t file] [-d] [-o directory] [KDE Generic Options] [Qt(TM) Generic Options]
DESCRIPTION
Ark is a program for managing various compressed file formats within KDE. Archives can be viewed, extracted, created and modified with Ark.
The program can handle various formats such as tar, gzip, bzip2, zip, rar (when the appropriate libraries or command-line programs are
installed).
OPERATION MODES
Ark can be used either as a stand-alone GUI program as well as a command-line program in order to perform some specific tasks.
If invoked without the -b (--batch) or -c (--add) options, Ark is started as a normal GUI program.
When the -b (--batch) option is used, Ark can be used to extract the contents of one or more files directly from the command-line, without
launching its GUI.
When the -c (--add) option is used, Ark prompts for files that should be added to a new archive or to an existing archive.
OPTIONS -d, --dialog
Show a dialog for specifying the options for a batch or add operation.
-o, --destination directory
Default the extraction directory to directory. If not passed, the current path is used.
Options for adding files
-c, --add
Query the user for an archive filename and add specified files to it. Quit when finished.
-t, --add-to filename
Add the specified files to filename. Create archive if it does not exist. Quit when finished.
-p, --changetofirstpath
Change the current directory to the first entry and add all other entries relative to this one.
-f, --autofilename suffix
Automatically choose a filename, with the selected suffix (for example rar, tar.gz, zip or any other supported types).
Options for batch extraction
b, --batch
Use the batch interface instead of the usual dialog. This option is implied if more than one url is specified.
-e, --autodestination
The destination argument will be set to the path of the first file supplied.
-a, --autosubfolder
Archive contents will be read, and if detected to not be a single folder archive, a subfolder by the name of the archive will be
created.
EXAMPLES
ark --batch archive.tar.bz2
Will extract archive.tar.bz2 into the current directory without showing any GUI.
ark -b -d archive.tar.bz2 archive2.zip
Will first show an extraction options dialog and then extract both archive.tar.bz2 and archive2.zip into the directory chosen in the
dialog.
ark --add-to my-archive.zip photo1.jpg text.txt
Will create my-archive.zip if does not exist and then add photo1.jpg and text.txt to it.
AUTHORS
Ark is currently maintained by Harald Hvaal haraldhv@stud.ntnu.no and Raphael Kubo da Costa kubito@gmail.com.
This man page was first written by Lauri Watts lauri@kde.org in 2005 for KDE 3.4, and was later updated in 2009 by Raphael Kubo da Costa
kubito@gmail.com.
AUTHORS
Lauri Watts <lauri@kde.org>
Author.
Raphael Kubo da Costa <kubito@gmail.com>
Author.
K Desktop Environment 2.13 (KD 2009-09-10 ARK(1)