06-30-2003
I'm sure RTM means:
tail -8 /yourdir/taper.log | mailx -s"taper log" youruser@yourcompany
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Ok i looked through quite a few posts but could not find what i was looking for so forgive me if this post can be found elese where...
I would like to use a command like tail view what users are doing in the system i have quite a few dba's that come come to my office and do work on the system... (7 Replies)
Discussion started by: bbutler3295
7 Replies
2. Shell Programming and Scripting
Not sure why this does not work in bash:
tail -f err.log |&
-bash: syntax error near unexpected token `&'
I am attempting to continuously read a file that is being updated by doing a "tail -f" on the file and piping the output to stdin which can then be read by the next shell command
Thnx (4 Replies)
Discussion started by: anuramdas
4 Replies
3. UNIX for Dummies Questions & Answers
Hi ,
I have Continuous updating log file. I want to continuously scan that file using "tail -f " and execute a shell command like "date" command when that particular keyword is detected .
I am using awk to acheive it but not suceeded so far. However when I use "cat" instead of tail -f this... (3 Replies)
Discussion started by: scott_tiger
3 Replies
4. Shell Programming and Scripting
Hi All,
How I will read the output of the tail -F command in perl.
I have text file with below contains
file1.txt
1
2
3
4
$running=1;
sub openLog($)
{
(my $log) = @_; (1 Reply)
Discussion started by: pravin27
1 Replies
5. UNIX for Advanced & Expert Users
Hi Dears,
I am using AWK script to monitor some log files. My awk will get the input from the output of tail -f LOGFILE. (tail -f LOGFILE | myawkanalyzer)
My doubt is, How can I notify, if I didn't get any output from the tail -f command. i.e) Log file stuck for some reason. I want to display... (1 Reply)
Discussion started by: sharif
1 Replies
6. Shell Programming and Scripting
The below code works to tail client.log file. but I want to copy the output into an external file /home/tail.txt
Can anyone please help.
#!/opt/bin/perl -w
open my $pipe, "-|", "/usr/bin/tail", "/var/log/client.log" or die "could not start tail on /var/log/client.log : $!";
print while... (2 Replies)
Discussion started by: sureshcisco
2 Replies
7. Shell Programming and Scripting
Hello;
Am trying to correct the formatting of tail output over ssh.
Using the following code:
echo "" > $FILE
for BOX in $SERVERS
do
echo "Processing on $BOX" |tee -a $FILE
echo "===============================" >> $FILE
sudo ssh $BOX 'TERMINAL="vt100" /usr/bin/sh -s' <... (2 Replies)
Discussion started by: delphys
2 Replies
8. Shell Programming and Scripting
Hello,
I need to tail -f a file output stream and I need to get only lines that contains "get" and "point" in the same line. It doesn't matter the order.
Then I need only the text BEFORE "point".
I have to count each line and perform other serveral actions after this has performed 3 times.... (9 Replies)
Discussion started by: Kibou
9 Replies
9. UNIX for Dummies Questions & Answers
hi guys,
I perform a sort of monitoring. I have a server running and with
tail -f | grep "Searchstring"I monitor the log-file for recent specific entries. This is ok and works fine.
Now, in addition I want to have my search results not posted into the shell but into a file. I tried:
tail... (3 Replies)
Discussion started by: LaUs3r
3 Replies
10. Shell Programming and Scripting
Redirecting the tail output fails when log rotation happens even though i have used -F. But when i tail and see the output on terminal this does not happen. Note i have also used & to execute this statement in background.
Suppose if i want to tail a file /opt/SAMPLE.txt and redirect its output... (1 Reply)
Discussion started by: CN1
1 Replies
LEARN ABOUT DEBIAN
amdump
AMDUMP(8) System Administration Commands AMDUMP(8)
NAME
amdump - back up all disks in an Amanda configuration
SYNOPSIS
amdump [--no-taper] [-o configoption...] config [host [disk...]...]
DESCRIPTION
Amdump is the main interface to the Amanda backup process. It loads the specified configuration and attempts to back up every disk
specified by the disklist(5). Amdump is normally run by cron.
The command optionally takes a set of DLE specifications (see amanda-match(7)) to narrow the DLEs that will be dumped. All disks are dumped
if no expressions are given.
If a file named hold exists in the configuration directory, amdump will wait until it is removed before starting the backups. This allows
scheduled backups to be delayed when circumstances warrant, for example, if the tape device is being used for some other purpose. While
waiting, amdump checks for the hold file every minute.
In some cases it is desirable to dump all Amanda clients to holding disk without writing anything to storage media. The --no-taper option
instructs Amanda to not start the taper, and thus enter degraded mode immediately.
See the amanda(8) man page for more details about Amanda.
OPTIONS
host [disk]*
Specify the host and disk on which the command will work -- see the description of DLE specifications in amanda-match(7).
-o configoption
See the "CONFIGURATION OVERRIDE" section in amanda(8).
EXAMPLE
Here is a typical crontab entry. It runs amdump every weeknight at 1 a.m. as user bin:
0 1 * * 1-5 bin /usr/local/sbin/amdump daily
Please see the crontab(5) or crontab(1) manual page for the correct crontab format for your system.
MESSAGES
amdump: waiting for hold file to be removed
The "hold" file exists and amdump is waiting for it to be removed before starting backups.
amdump: amdump or amflush is already running, or you must run amcleanup
Amdump detected another amdump or amflush running, or the remains of a previous incomplete amdump or amflush run. This run is
terminated. If the problem is caused by the remains of a previous run, you must execute amcleanup(8) and then rerun amdump.
EXIT CODE
The exit code of amdump is the ORed value of:
0 = success
1 = error
2 = a dle give strange message
4 = a dle failed
8 = Don't know the status of a dle (RESULT_MISSING in the report)
16 = tape error or no more tape
SEE ALSO
amanda(8), amcheck(8), amcleanup(8), amrestore(8), amflush(8), cron(8), amanda-match(7)
The Amanda Wiki: : http://wiki.zmanda.com/
AUTHORS
James da Silva <jds@amanda.org>
Stefan G. Weichinger <sgw@amanda.org>
Amanda 3.3.1 02/21/2012 AMDUMP(8)