05-30-2018
Wrong Array...
Back in my early days, just starting at my first job where I was doing 100% UNIX...
We had a mixture of Solaris, AIX, and HPUX systems. Our most critical systems (Logistics) was running on a bunch of large HP 9000 servers. I was tasked with decommisoning one of the servers.
It was one of those arrangements where there was three cabinets in a row. One large HP 9000 on each side, and the middle was used to store the boot disks, tape drives, optical drives, etc.
Well, long story short.. I hit the power button on the wrong storage cabinet. Did a few other things... Casually walked back to my desk. It was a good 20 minutes later.
All of a sudden, people are screaming.. PROD IS DOWN.. PROD IS DOWN. I thought, great.. Another fun day....
A few minutes later, it dawned on me that the drives for the production server was in the same rack that I was decommissioning. So, I walked back down to the data center to verify... Sure enough. I hit the wrong button.
I turned the array back on, walked back to my desk, and could now login again, and everything was fine. To my surprise.. There was no fallout from this. This system just completely hung... once the storage was turned back on, it just kept on going where it left off.
These 3 Users Gave Thanks to xenix For This Post:
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi,
I wish to store $string1 in $string1array a character in each array element.
Then i wish to echo the entire array to the screen so that it reads as the normal string again.
I have been trying with the code below but does not work. Please help...
To put string into array:
... (5 Replies)
Discussion started by: rorey_breaker
5 Replies
2. Programming
I am facing a strange error while creating posix threads:
Given below are two snippets of code, the first one works whereas the second one gives a garbage value in the output.
Snippet 1
This works:
--------------
int *threadids;
threadids = (int *) malloc (num_threads * sizeof(int));
... (4 Replies)
Discussion started by: kmehta
4 Replies
3. Shell Programming and Scripting
Hi All,
I'm writing a nagios check that will see if our ldap servers are in sync...
I got the status data into a nested array, I would like to search key of each array and if "OK" is NOT present, echo other key=>values in the current array to a variable
so...eg...let take the single array... (1 Reply)
Discussion started by: zeekblack
1 Replies
4. Shell Programming and Scripting
Hi Everyone,
#!/usr/bin/perl
use strict;
use warnings;
my @test=("a;b;qqq;c;d","a;b;ggg;c;d","a;b;qqq;c;d");
would like to split the @test array into two array:
@test1=(("a;b;qqq;c;d","a;b;qqq;c;d"); and @test2=("a;b;ggg;c;d");
means search for 3rd filed.
Thanks
find the... (0 Replies)
Discussion started by: jimmy_y
0 Replies
5. Shell Programming and Scripting
Hi
I want to write a script which store all the parameters passed to the script into an array.
Once it is stored I want scan through the array and and delete those files for last month present inside the directory. The files in directory is appneded with YYYY_MM_DD.
I want to know how can I... (3 Replies)
Discussion started by: dgmm
3 Replies
6. Shell Programming and Scripting
Hi everyone
I have one question about using array in perl. let say I have several log file in one folder.. example
test1.log
test2.log
test3.log
and the list goes on..
how to make an array for this file? It suppose to detect log file in the current directory and all the log file will... (3 Replies)
Discussion started by: sayachop
3 Replies
7. Shell Programming and Scripting
I have an array and two variables as below,
I need to check if $datevar is present in $filename.
If so, i need to replace $filename with the values in the array.
I need the output inside an ARRAY
How can this be done.
Any help will be appreciated. Thanks in advance. (2 Replies)
Discussion started by: irudayaraj
2 Replies
8. Shell Programming and Scripting
Hi ! all I am just trying to check range in my datafile
pls tell me why its resulting wrong
admin@IEEE:~/Desktop$ cat test.txt
0 28.4
5 28.4
10 28.4
15 28.5
20 28.5
25 28.6
30 28.6
35 28.7
40 28.7
45 28.7
50 28.8
55 28.8
60 28.8
65 28.1... (2 Replies)
Discussion started by: Akshay Hegde
2 Replies
9. Shell Programming and Scripting
Trying to do some control flow parsing based on the index postion of an array member. Here is the pseudo code I am trying to write in (preferably in pure bash) where possible. I am thinking regex with do the trick, but need a little help.
pesudo code
if == ENDSINFIVEINTS ]]; then
do... (4 Replies)
Discussion started by: briandanielz
4 Replies
10. Shell Programming and Scripting
hello,
i need a bit of help on how to do this effectively in bash without a lot of extra looping or massive switch/case
i have a long array of M elements and a short array of N elements, so M > N always. M is not a multiple of N.
for case 1, I want to stretch N to fit M
arrayHuge
H = (... (2 Replies)
Discussion started by: f77hack
2 Replies
mt(1) General Commands Manual mt(1)
NAME
mt - magnetic tape manipulating program
SYNOPSIS
tapename] command [count]
Obsolescent
tapename] command [count]
DESCRIPTION
is used to give commands to the tape drive. If tapename is not specified, the environment variable is used; if is not defined, the default
drive is used.
winds the tape in the requested direction (forward or backward), stopping after the specified count EOF marks or records are passed. If
count is not specified, one is assumed. Each EOF mark counts as one record. When winding backwards, the tape always stops at the BOT
marker, regardless of the number remaining in count.
accepts the following commands:
Write count EOF marks.
Forward space
count files.
Forward space
count records.
Backward space
count files.
Backward space
count records.
Rewind tape.
Rewind tape and go offline.
Seek to end of data (DDS and QIC drives only).
Write count setmarks (DDS drives only).
Forward space
count setmarks (DDS drives only).
Backward space
count setmarks (DDS drives only).
Print status information about the tape drive.
Reserve tape drive for sole use by the host issuing the
command (stape or estape driver only).
Release tape drive from sole use by the host issuing the
command (stape or estape driver only).
Spacing operations (back or forward space file or record) leave the tape positioned past the object being spaced to in the direction of
motion. That is, backspacing a file leaves the the tape positioned before the file mark, forward spacing a file leaves the tape positioned
after the file mark. This is consistent with all classical usage on tapes.
WARNINGS
Only raw, no-rewind Berkeley-type devices should be specified. This type of device will not reposition the tape upon close. An example of
such a device is or See mt(7) for more details.
It is possible to wind the tape beyond the EOT marker and off the end of the reel.
A reservation may only be cleared with a release by the host that issued the original reserve. In the event that the host that holds the
reservation is no longer available, the command may be used to reclaim the device by issuing a bus device reset. See st(1M) for more
details.
The reserve/release functionality can only be issued to drives using the or driver.
EXAMPLES
Rewind the tape associated with the device file or (if legacy DSF is disabled):
FILES
Raw magnetic tape interface (stape)
Raw magnetic tape interface (estape)
Default tape interface.
If legacy DSF is disabled, the default value is
AUTHOR
was developed by the University of California, Berkeley.
SEE ALSO
dd(1), st(1M), intro(7), mt(7).
mt(1)