read defines them, setting them for every line read. It takes the variable NAME, not the variable itself, which is why its read -r VARNAME and notread -r $VARNAME
Try putting it in with the email, like:
Code:
mailx -s "password for $USERID" EMAIL <<EOF
To: $EMAIL
From: someone@myemailserver
Subject: Automatic password
Your automatically generated password is $PASS
This email can contain as many lines as you want
etc
etc
EOF
p.s. Do not indent the email contents to make them look prettier in the script, it won't work right if you indent it, especially the ending EOF. That has to be at the literal beginning of the line to properly end the here-document.
Hello people
I need to find a way to generate a file that contains the names of all *.jpg files that were generated after a specific date
The search should start in my current folder and recursively search inner folders
It would be best to list the file names one below the other in the output... (3 Replies)
Hi Expert,
I have some confusing to generate report from the log file as shown below:
filename :test1.log
start_time date end_time number code
P 000029.621 20070823 000029 12134567890 111111111111 00 0 000 003... (4 Replies)
Im trying to come up with a way to automate moving logs as they generate from one server to another. Anyone have script or idea how most simply to get it done ? want to get this working so dont have to monitor and move these logs during the evening. Thanks for any ideas
-Vinman (2 Replies)
Is there a tool that can diff a directory and generate a change list of files in that directory based on a previous snapshot on the directory?
For example
/etc/a.txt:changed
/etc/b.txt:removed
/etc/c.txt:added
Thanks! (1 Reply)
Hi, I'm newbie in Bash scripting.
Here is scenario I've a file which containslist of 100 mailgroup and in a directory i have 100 files with each group's respective mail addresses.
I'd like to make one CSV file with this information as follows.
consolidated files with
mailid,groupname.
... (7 Replies)
I copied all JPEGs from my laptop to an external drive using
find . -name "*.jpg" -exec cp '{}' ./media/Backup/pictures \;
And then deleted all of them from my laptop.
Now, I realize that I need the folder path of all the original JPEGs as the path has the important information.
I dont... (1 Reply)
Hi.
I'm new on this forum and I need if possible someone to help me with one script.
The script should act like this:
- should be run by crontab and have next parameters:
script_name $par1 $par2 $par3 $par4
where script will search in dir $par1 for files with mask $par2 and if number of... (2 Replies)
Dear Gents,
Please I need your help... I need small script :) to do the following.
I have a thousand of files in a folder produced daily.
I need first to merge all files called. txt (0009.txt, 0010.txt, 0011.txt) and and to output a resume of all information on 2 separate files in csv... (14 Replies)
Hello,
I have 2 tables (first file with colon separated, second file comma separated) like below:
Please note that the matching number (kind of primary key) is a number and is NOT unique. It is 2nd column in table1 and 4th column in table2.
# cat table1
vgbpjdata1:80
vgbpjdata2:50... (6 Replies)
i need my script1.sh to generate /tmp/temp.txt with full permissions i.e
-rwxrwxrwx 1 user1 users 23 Dec 16 10:52 /tmp/temp.txtmore script1.sh
umask 666
echo "hello">/tmp/temp.txt
But the script1.sh generates temp.txt with different permissions as shown below.
-rwxr-xr-x 1 user1 users... (6 Replies)
Discussion started by: mohtashims
6 Replies
LEARN ABOUT OPENSOLARIS
svnserve.conf
svnserve.conf(5) File Formats Manual svnserve.conf(5)NAME
svnserve.conf - Repository configuration file for svnserve
SYNOPSIS
repository-path/conf/svnserve.conf
DESCRIPTION
svnserve.conf controls the behavior of the svnserve daemon on a per-repository basis. It is located in the conf subdirectory of the repos-
itory.
The overall structure of the file is the same as the structure of Subversion user configuration files. At the top level are sections,
which are specified by words in square brackets; inside each section are variable definitions of the form "variable = value". Lines begin-
ning with '#' are ignored. svnserve.conf currently uses only one section named "general", and supports the following variables:
anon-access = none|read|write
Determines the access level for unauthenticated users. write access allows all repository operations. read access allows all opera-
tions except committing and changing revision properties. none access allows no access. The default level is read.
auth-access = none|read|write
Determines the access level for authenticated users, using the same access levels as above. The default level is write.
password-db = filename
Sets the location of the password database. filename may be relative to the repository conf directory. There is no default value.
The password database has the same overall format as this file. It uses only one section "users"; each variable within the section is
a username, and each value is a password.
realm = realm-name
Sets the authentication realm of the repository. If two repositories have the same password database, they should have the same
realm, and vice versa; this association allows clients to use a single cached password for several repositories. The default realm
value is the repository's uuid.
EXAMPLE
The following example svnserve.conf allows read access for authenticated users, no access for anonymous users, points to a passwd database
in the same directory, and defines a realm name.
[general]
anon-access = none
auth-access = read
password-db = passwd
realm = My First Repository
The file "passwd" would look like:
[users]
joeuser = joepassword
jayrandom = randomjay
SEE ALSO svnserve(8)ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+--------------------+-----------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+--------------------+-----------------+
|Availability | SUNWsvn |
+--------------------+-----------------+
|Interface Stability | Committed |
+--------------------+-----------------+
NOTES
Source for Subversion is available on http://opensolaris.org.
svnserve.conf(5)