10-16-2008
Code is in C.
The code is very huge..
But here is a very small portion of code to read the file..
if ((cnf = fopen(zl->MlConfFile, "r")) == NULL) {
zl->warn(zl, LOG_ERR, "Failed to open multilevel library config file '%s'",
zl->MlConfFile);
return -1;
}
while(!feof(cnf)) {
/* Scan first line, hopefully containing the name of a node */
if (fgets(buf, MAXSTRBUF, cnf) == NULL) {
if (!feof(cnf)) /* Get rid of warning when EOD */
zl->warn(zl, LOG_ERR,
"Failed to read from multilevel config file '%s' %s",
zl->MlConfFile, strerror(errno));
break;
}
i++;
...
...
..
...
}
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
I am running AIX 4.3 and network printing setup with HP Jetdirect. I would like to be able to send the same printout to both of the network printers at the same time. They are both PCL
data stream. I have tried to make this work by linking the two print que, by the results are unpredictable.
Is... (1 Reply)
Discussion started by: sjk303
1 Replies
2. Shell Programming and Scripting
Hello,
I have an awk command that searches and replaces. I have multiple searches, but I do not want to do them one after the other. Is there a way in awk to run search/replace at the same time.
thanks, (3 Replies)
Discussion started by: ctcuser
3 Replies
3. UNIX for Dummies Questions & Answers
Hi!
I need to start a program at several hosts in the network at the same time. Starting time difference should be no more than several milliseconds. What is the best way to do that?
Thanks! (5 Replies)
Discussion started by: harjar
5 Replies
4. Solaris
Hi Folks,
I would like to monitor multipath IO on solaris for write and read operations.
Does "sar -d" include multipath IO information along with other block devices ?
Thanks,
Faizan. (0 Replies)
Discussion started by: sifaizan
0 Replies
5. Linux
Hi,
I am creating a progress bar for file upload for which I have CGI script which copies the data and depending on certain bytes it increments the progress bar. Here, I am writing the incremented value to a file which is read by Ajax at server end. However, here I want to ask that, is it... (18 Replies)
Discussion started by: xs2punit
18 Replies
6. Shell Programming and Scripting
I have a txt file with several columns and i want to peform an operation on two columns and output it to a new txt file .
file.txt
900.00000 1 1 1
500.00000
500.00000
100000.000
4
4
1.45257346E-07 899.10834 ... (4 Replies)
Discussion started by: shashi792
4 Replies
7. Shell Programming and Scripting
I have 5 scripts, basicly do the same thing. Use expect and telnet to devices.
First set the variables and the script as follow
spawn telnet $ipaddr
expect "Username:"
send -- "$usuario\r"
expect "Password:"
send -- "$password\r"
send -- "\r"
send -- "\r"
send -- "copy running-config... (6 Replies)
Discussion started by: robonet
6 Replies
8. UNIX for Dummies Questions & Answers
I just registered today and started unix about a month ago.
I'm trying to make a script where I can add commands or text to the end of files in a listing.
$ echo "#text_or_command" >> #List of files from ls
I can't seem to find/understand it on these fourms.
Could it be done at... (4 Replies)
Discussion started by: 62583
4 Replies
9. Homework & Coursework Questions
Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted!
1. The problem statement, all variables and given/known data:
So my problem is: 4990 of 5000 users should be able to access a file. How can this be accomplished.
2.... (1 Reply)
Discussion started by: protiss
1 Replies
10. Shell Programming and Scripting
Hello
I want to call multiple sites simultaneously by xargs or parallel
for example
a.com/srv/1
a.com/srv/3
a.com/srv/2
a.com/srv/n
That means 500 different sites will be called in a moment
Then I use command I call a url at the same time. I need to call each url once, but every 500... (1 Reply)
Discussion started by: mnnn
1 Replies
LEARN ABOUT DEBIAN
texlinks
texlinks(8) teTeX texlinks(8)
NAME
texlinks - maintain symbolic links from format to engine
SYNOPSIS
texlinks [ OPTIONS... ] DIRECTORIES...
DESCRIPTION
texlinks is used to create or recreate symbolic links from formats to engines according to the information in fmtutil.cnf or a file speci-
fied with --cnffile.
DIRECTORIES is an optional list of directories in which to operate. If no directories are specified the list of directories depends on the
--multiplatform option.
OPTIONS
--cnffile FILE or -f FILE
use file as configuration file (default: fmtutil.cnf)
--help or -h
show some help text
--multiplatform or -m
operate in all platform-specific directories (default: operate only in the directory for this platform)
--silent or -s
silently skip over existing scripts/binaries instead of printing a warning
--unlink or -u
Unlink previously created symlinks
--verbose or -v
+set verbose mode on (default: off)
FILES
fmtutil.cnf
default configuration file
SEE ALSO
fmtutil(1), fmtutil.cnf(5)
Web page: <http://tug.org/teTeX/>
BUGS
None known, but report any bugs found to <tex-k@tug.org> (mailing list).
AUTHOR
texlinks was written by Thomas Esser <te@dbs.uni-hannover.de> in 1999. texlinks has been released into the public domain.
This manual page was written by C.M. Connelly <c@eskimo.com>, for the Debian GNU/Linux system. It may be used by other distributions with-
out contacting the author. Any mistakes or omissions in the manual page are my fault; inquiries about or corrections to this manual page
should be directed to me (and not to the primary author).
teTeX November 2007 texlinks(8)