i'm not looking for anything that deals with "if-then" scripts.
i'd like something simple on how to run a series of processes. for example the following:
1. ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-current/tar_files/
2. lcd /
3. get pkgsrc.tar.gz
4. bye
5. cd /usr
6. rm -rf pkgsrc
7. cd... (3 Replies)
Hi,
I am a beginner in unix shell scripting.
I wanted simple information like
1- How to know what are the number of command line options given for the script file?
2- How to check if a variable value is interger or string?
3- How to use awk to replace value of a variable
For example I... (5 Replies)
I am new to scropting and I am just trying to work on a few simple things....
Using sh I want to do something similar to the follwoing run a simple command like a dig then I want it to get the server that it is authorotative and return it to me saying somehting like xx.xx is authorotative. I am... (3 Replies)
this is my script....
SQL> select * from dba_profiles
2 where resource_name in ('FAILED_LOGIN_ATTEMPTS','PASSWORD_LOCK_TIME')
3 order by profile;
and this is the output...
PROFILE RESOURCE_NAME RESOURCE... (2 Replies)
Hi there,
I was trying to add a line of text in the middle line of a file.
I have counted the lines in the file, and then I divide it into 2, after that I am stuck on how am I suppose to append the line on that file? When I tried to use this command 'second line >> filename' it appends it at... (3 Replies)
CPAN provide xml::simple module which can be used to generate XML files.
can i use this module in shell scripting? how? plzz give me an example to generate xml file using this module . you can also use some other module..
BUT SHELL SCRIPTING SHOULD ONLY BE USED (4 Replies)
echo "what is your username?"
read username
echo $username
echo /home/$username
$backup="backup"
$restore="restore"
#
#
if
then
echo "No username provided"
else
echo "hi $username would you like to backup or restore?"
read userrequest
echo $userrequest
if
then
... (4 Replies)
1. The problem statement, all variables and given/known data:
An argument example:
../path/cse/lab3/remove
Right now, it's printing out all the directory and files in 'lab3'.
I want it to print out all the files in 'remove'.
I'm not sure how to do that. (I want to use a for loop)
2.... (2 Replies)
(Apologies for any typos.)
Well hands up those who have been in the following situation(s):-
Your partner, (in my case the missus), sees that you are messing
with your machine and says something like, "can you keep an eye
on the dinner, I am going out shopping", and you look up glazed
eyed... (3 Replies)
Discussion started by: wisecracker
3 Replies
LEARN ABOUT REDHAT
squid
squid(8) System Manager's Manual squid(8)NAME
squid - proxy caching server
SYNOPSIS
squid [ -dhsvzCDFNRVYX ] [ -f config-file ] [ -[ au ] port ] [ -k signal ]
DESCRIPTION
squid is a high-performance proxy caching server for web clients, supporting FTP, gopher, and HTTP data objects. Unlike traditional
caching software, squid handles all requests in a single, non-blocking, I/O-driven process.
squid keeps meta data and especially hot objects cached in RAM, caches DNS lookups, supports non-blocking DNS lookups, and implements nega-
tive caching of failed requests.
squid supports SSL, extensive access controls, and full request logging. By using the lightweight Internet Cache Protocol, squid caches
can be arranged in a hierarchy or mesh for additional bandwidth savings.
squid consists of a main server program squid, a Domain Name System lookup program dnsserver, some optional programs for rewriting requests
and performing authentication, and some management and client tools. When squid starts up, it spawns a configurable number of dnsserver
processes, each of which can perform a single, blocking Domain Name System (DNS) lookup. This reduces the amount of time the cache waits
for DNS lookups.
squid is derived from the ARPA-funded Harvest Project http://harvest.cs.colorado.edu/
This manual page only lists the command line arguments. For details on how to configure squid see the file /etc/squid/squid.conf, the FAQ
included with the distribution and the documentation at the squid home page http://www.squid-cache.org
OPTIONS -a port
Specify HTTP port number (default: 3128).
-d level
Write debugging to stderr also.
-f file
Use the given config-file instead of /etc/squid/squid.conf
-h Print help message.
-k reconfigure | rotate | shutdown | interrupt | kill | debug | check | parse
Parse configuration file, then send signal to running copy (except -k parse) and exit.
-s Enable logging to syslog.
-u port
Specify ICP port number (default: 3130), disable with 0.
-v Print version.
-z Create swap directories
-C Do not catch fatal signals.
-D Disable initial DNS tests.
-F Don't serve any requests until store is rebuilt.
-N No daemon mode.
-R Do not set REUSEADDR on port.
-V Virtual host httpd-accelerator.
-X Force full debugging.
-Y Only return UDP_HIT or UDP_MISS_NOFETCH during fast reload.
FILES
/etc/squid/squid.conf
The main configuration file. You must initially make changes to this file for squid to work. For example, the default configura-
tion does not allow access from any browser.
squid version 2.0 squid(8)