04-28-2010
Well I wound up doing a bunch of things...
1 - it looks at smb.conf to pull the domain name
2 - takes that name and resolves it to the IP's in A record then attempts to ping each IP in there
3 - Takes each IP and does wbinfo -I to see if it has a netbios name record
4 - Does a dig against each IP to check for a kerberos SRV record
Then basically does a bunch of cross compares with all the files generated to tell me which IPs can be reached and which cant. Plus which IPs are in the A record but have no Kerberos record. etc etc.
Thus far it works pretty well.
9 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I need an if statement that recognizes whether files fitting a certain pattern exist in the current directory. Is this syntax valid:
if ; then
...
fi
assuming that zero="0" and star="*". Is there a better way to write it? (3 Replies)
Discussion started by: mharley
3 Replies
2. Programming
hey , everyone. I have a few questions about pieces of code and was wondering if someone could tell me what exactly they did or if they are even valid.
bool1 && bool2 || bool3 <---in what order do these get processed?
if (! isdigit(c)) <---What does this do?
i = j % 3; <---what does this do?... (4 Replies)
Discussion started by: bebop1111116
4 Replies
3. Shell Programming and Scripting
I am trying to write a bash script. I am able to do simple things like pass arguments, assign variables and echo the results. However, when I try to declare and array or anything a little more complicated I get
': not a valid identifier
Here is my code so far:
#!/bin/bash
echo start t... (7 Replies)
Discussion started by: script123
7 Replies
4. Programming
#include <iostream>
#include<stdio.h>
using namespace std;
class a
{
public:
int xx;
a()
{
cout << "in CONS a \n";
}
~a()
{
cout << "in DES a \n";
}
}; (1 Reply)
Discussion started by: crackthehit007
1 Replies
5. Shell Programming and Scripting
Experts,
In a script i get the following error:
The specified substitution is not valid for this command
Do you have any idea what is wrong with it?
TITLE="Code Checker" # Script Titel #
EXT="_UA99" # Eind van dirnaam #
FILE="job.dat" # Zoekbestandsnaam #
SEARCH="returncode 0" #... (1 Reply)
Discussion started by: klaasjan
1 Replies
6. Homework & Coursework Questions
Could someone help me by midnight tonight!!!
Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted!
1. The problem statement, all variables and given/known data:
Insert a reference to the Bourne shell as the command... (0 Replies)
Discussion started by: cody007
0 Replies
7. UNIX for Dummies Questions & Answers
Hello every one,
Is this a valid tar statement ?
tar cv /dev/rmt/0 /etc
tar cx /dev/rmt/0 /opt
tar c /dev/rmt/0
and what is there effect ?
Thanks in advance. (3 Replies)
Discussion started by: drdigital_m
3 Replies
8. UNIX for Dummies Questions & Answers
This is my task:
The argument enter on the command line is a first and last name ( for example: "John Smith").
If the argument is a validly formatted name, you display The "name enter" is valid to standard out.
If the argument is not a validly formated name, you display The "name enter" is... (1 Reply)
Discussion started by: TheRealNapsta
1 Replies
9. Shell Programming and Scripting
Hi
I have Unix shell script that invokes PL/SQL procedure.
The batch job when executed terminated with the error message:-unlimited: The specified number is not valid for this command.Please let me know what is the root cause of the issue and how to fix the issue.
Thanks (1 Reply)
Discussion started by: moonkhan1
1 Replies
LEARN ABOUT DEBIAN
record
record(1) General Commands Manual record(1)
NAME
record - records *.wav files
SYNOPSIS
record [ options ]
DESCRIPTION
record records *.wav files in CD quality (i.e. 44100 Hz, 16bit, stereo). It has a input level meter, which might be useful for sound trou-
ble shooting (check if the mixer settings ok for recording from the TV card etc.)
OPTIONS
-h display help text
-o file
basename for the output file(s), a number and the .wav extension are added by record. Default is "record".
-i dev mixer control. This should be the one where you can adjust the record level for your audio source. Default is "line". "mic" and
"igain" are good candidates too. Best way to figure is to start your favorite mixer tool and check out which one works ...
-m dev set mixer device. Default is "/dev/mixer".
-d dev set audio device. Default is "/dev/dsp".
-r rate
set sample rate. Default is 44100.
-p sec peak seconds (number of seconds which should be scanned for the volume maximum). This affects both peak level display and level
triggered recording (see below). Default is 1.5 seconds.
record can also be used non-interactive:
-c enable console (non-interactive) mode.
-v be verbose (console mode only).
-t mm:ss
Limit the record time (console mode only). By default record records until stopped by a signal (by typing ^C for example).
-s size
Limit the file size (console mode only). record will continue with a new file once the limit is reached.
-n num Limit the file count (console mode only). record will stop recording after num files.
-l Enable level triggered recording (console mode only) with the default trigger level (1000).
-L level
Enable level triggered recording with the specified trigger level.
If level triggered recording is active, record will start and stop recording depending on the signal strength. Recording will be started
if the signal strength is above the trigger level (1000/32768 => around 3%). Recording will be stopped if the signal is below the trigger
level for some time (1.5 seconds by default, the -p switch changes this).
AUTHOR
Gerd Knorr <kraxel@bytesex.org>
(c) Gerd Knorr record(1)