09-01-2005
Check permissions, should be 555.
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Is there a utility or command I can use to tell the number of decimal places a number has. For instance, if the number is 432, it will give hundred as the number of decimal places. (7 Replies)
Discussion started by: Heedunk
7 Replies
2. UNIX for Dummies Questions & Answers
hi
when i want to go to previous directory by typing cd.. i get the following message
$ cd..
ksh: cd..: not found
Please help
rintingtong (2 Replies)
Discussion started by: rintingtong
2 Replies
3. Shell Programming and Scripting
Hi There,
I have a script which finds for log files and removes them if the file has changed in the last day.
The script runs fine without errors. The log file is still there. So, I decided to print the find command and run the command outside the script. Getting "Incomplete statement"
Can you... (6 Replies)
Discussion started by: funtochat2002
6 Replies
4. UNIX for Dummies Questions & Answers
When trying to copy a file in Solaris 8 it doesnt copy file or give a error. This worked 100% until the 29th. I've checked the rights and everything seems fine:
drwxrwxrwx 2 bmuser bmgroup 11776 Jan 3 10:32 spool
This is the file I want to copy:
-rwxrwxrwx 1 bmuser bmgroup ... (26 Replies)
Discussion started by: rudi.okelly
26 Replies
5. Red Hat
Hii All,
I am using openldap v2.3 on redhat El-4. When i run ldapsearch it returns all the entries. The command runs successfully. But when I run the ldapsearch with following filter option it doesnt work and immediately returns to the shell.
ldapsearch uidNumber>=2000
I've started slapd... (0 Replies)
Discussion started by: shamik
0 Replies
6. Shell Programming and Scripting
It just does the break...even though the files are not the same...
# Compare extracts
#==========================================
count=0
while (( count < 5 ))
do
(( count+=1 ))
echo "Try $count"
file1=$(ls -l /tmp/psjava.xml|... (5 Replies)
Discussion started by: sigh2010
5 Replies
7. Shell Programming and Scripting
this is my file I have written.
// My first C++ program
#include <iostream>
int main()
{
std::cout << "Hi there!" << std::endl";
std::cout << "This is my first C++ program" << std::endl";
return(0);
}
This is the error I get, why?
$ g++ first.cpp
ksh: g++: not found (1 Reply)
Discussion started by: gustave
1 Replies
8. AIX
Hi Guys,
I have a strange problem.( AIX 6.1) "vi" is not working at all..Whenever i #vi <anythin> ,, it returns the prompt back. Any clues folks?? (14 Replies)
Discussion started by: muzahed
14 Replies
9. UNIX for Dummies Questions & Answers
I am trying to print out two fields in a file using awk. So, I have got
awk -F '\t' 'NF = 2 {print $1 $2 "]"}' two.txt
in a script called what.awk
When i run this version like this - ./what.awk then it runs however I want to run the program like this
awk -f what.awk two.txt.
When I... (8 Replies)
Discussion started by: The undertaker
8 Replies
10. UNIX for Dummies Questions & Answers
Hi All,
i created the below script to move file with xml extension from one directory to another,but the mv command is not working inside the shell script,
#!/us/bin/ksh
filepath="/apps/extract"
filename="*.xml"
foldername=2191POB000_$(date +%Y%m%d%H%M%S)
mkdir -p "$filepath/$foldername"... (3 Replies)
Discussion started by: Radhas
3 Replies
LEARN ABOUT DEBIAN
rlm_dbm_parse
RLM_DBM_PARSE(8) System Manager's Manual RLM_DBM_PARSE(8)
NAME
rlm_dbm_parse - transforms simple syntax into rlm_dbm format
SYNOPSIS
rlm_dbm_parse [-c] [-d raddb] [-i inputfile] [-o outputfile] [-x] [-v] [-q] [username ...]
DESCRIPTION
rlm_dbm_parse reads a file of the syntax defined below, and writes a database file usable by rlm_dbm or edits current database.
INPUT FORMAT
rlm_dbm_parse reads a format similar to the one used by the files module. In incomplete RFC2234 ABNF, it looks like this:
entries = *entry
entry = identifier TAB definition
identifier = username / group-name
username = +PCHAR
groupname = +PCHAR
definition = (check-item ",")* LF ( *( reply-item ",") / ";" ) LF
check-item = AS IN FILES
reply-item = AS IN FILES
* need definition of username and groupname
As an example, these are the standard files definitions (files module).
DEFAULT Service-Type == Framed-User
Framed-IP-Address = 255.255.255.254,
Framed-MTU = 576,
Service-Type = Framed-User,
Fall-Through = Yes
#except who call from number 555-666
DEFAULT Auth-Type := Reject,Service-Type ==Framed-User,
Calling-Station-ID == "555-666"
#or call number 555-667
DEFAULT Auth-Type := Reject,Service-Type ==Framed-User,
Calling-Station-ID == "555-667"
To be a valid rlm_dbm input file, it should look like this:
DEFAULT Service-Type == Framed-User # (1)
Framed-IP-Address = 255.255.255.254, # comma, list cont'd
Framed-MTU = 576,
Service-Type = Framed-User,
Fall-Through = Yes #
, end of list
Auth-Type := Reject,Service-Type ==Framed-User, # (2)
Calling-Station-ID == "555-666"
; # ;, no reply items
Auth-Type := Reject,Service-Type ==Framed-User, # (3)
Calling-Station-ID == "555-667"
; # ditto
This user (the DEFAULT user) contains three entries, 1, 2 and 3. The first entry has a list of reply items, terminated by a reply item
without a trailing comma. Entries 2 and 3 has empty reply lists, as indicated by the semicolon. This is necessary to separate an empty line
(which is ignored) from the empty list. Definition Fall-Through = Yes used in order to say module to check next record. By default Fall-
Through = Yes.
OPTIONS
-d raddb
Use raddb as the radiusd configuration directory.
-i inputfile
Use file as the input file. If not defined then use standard input.
-o outputfile
Use file as the output file.
-c Create a new database (empty output file before writing)
-x Enable debug mode. Multiple x flags increase debug level.
-q Do not print statistics (quiet).
-v Print the version and exit.
-r Remove a username or group name from the database.
SEE ALSO
radiusd(8)
AUTHORS
Author:
Andrei Koulik <rlm_dbm@agk.nnov.ru>
Documentation:
Bjorn Nordbo <bn@nextra.com>
RLM_DBM_PARSE(8)