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
BSCAN(8) Network backup, recovery and verification BSCAN(8)
NAME
bscan - Bacula's 'Scan tape'
SYNOPSIS
bscan [options] bacula-archive
DESCRIPTION
The purpose of bscan is to read (scan) a Bacula Volume and to recreate or update the database contents with the information found on the
Volume. This is done in a non-destructive way. This permits restoring database entries that have been lost by pruning, purging, deleting,
or a database corruption problem.
Normally, it should not be necessary to run the bscan command because the database is self maintaining, and most corrupted databases can be
repaired by the tools provided by the database vendors. In addition, if you have maintained bootstrap files during backups, you should be
able to recover all your data from the bootstrap file without needed an up to date catalog.
bscan command.
OPTIONS
A summary of options is included below.
-? Show version and usage of program.
-b bootstrap
Specify a bootstrap file.
-c config
Specify configuration file.
-d nn Set debug level to nn.
-dt Print timestamp in debug output.
-m Update media info in database.
-D Specify the driver database name (default: NULL)
-n name
Specify the database name (default: bacula)
-u username
Specify database username (default: bacula)
-P password
Specify database password (default: none)
-h host
Specify database host (default: NULL)
-t port
Specify database port (default: 0)
-p Proceed inspite of I/O errors.
-r List records.
-s Synchronize or store in Database.
-S Show scan progress periodically.
-v Verbose output mode.
-V volume
Specify volume names (separated by '|')
-w dir Specify working directory (default from conf file)
SEE ALSO
bls(8), bextract(8).
AUTHOR
This manual page was written by Jose Luis Tallon <jltallon@adv-solutions.net>, for the Debian GNU/Linux system (but may be used by others).
Kern Sibbald 26 November 2009 BSCAN(8)