10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi
Am having file.ksh as below
wc -l file1.txt
wc -l file2.txt
wc -l file3.txt
wc -l file4.txt
i want all the commands in this file to execute in same time
please help
Thanks in advance (1 Reply)
Discussion started by: ragu.selvaraj
1 Replies
2. Shell Programming and Scripting
I would like to execute a commands in four different servers through ssh at a single instance(simultaneously).
Below are the details with examples,
ssh user1@server1 "grep xxxx logs"
ssh user1@server2 "grep xxxx logs"
ssh user1@server3 "grep xxxx logs"
Each statement will take some... (4 Replies)
Discussion started by: Amutha
4 Replies
3. Shell Programming and Scripting
I have a program dnapars
I execute the program from command line as following:
./dnapars
The program then prompts me some message as a user menu from where I have to select a series of options in the order R U Y R. And then I copy the output file (outfile) in another result file.
I wrote the... (3 Replies)
Discussion started by: deeptisjains
3 Replies
4. Shell Programming and Scripting
Hi,
I work on a jumpserver and I wrote a script to transfer a file from source server to destination server.
#!/bin/ksh
echo "\nEnter the file name:\n"
read name
echo "\nSelect the Source server\n"
echo "1. ODS PROD "
echo "2. ODS DROPBOX"
echo "3. ODS STE"
echo "4. ODS STE DROPBOX"... (6 Replies)
Discussion started by: ajayakunuri
6 Replies
5. Solaris
Hi SSHers,
I have embedded this below code in my shell script..
/usr/bin/ssh -t $USER@$SERVER1 /usr/bin/ssh $USER2@S$SERVER2 echo uptime:`/opt/OV/bin/snmpget -r 0 -t 60 $nodeName system.3.0 | cut -d: -f3-5`
SSH to both these servers are public-key authenticated, so things run... (13 Replies)
Discussion started by: LinuxUser2008
13 Replies
6. Shell Programming and Scripting
I need to execute a command to run my script several times with varying parameters
perl ex.pl -b 130198 -e 130884 -c plot plot.txt 1_plot.txt
perl ex.pl -b 1345 -e 1308 -c plot plot.txt 2_plot.txt
perl ex.pl -b 1345567 -e 130898 -c plot plot.txt 3_plot.txt
.
.
.
100's of excutions
... (2 Replies)
Discussion started by: Lucky Ali
2 Replies
7. Shell Programming and Scripting
Hi,
I want to run these two commands one after the other.
awk 'BEGIN {OFS="\t"} {print $2}'
sort -u
rather than typing awk 'BEGIN {OFS="\t"} {print $2}' file1 > file2, then sort -u file2 > file3. Is it possible to run both commands on file1 then get output file3?
Its kinda hard for... (5 Replies)
Discussion started by: kylle345
5 Replies
8. Shell Programming and Scripting
Hi:
I have a requirement as below:
I have some standard Unix commands modified and kept them in a directory say /usr/clsh/bin. For example I have a script named "ls" kept here which is modified version of "ls" (say it always gives long listing i.e. ls -l).
When any user logs on and types... (2 Replies)
Discussion started by: ramesh_samane
2 Replies
9. Red Hat
Hi Folks,
I have a small doubt, the binary commands under /bin and /sbin as well as other path binary files, if you peek deep into that, you can find the difference in the way of normal perl programming and some commands will be like binary files. how are the commands executing like the... (3 Replies)
Discussion started by: gsiva
3 Replies
10. UNIX for Dummies Questions & Answers
how to tar to multiple tapes (1 Reply)
Discussion started by: sean dixon
1 Replies
AMREPORT(1) General Commands Manual AMREPORT(1)
NAME
amreport - generate a formatted output of statistics for an Amanda run
SYNOPSIS
amreport [ config ] [ -l logfile ] [ -f outputfile ] [ -p postscriptfile ]
DESCRIPTION
Amreport generates a summary report of an amanda(8) backup run. If no configuration name is specified, amanda.conf is read from the cur-
rent directory.
See the amanda(8) man page for more details about Amanda.
OPTIONS
config Name of the configuration to process.
[-l logfile]
Name of the log file to parse to generate the report. If a log file is not specified, it defaults to the file:
logdir/log
where logdir is the log directory defined in amanda.conf.
[-f outputfile]
Normally, amreport sends the report via e-mail to the mailto user as defined in the amanda.conf file. If outputfile is specified,
then the report is put in outputfile.
[-p postscriptfile]
Send the postscript output to the file postscriptfile instead of to the lpr(1) command. This option has an effect only if the lbl-
templ directive is specified in amanda.conf.
LABEL PRINTING
Amanda can print postscript labels describing the contents of tape(s) written in a run. The labels are designed to be folded and inserted
into the tape case along with the tape or hole punched and put in a 3-ring binder. Various label templates are provided to format data for
different tape sizes.
The information printed varies slightly between label templates due to size constraints. Labels contain one line for each host/file-system
pair and may also contain the file number on the tape, the level of the dump, the original size of the dump and the size of the (possibly
compressed) tape file.
Add the lbl-templ parameter to the tapetype definition in amanda.conf to enable labels. If you don't add this line to your tapetype defi-
nition, amreport will not print tape labels.
You may use the printer keyword in amanda.conf to print to other than the system default printer.
TEMPLATES
Amanda provides label templates for the following tape types. These are pretty generic labels and should be easy to customize for other
tape types or particular site needs.
* ExaByte 8mm tapes
* DAT 4mm tapes
* DLT tapes
* 3-ring binder
The 3-ring binder type is the most generic. It may be used to make a hardcopy log of the tapes.
SEE ALSO
amanda(8), amflush(8)
AMREPORT(1)