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
RESTOR(8) System Manager's Manual RESTOR(8)
NAME
restor - incremental file system restore
SYNOPSIS
restor key [ argument ... ]
DESCRIPTION
Restor is used to read magtapes dumped with the dump command. The key specifies what is to be done. Key is one of the characters rRxt
optionally combined with f.
f Use the first argument as the name of the tape instead of the default.
r or R The tape is read and loaded into the file system specified in argument. This should not be done lightly (see below). If the key is
R restor asks which tape of a multi volume set to start on. This allows restor to be interrupted and then restarted (an icheck -s
must be done before restarting ).
x Each file on the tape named by an argument is extracted. The file name has all `mount' prefixes removed; for example, /usr/bin/lpr
is named /bin/lpr on the tape. The file extracted is placed in a file with a numeric name supplied by restor (actually the inode
number). In order to keep the amount of tape read to a minimum, the following procedure is recommended:
Mount volume 1 of the set of dump tapes.
Type the restor command.
Restor will announce whether or not it found the files, give the number it will name the file, and rewind the tape.
It then asks you to `mount the desired tape volume'. Type the number of the volume you choose. On a multivolume dump the recom-
mended procedure is to mount the last through the first volume in that order. Restor checks to see if any of the files requested
are on the mounted tape (or a later tape, thus the reverse order) and doesn't read through the tape if no files are. If you are
working with a single volume dump or the number of files being restored is large, respond to the query with `1' and restor will read
the tapes in sequential order.
If you have a hierarchy to restore you can use dumpdir(8) to produce the list of names and a shell script to move the resulting
files to their homes.
t Print the date the tape was written and the date the file system was dumped from.
The r option should only be used to restore a complete dump tape onto a clear file system or to restore an incremental dump tape onto this.
Thus
mkfs /dev/hp0a 4807
restor r /dev/hp0a
is a typical sequence to restore a complete dump. Another restor can be done to get an incremental dump in on top of this.
A dump followed by a mkfs and a restor is used to change the size of a file system.
FILES
/dev/rmt1 default file name
rst* temporary files
SEE ALSO
dump(8), dumpdir(8), mkfs(8)
DIAGNOSTICS
There are various diagnostics involved with reading the tape and writing the disk. There are also diagnostics if the i-list or the free
list of the file system is not large enough to hold the dump.
If the dump extends over more than one tape, it may ask you to change tapes. Reply with a newline when the next tape has been mounted.
Dump tapes made before the new ondisc directory structure will be converted automatically by restor .
BUGS
There is redundant information on the tape that could be used in case of tape reading problems. Unfortunately, restor does't use it.
3rd Berkeley Distribution RESTOR(8)