Hi, I would like to know how to go about writing a script to compress & deleate old files from /var/mqm/log file system.
I am a complete beginner and would love it if someone could actually give me the code for this.
Thank you. (4 Replies)
Let's say I wanna Delete all the files of a certain extension exept one.
How do I do it?
I know, if you wanna delete them all is with the command:
find ~/ -type f -iname '*.txt' -exec rm {} ~/ ';'
But If I want to keep an Specific file? Let's say I wanna keep 'Log.txt'. How do I do it? (1 Reply)
ENVIROMENT
Linux: Fedora Core release 1 (Yarrow)
iPlanet: iPlanet-WebServer-Enterprise/6.0SP1
Log Path: /usr/iplanet/servers/https-company/logs
I have iPlanet log rotation enabled rotating files on a daily basis.
The rotated logs are NOT compressed & are taking up too much space.
I... (7 Replies)
I'm sure this has been asked many times, but a search didn't turn up a definitive best method for this (if there ever is such a thing).
I have been using rsync to back up my main data directory, but I have accumulated a large number of older backups that I don't need. All of the files I don't... (14 Replies)
I want to use my script to get any file then delete it once it transfers to my side , I manage to create below script to generate "list" file which contains all file names in "10.10.1.1" then I made "a.out" file which contains the commands that I want to run it on "10.10.1.1" to get & delete the... (2 Replies)
Hi
My directory structure is as below.
dir1, dir2, dir3
I have the list of files to be deleted in the below path as below.
/staging/retain_for_2years/Cleanup/log $ ls -lrt
total 0
drwxr-xr-x 2 nobody nobody 256 Mar 01 16:15 01-MAR-2015_SPDBS2
drwxr-xr-x 2 root ... (2 Replies)
ENVIROMENT
Linux: RHEL 6.4
Log Path: /usr/iplanet/servers/https-company/logs
Log Format: user.log.03-15-2015
I have log4j log rotation enabled rotating files on a daily basis.
The rotated logs are NOT compressed & are taking up too much space.
I need a script that will run daily that... (1 Reply)
Hi All,
I want to fetch the files based on .done file and display the .csv files and Wil take .csv files for processing.
1.I need to display the .done files from the directory.
2.next i need to search for the .Csv files based on .done file.then move .csv files for the one directory
... (2 Replies)
Hi All,
Do you have any sample script,
- auto get file from SFTP remote server and delete file in remove server after downloaded.
- only download specify filename
- auto upload file from local to SFTP remote server and delete local folder file after uploaded
- only upload specify filename
... (3 Replies)
Hello All,
Since i'm relatively new in shell script need your guidance.
I'm copying files manually based on a specific word in a file name and its extension and then moving it into some destination folder.
so if filename contains hyr word and it has .md and .db extension; it will move to TUM/HYR... (13 Replies)
Discussion started by: prajaktaraut
13 Replies
LEARN ABOUT DEBIAN
cdde.xml
cdde.xml(5)cdde.xml(5)NAME
cdde.xml - Configuration file for cdde
DESCRIPTION
When cdde is run for the first time, an example xml configuration file (~/.cdde.xml) is created for you:
<?xml version="1.0"?>
<cdde delay="5000000">
<drive path="/dev/cdrom">
<audio command="echo An audio cd was inserted."/>
<data command="echo A data cd was inserted."/>
<dvd command="echo A dvd was inserted."/>
<vcd command="echo A vcd was inserted."/>
<svcd command="echo A svcd was inserted."/>
<blank command="echo A blank cdr/dvdr was inserted."/>
<mixed command="echo A mixed (audio/data) cd was inserted."/>
</drive>
</cdde>
This default file is not very useful, and so I suggest you to edit it to your needs before running cdde again. You may add as many drive
entries, or commands as you like. If multiple entries are found for a type of disc then all entries will be run in the order they are
found.
The specific device in use can be passed to the command with one of the following special tags:
%dev% - is replaced with the device name of the cdrom that
just had a disc inserted
%mnt% - is replaced with the listed mount point for the
cdrom that just had a disc inserted
Note: %mnt% is determined through your fstab (usually located in /etc) file. If you do not have a listing for each <drive> in the fstab
this will cause problems.
This way, you can tell your video player which device to use when playing a VCD, for example.
EXAMPLE
This is an example of ~/.cdde.xml file:
<?xml version="1.0"?>
<cdde delay="5000000">
<drive path="/dev/cdroms/cdrom0"/>
<audio command="xmms %mnt%"/>
<data command="mount %mnt%"/>
<dvd
command="xterm -iconic -e mplayer -fs -xineramascreen 1 -dvd 1"/>
<vcd
command="xterm -iconic -e mplayer -fs -xineramascreen 1 -vcd 1"/>
<svcd
command="xterm -iconic -e mplayer -fs -xineramascreen 1 -vcd 1"/>
<blank command="gcombust"/>
<mixed command="mount %mnt%"/>
</drive>
</cdde>
FILES
~/.cdde.xml
SEE ALSO cdde(1)AUTHORS
Eric Lathrop <eric@ericlathrop.com>
Stanislav Maslovski <stanislav.maslovski@gmail.com>
WEBSITE
For the latest release of cdde, see:
http://cdde.sourceforge.net/
Eric Lathrop 0.3.1 cdde.xml(5)