01-21-2008
Please use CODE tags
,
its quite difficult to read through the code without them.
It seems that the code is pasted from editor with line numbers set
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hi
I have a C++ program that generates a lot of log information on the console, I need this output (printed using printf function) to go to a file since I will use crontab to schedule the job.
I know I can do this:
myprog > myfile
but I don't know how to enter this in crontab.
I use... (3 Replies)
Discussion started by: GMMike
3 Replies
2. UNIX for Dummies Questions & Answers
Hello
I wander if im doing :
ls -l and its giving me lets say 3 results :
-rw-r--r-- 1 blah other 1789 May 19 2003 foo.c
-rw-r--r-- 1 blah other 1014 May 19 2003 foo.h
-rw-r--r-- 1 blah other 270 May 19 2003 foo1.c
now I would like to use the first... (1 Reply)
Discussion started by: umen
1 Replies
3. Programming
The output I got for this pgm is "4 4 4 4".
Can any one help me to understand how I got this output.
Also please suggest me some links to learn about argumnets evaluation in C.
# include <stdio.h>
void func(int a, int b, int c, int d)
{
printf("%d %d %d %d", a, b, c, d);
}
int... (3 Replies)
Discussion started by: arunviswanath
3 Replies
4. AIX
Hi All,
I found a strange thing in one of our DB server.
one of the file system /orcale/ABC/rman size df output showing 100% full eventhough its occupying 2.18MB
$ df -mP /oraclev/ABC/rman
Filesystem MB blocks Used Available Capacity Mounted on
/dev/lv20906 1024.00 1024.00 0.00 100%... (2 Replies)
Discussion started by: ram1729
2 Replies
5. UNIX for Dummies Questions & Answers
I Wrote code that forks into two processes, a parent process, and a child process. The parent process will take the arguments to main() and send them one character at a time to the child process through a pipe (one call to write for each character). The child process will count the characters... (1 Reply)
Discussion started by: hansel13
1 Replies
6. UNIX for Advanced & Expert Users
i use the system command to execute a shell command... ca i collect the out put in the form of a string or something using the same C program? (5 Replies)
Discussion started by: damn_bkb
5 Replies
7. Shell Programming and Scripting
Hello,
I was written a cgi with a textarea to save some words from web.
I grab and write words like this:
$cgiparams{'CONTENTS'} =~ s/\r//g;
#$cgiparams{'CONTENTS'} =~ s/á/á/g;
open(TM, ">$editedfilename");
#binmode(TM,... (1 Reply)
Discussion started by: Zaxon
1 Replies
8. Programming
Hello All,
iam a new memeber today i joined this forum.
hope i will get help. the below program takes input strings and give reverse of input string.
&& mv /home/test1/programs/display /home/test1/programs/old
echo " Please enter the test "
read a
echo "$a" > file
wc -c file > file1
perl... (1 Reply)
Discussion started by: ameyrk
1 Replies
9. Programming
Hi All,
When i try to compile the following code for 64-bit it works, whereas for 32-bit version, Compiler barfs:
#include <iostream>
#include <string>
class String {
public:
String() { }
String(const char* src) : myStr(src) { }
String(const std::string& src) :... (0 Replies)
Discussion started by: 14341
0 Replies
10. Shell Programming and Scripting
hi,
i have posted the same kind of the question in some other forum of the same site. but realized that it is supposed to be here so i am reposting it .this is the perl script written to check for particular pattern.
my file 1 would look like this
hwk:678:9878:asd:09: abc cfgb 12 nmjk ......... (3 Replies)
Discussion started by: anurupa777
3 Replies
LEARN ABOUT DEBIAN
wml::std::tags
wml::std::tags(3) EN Tools wml::std::tags(3)
NAME
wml::std::tags - Standard Support Tags
SYNOPSIS
#use wml::std::tags
# Pass 2: advanced if constructs
<ifdef varname thenval elseval>
# Pass 3: support tag
<perl> ... </perl>
<say> ... </say>
# Pass 4: support tag
<m4> ... </m4>
# Pass 4: symbols
<symbol name value>
<symbol name undef>
# Pass 5: diversions
<dump NAME>
<enter NAME> ... <leave>
<divert NAME> ... </divert>
# Pass 6: support tag
<asubst ...> ... </asubst>
# Client-Side JavaScript: support tag
<javascript [version=..] [language=..]
[type=..] [src=...] [defer] [nohead] [nolang]>
...
</javascript>
# Resynchronize line numbers for more accurate pass 3 warnings
<sync-lines>
DESCRIPTION
This include file defines some standard support tags one needs all the time. All tags are self-explanatory and briefly mentioned in
wml_intro(1), except the last two which are described below.
"<javascript>":
This tag was primarily a shorthand for "<script type="text/javascript" language="JavaScript">" but it has evolved. If the "<head>" tag is
defined and is a complex macro, e.g. when calling "wml::std::page", then Javascript code is automatically passed to this macro and should
be diverted to the HEAD section of HTML documents. This diversion preserve lang slices in multi-lingual documents. Those features may be
disabled by the ``nohead'' and ``nolang'' attributes.
"<sync-lines>":
WML tries to print information on input file and line numbers when warnings or errors are reported in passes 2 and 3. Some special
sentences containing file names and line numbers are inserted during pass 1. So pass 2 have an accurate knowledge of where warnings appear
in input file. But it also filters it without preserving lines, so after pass 2 information is almost unusable. By putting "<sync-lines>"
in input file, it forces pass 2 to resynchronize information on line numbers. So for debugging pass 3, it could be of some help to insert
"<sync-lines>" before ePerl code.
AUTHORS
Ralf S. Engelschall
rse@engelschall.com
www.engelschall.com
Denis Barbier
barbier@engelschall.com
REQUIRES
Internal: P1, P2, P3, P4, P6
External: --
SEE ALSO
wml(1)
EN Tools 2014-04-16 wml::std::tags(3)