06-29-2013
Wow! You rock! Thanks so much for this. I've just tried it and everything works perfectly :-)
9 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hello All,
Can somebody help me with this script. I have an output file with a list of servers ips and ports. I need to be able to run this script to list all the server ips in the outfile and find out if the port is open or not.
#!/bin/sh
IFS=#;for i in $(cat portTest);
do
# check... (2 Replies)
Discussion started by: liketheshell
2 Replies
2. HP-UX
I have numerous N-class servers with internal and external disks that I need to wipe. Does anyone have any ideas to do this quick and painless. Anything other than a sledge hammer Also, do I need to be in single-user mode and if so how do I do that? Servers are running 11.11
Thanks (3 Replies)
Discussion started by: itry
3 Replies
3. Shell Programming and Scripting
Good day,
I'm new to linux environment...Is there any scripts available for me to check ports (lets say port 80 and 21) through shell with just a single commandline?
Any response is very much appreciated..
thanks (4 Replies)
Discussion started by: arsonist
4 Replies
4. Solaris
In a solaris 8 machine the native binaries
are mainly kept under /bin and /usr/bin
but some binaries i found in /usr/xpg4/bin
please can anyone tell me in a little detail what is the reason to keep the binaries in different locations
i mean /bin /usr/bin /usr/xpg4/bin
... (1 Reply)
Discussion started by: mobydick
1 Replies
5. UNIX for Advanced & Expert Users
This may seem like a silly question, but how do you iptable firewall an NFS Server tightly? I tend to use Samba much more heavily which is easy, the ports are clearly defined... but on NFS it is relying on portmapper (yuck).... so the ports may change... Is it possible to fix the NFS Server ports,... (2 Replies)
Discussion started by: humbletech99
2 Replies
6. Solaris
hi friends, we are relocating our DC and need to plan out electrical power for the new DC.
are there ways i could find the actual power consumption from my current servers ? instead of the product specs. (2 Replies)
Discussion started by: Exposure
2 Replies
7. Shell Programming and Scripting
HI all,
I want to script where all the server names will be in a text file like
server1
server2
server3 . and the script should take servernames from a text file and perform copy of files if the files are not present on those servers.after which it should take next servername till the end of... (0 Replies)
Discussion started by: joseph.dmello
0 Replies
8. Shell Programming and Scripting
How can i check if sqlldr has been installed on my AIX/UNIX mechine?
Is there any unix script to check this one out.... (0 Replies)
Discussion started by: msrahman
0 Replies
9. UNIX for Advanced & Expert Users
Hello,
I want to create a shell script that would check the file "/etc/default/kbd" for the entry KEYBOARD_ABORT=alternate on a list of SUN Solaris servers.
If this entry is not uncommented (without #) then I should get a message/error report for the host which does not have the setting... (3 Replies)
Discussion started by: mahive
3 Replies
LEARN ABOUT DEBIAN
cddb::file
CDDB::File(3pm) User Contributed Perl Documentation CDDB::File(3pm)
NAME
CDDB::File - Parse a CDDB/freedb data file
SYNOPSIS
my $disc = CDDB::File->new("rock/f4109511");
print $disc->id, $disc->all_ids;
print $disc->artist, $disc->title;
print $disc->year, $disc->genre, $disc->extd;
print $disc->length, $disc->track_count;
print $disc->revision, $disc->submitted_via, $disc->processed_by;
foreach my $track ($disc->tracks) {
print $track->number, $track->title, $track->artist;
print $track->length, $track->extd;
}
DESCRIPTION
This module provides an interface for extracting data from CDDB-format data files, as used by freedb.
It does not read data from your CD, or submit information to freedb.
METHODS
new
my $disc = CDDB::File->new("rock/f4109511");
This will create a new object representing the data in the file name specified.
id / all_ids
my $discid = $disc->id;
my @discid = $disc->all_ids;
Due to how freedb works, one CD may have several IDs associated with it. 'id' will return the first of these (not necessarily related to
the filename from which this was read), whilst 'all_ids' will return all of them.
title / artist
The title and artist of this CD. For eponymous CDs these will be identical, even if the data file leaves the artist field blank.
year
The (4-digit) year of release.
genre
The genre of this CD. This is the genre as stored in the data file itself, which is not related to the 11 main freedb genres.
extd
The "extended data" for the CD. This is used for storing miscellaneous information which has no better storage place, and can be of any
length.
length
The run time of the CD in seconds.
track_count
The number of tracks on the CD.
revision
Each time information regarding the CD is updated this revision number is incremented. This returns the revision number of this version.
processed_by / submitted_via
The software which submitted this information to freedb and which processed it at the other end.
tracks
foreach my $track ($disc->tracks) {
print $track->number, $track->title, $track->artist;
print $track->length, $track->extd;
}
Returns a list of Track objects, each of which knows its number (numering from 1), title, length (in seconds), offset, and may also have
extended track data.
Tracks may also contain an 'artist' field. If this is not set the artist method will return the artist of the CD.
SEE ALSO
http://www.freedb.org/
AUTHOR
Tony Bowden
BUGS and QUERIES
Please direct all correspondence regarding this module to:
bug-CDDB-File@rt.cpan.org
COPYRIGHT
Copyright (C) 2001-2005 Tony Bowden. All rights reserved.
This program is free software; you can redistribute it and/or modify it under
the terms of the GNU General Public License; either version 2 of the License,
or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
FOR A PARTICULAR PURPOSE.
perl v5.10.1 2005-10-04 CDDB::File(3pm)