11-08-2007
Shell Scripts
I have a text file . Format of text file.
djss:xd:78:isdev:"test server"
this type of row. (approx 30).
I want to display like that
1. djjs@msxd testserver 2. xjfd@msxd devserver
3. 4
select any one from above choice : 1
output :database name : djjs
Server name : isdev
version: 78
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi!
I have added a line into /etc/profile which looks like-
date > $HOME/.lastloggedon
This puts a file lastloggedon into everyones directory who has logged in recently.
The trouble I am having is getting the information back out.
I was hoping there was a command using find which brought... (1 Reply)
Discussion started by: karenshaw
1 Replies
2. UNIX for Dummies Questions & Answers
Hi,
i have made a script which makes some analyses on some differnet hosts.
but i have a problem to make this script more quicker ...
i would like to enter more a one hosts in the query
(in my script are this:
Pls enter the Hostname ...
read hostname
for i in $hostname
do
echo... (5 Replies)
Discussion started by: scottl
5 Replies
3. Shell Programming and Scripting
Hi, I am not experienced in shell scripts, I hope someone can give some hint for the following problem
I have html file like this
<html>
<body>
Some stuff
More stuff
<pre>
A
B
</pre>
Still more stuff
And more
<pre>
C
D
</pre>
Additional stuff
</body> (2 Replies)
Discussion started by: ccp
2 Replies
4. AIX
Hi,
Please give me the detailed Differences between writing Unix Shell script and AIX Shell Scripts. Thanks in advance..... (0 Replies)
Discussion started by: haroonec
0 Replies
5. Shell Programming and Scripting
Hello,
I'm very very fresh with unix, and I would like to get familiar with it.
I want to know what is Shell scripting and how other programming languages connects with it.
And is there any way to learn the shell scripting, with some book and some simulator to practice on.
Thanks ahead. (2 Replies)
Discussion started by: holler1
2 Replies
6. Shell Programming and Scripting
if I run the below mentioned code, i am getting error. I dunno why. plz help me out this code runs a sql query and sends the result by email
#!/bin/ksh
#
# Purpose: - Report Workflows that have Persistence turned ON
echo "Workflow Persistence Report Started: `date '+%Y%m%d_%H%M%S'`" >>... (6 Replies)
Discussion started by: ragha81
6 Replies
7. AIX
I would like to seek some expertise of all our AIX experts on board.
1) I would like know how to get a return exit code of a command. I found that there are exist code for each and every command run in AIX but I just can't get the return code from my scripts.
A=`cp /home/abc/abc.txt... (7 Replies)
Discussion started by: kwliew999
7 Replies
8. Shell Programming and Scripting
deleted (1 Reply)
Discussion started by: zxc
1 Replies
9. UNIX for Dummies Questions & Answers
Hi,
Probably a real easy one for someone...I need to have a scheduled cp job run from crontab to copy certain files and directories to a shared NFS storage.
The script I have works fine, except I need to exclude certain directories to stop issues with symbolic links, can someone explain... (2 Replies)
Discussion started by: paul.duncalf
2 Replies
10. Shell Programming and Scripting
Hello gurus,
I have three korn shell script 3.1, 3.2, 3.3. I would like to call three shell script in one shell script.
i m looking for something like this
call 3.1;
If 3.1 = "complete" then
call 3.2;
if 3.2 = ''COMPlete" then
call 3.3;
else
exit
The... (1 Reply)
Discussion started by: shashi369
1 Replies
LEARN ABOUT DEBIAN
approx.conf
APPROX.CONF(5) File Formats Manual APPROX.CONF(5)
NAME
approx.conf - configuration file for approx proxy server
SYNOPSIS
/etc/approx/approx.conf
DESCRIPTION
Each non-blank line of the configuration file should contain a name/value pair, separated by white space. Comments start with a "#" char-
acter and continue to the end of the line.
Names that begin with the "$" character are reserved for use as configuration parameters. The following parameters are currently defined:
$cache Specifies the location of the approx cache directory (default: /var/cache/approx). It and all its subdirectories must be owned by
the approx server (see also the $user and $group parameters, below.)
$interval
Specifies the time in minutes after which a cached file will be considered too old to deliver without first checking with the remote
repository for a newer version (default: 60)
$max_rate
Specifies the maximum download rate from remote repositories, in bytes per second (default: unlimited). The value may be suffixed
with "K", "M", or "G" to indicate kilobytes, megabytes, or gigabytes per second, respectively.
$max_redirects
Specifies the maximum number of HTTP redirections that will be followed when downloading a remote file (default: 5)
$user, $group
Specifies the user and group that owns the files in the approx cache (default: approx)
$syslog
Specifies the syslog(3) facility to use when logging (default: daemon)
$pdiffs
Specifies whether to support IndexFile diffs (default: true)
$offline
Specifies whether to deliver (possibly out-of-date) cached files when they cannot be downloaded from remote repositories (default:
false)
$max_wait
Specifies how many seconds an approx(8) process will wait for a concurrent download of a file to complete, before attempting to
download the file itself (default: 10)
$verbose
Specifies whether informational messages should be printed in the log (default: false)
$debug Specifies whether debugging messages should be printed in the log (default: false)
The other name/value pairs are used to map distribution names to remote repositories. For example,
debian http://ftp.debian.org/debian
security http://security.debian.org
TCP PORT NUMBER
The port on which approx(8) listens is not specified in this file, but in /etc/inetd.conf. The default value is 9999, for compatibility
with apt-proxy(8), but it may be changed by running the command
dpkg-reconfigure approx
SEE ALSO
approx(8), approx-gc(8), inetd(8)
AUTHOR
Eric Cooper <ecc@cmu.edu>
Apr 2012 APPROX.CONF(5)