04-08-2009
Hi vidyadhar85,
Thanks! Got it working! =)
9 More Discussions You Might Find Interesting
1. Post Here to Contact Site Administrators and Moderators
They appear to be turned on, I entered mine in. The check boxes are all checked. And yet, no sigs? (4 Replies)
Discussion started by: l008com
4 Replies
2. UNIX for Dummies Questions & Answers
I am thankful for this site and for the many links provided. I have been going through one of the tutorials, but as I try some things, they don't seem to work.
I am wondering if there is something I need first before being able to use a tutorial (like version number (HP-UX) or how I am getting... (1 Reply)
Discussion started by: arungavali
1 Replies
3. Programming
I use FreeBSD,and use signal,like follows:
signal(SIGHUP,sig_hup);
signal(SIGIO,sig_io);
when I run call following code,it can run,but I find a puzzled question,it should print some information,such as printf("execute main()") will print execute main(),but in fact,printf fuction print... (2 Replies)
Discussion started by: konvalo
2 Replies
4. Programming
Following code is detecting solaris daytime,when I run it,I can't get any result,code is follows:
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#define BUFFSIZE 150
int main(){
... (2 Replies)
Discussion started by: konvalo
2 Replies
5. Programming
I use Solaris 10, I use following code:
#include <signal.h>
int main(void){
printf("----------testing-----------");
if(signal(SIGUSR1,sig_usr)==SIG_ERR)
err_sys("can't catch SIGUSR1");
for(;;)
pause();
sig_user(int signo){
.....
}
when I run above code,it print nothing... (3 Replies)
Discussion started by: konvalo
3 Replies
6. HP-UX
Hello all!
I have problem in hp-ux 11.11 in awk
I want to grep sar -d 2 1 only 3 column, but have error in awk in hp-ux 11.11
Example:
#echo 123 234 | awk '{print $2}'
123 234
The situattions in commands bdf | awk {print $5}' some...
In hp-ux 11.31 - OK!
How resolve problem (15 Replies)
Discussion started by: ostapv
15 Replies
7. Solaris
Hi,
I installed solaris 10 x86 on my local system. it was working fine. today when i started the system, it started up without any problem. when i tried to open the terminal it didn't open any terminal.
Plz help me (0 Replies)
Discussion started by: malikshahid85
0 Replies
8. Programming
I want copy Files:
But cp don't work:
shell_exec("cp ".$pfad." ".$genzone);
shell_exec("cp ../Chrysanthemum.jpg ../test");
Whats wrong? (3 Replies)
Discussion started by: Linuxmann
3 Replies
9. Shell Programming and Scripting
Hello:
I can't get equivalence classes to work in globs or when passing them to tr. If I understood correctly, matches e, é, è, ê, etc. But when using them with utilities like tr they don't work. Here's an example found in the POSIX standard:
I decided to create the aforementioned files in... (9 Replies)
Discussion started by: Cacializ
9 Replies
AMTOC(8) System Administration Commands AMTOC(8)
NAME
amtoc - generate TOC (Table Of Contents) for an Amanda run
SYNOPSIS
amtoc [-a] [-i] [-t] [-f file] [-s subs] [-w] [--] logfile
DESCRIPTION
Amtoc generates a table of contents for an Amanda run. It's a perl script (if you don't have perl, install it first!).
OPTIONS
-a
The output file name will be label-of-the-tape.toc in the same directory as logfile.
-i
Display help about amtoc.
-t
Generate the output in tabular form.
-f file
Write the output to a file ('-' for stdout).
-s subs
Evaluate the output file name from subs, with $_ set to label-of-the-tape. The -a option is equivalent to -s 's/$_/.toc/'.
-w
Separate tapes with form-feeds and display blank lines before totals.
--
Marks the last option so the next parameter is the logfile.
logfile
(use '-' for stdin)
OUTPUT FORMAT
The standard output has five fields separated by two spaces:
# Server:/partition date level size[Kb]
0 daily-05: 19991005 - -
1 cuisun15:/cuisun15/home 19991005 1 96
2 cuinfs:/export/dentiste 19991005 1 96
...
103 cuisg11:/ 19991005 0 4139136
103 total: - - 16716288
In tabular format (-t), this would look like:
# Server:/partition date lev size[Kb]
0 daily-05: 19991005 - -
1 cuisun15:/cuisun15/home 19991005 1 96
2 cuinfs:/export/dentiste 19991005 1 96
...
103 cuisg11:/ 19991005 0 4139136
103 total: - - 16716288
USAGE
The easiest way to use it is to run amtoc right after amdump in the cron job:
amdump daily ; logdir=`amgetconf daily logdir` ; log=`ls -1t $logdir/log.*.[0-9] | head -1` ; amtoc -a $log
which will generate /usr/local/etc/amanda//daily/tape_label.toc. You may also want to call amtoc after an amflush.
SEE ALSO
amanda(8), amdump(8), amflush(8), amgetconf(8)
The Amanda Wiki: : http://wiki.zmanda.com/
AUTHORS
Nicolas Mayencourt <Nicolas.Mayencourt@cui.unige.ch>
University of Geneva/Switzerland
Stefan G. Weichinger <sgw@amanda.org>
Amanda 3.3.1 02/21/2012 AMTOC(8)