Hi,
Can anyone please help me: i'm trying to read a file with directory-names , then go to that directory and read another (output) file to perform some tasks per line (second read line in the part of script below).
The problem is that after the nested while loop has finished, the first while... (7 Replies)
HELLO all :),
I have been trying to use a simple while loop to read a file " templist", line by line and perform an action. See the code below. The reason for not using a while read line loop is the for the use of the if condition that wouldn't work. I would appreciate some ideas as this has... (2 Replies)
Hi All,
How can we use read line using the index value of a FOR loop?
eg:
pt_mstr,pt_status,8
pt_mstr,pt_buyer,8
pt_mstr,pt_sfty_stk,8
pt_mstr,pt_ord_pol,3
pt_mstr,pt_capacity,8
pt_mstr,pt_plan_ord,3
pt_mstr,pt_ord_mult,8
From this file i want to read the line2, 3 and 4 only using a FOR... (3 Replies)
Hi I'm writing a bash script which will read an input file and look for occurrences of the current user ($USER) executing the script. When i find the occurrence of the username I take that line and append it to a file with a line number and bracket display next to line.
The input file has been... (12 Replies)
Hi
I am using while loop, below, to read lines from a very large file, around 400,000 rows. The script works fine until around line 300k but then starts giving incorrect result.
I have tried running the script with a smaller data set and it works fine. I made sure to include the line where... (2 Replies)
I have written a script to read the file line by line.
It is reading and printing the lines.
But it is coming out of loop before reading last line.
So I am not able to print last line.
How do I solve it. (6 Replies)
Hi
As a newbe in scripting, i struggle hard with my first script.
What i want to do is, bringing data of two files together.
file1:
....
05/14/12-04:00:00 41253 4259 5135 5604 5812 5372
05/14/12-04:10:00 53408 5501 6592 7402 7354 6639
05/14/12-04:20:00 58748 6037 7292 8223... (13 Replies)
I'm looking for some help in figuring why my little bit of code will not process any entries other then the first one in my list.
while read line ;do
hostname=${line//\"}
a=`ssh user@$hostname uptime;echo $?`
if ];then
dt=`date`
touch... (6 Replies)
Based on text file:
PATH:/media/hdd/Media/Video/title1 FILE:/media/cache/281662-14.jpg
PATH:/media/hdd/Media/Video/title2 FILE:/media/cache/281662-15.jpg
PATH:/media/hdd/Media/Video/title3 FILE:/media/cache/281662-16.jpg
PATH:/media/hdd/Media/Video/title4 FILE:/media/cache/281662-17.jpg... (12 Replies)
while read -a line; this is not working in ksh. what is the equivalent of this in ksh.
read: -a: unknown option (2 Replies)
Discussion started by: archana25
2 Replies
LEARN ABOUT DEBIAN
webcit
WEBCIT(8) Citadel.org WEBCIT(8)NAME
webcit - Citadel Servlet Engine.
SYNOPSIS
webcit [-i ip_addr] [-p http_port] [-t tracefile] [-T Templatedebuglevel] [-c] [-f] [-d] [-s] [remotehost [remoteport] ]
DESCRIPTION
WebCit (the binaries name is webcit) is the Citadel Servlet engine. It can operate with Citserver on another box, but it can't operate
without.
OPTIONS
SwitchResult
-hPATH Specify the home directory eg. -h/usr/local/citadel not adding a leading / will make the path relative to the compiletime path.
Needed for running several webcit/citadel instances at the same host
-d Run as a daemon; fork watcher process.
-DPATH Run as a daemon but create a pid file at PATH eg. -D/var/run/webcit.pid
-iIP_ADDR
Specify IP address to listen on as web server eg -i192.168.9.1; default is 0.0.0.0
-pPORT Specify port to listen on eg. -p80; default is 2000
-tPATH Specify trace file (where to put the log file) eg -t/var/log/webcit
-T VAL 0 (default; recommended for production systems) 1: Parse template on each request .TP -xVAL How much info to put in the trace file
(or to stdout) eg -x9
-f Follow X-Forwarded-For: headers.
-c Use a server cookie.
-s use SSL (turns the -p default to 443)
remotehost
if the citserver lives on another box, its name / ip (remember to add your webserver IP to the citadel servers public_clients - Con-
figfile.); else the path to the unix-domain-socket. Defaults to the compiled in unix domain socket
remoteport
If you want to connect to citserver via TCP specify its port here; usualy 504
DEFAULTS
The default for remotehost is to connect localy via Unix Domain Socket. The default TCP port is 504. webcit will open Port 2000 serving
HTTP requests and bind 0.0.0.0 if not other specified.
FILES
The location of the files may vary depending on configure options. .TP /usr/share/citadel-webcit/static// WebCits template files
/usr/share/citadel-webcit/static.local// Your customized
templates
/usr/share/tinymce/www// the TinyMCE
[http://tinymce.moxiecode.com/] Javascript Editor
/etc/init.d/webcit/
The initscript usually used to start this binary. Add Options here
/etc/default/webcit/
Parameters to /etc/init.d/webcit/ in the LHFS ified installations dpkg-reconfigurecitadel-webcitwillmodifythisfile.
HISTORY
1998 - Now the Uncensored Communication Group
webcit 2008-9-4 WEBCIT(8)