Hi,
I tried to compile the same C program in Debian too. But I am facing the
same problem. Not getting the output.
I had posted the code sometime back on the list :-)
Regards
Rajesh
On Tue, Jan 23, 2001 at 12:38:52PM +0530, Rajesh Fowkar wrote:
>On Tue, Jan 23, 2001 at 11:43:39AM +0530, Binand Raj S. wrote:
>
>>> But our problem is after running the binary with the required parameters it
>>> is not giving us the desired output.
>>
>>That shouldn't be a gets() problem. How did you run the program and what
>>was the desired o/p? The actual o/p?
>
>See Binand. It is like this. We run the binary as follows :
>
>----------------------------------------------------------------
>[rajesh@dempomail rajesh]$ ./spce
>
> usage - ./spce [options] start-column length ltrl1 ltrl2
> c - for comparing
> s - for substuting
> n - output with record numbers
>[rajesh@dempomail rajesh]$
>----------------------------------------------------------------
>
>There is a text file say EIT0100.SRT which contains the following :
>
>110001012606040100 1001-01-0008-ROYALNO001520000 501 E
>110001012631060100 1001-01-0008-ROYALNO000380000 506 E
>110001012640060100 1001-01-0008-ROYALNO000760000 501 E
>110002012645060100 1001-01-0008-ROYALNO000190000 530 E
>
>We run spce say to compare and put the output in text file
>
>./spce c 1 2 11 < EIT0100.SRT > mad
>[ This tells spce to compare starting from 1st column length 2 for the text 11
>and put the result in file mad ]
>
>If we run this the output file mad should be :
>
>11
>11
>11
>11
>
>But the output is coming blank. The same thing works on SCO Unix. Logically
>compiling the same C program on Linux should have worked isn't it. ?
>
>Same thing happens for the other options, substitute(s) etc.
>
>I am attaching spce.c as well as a sample text file. Both are small. (Total 5k).
>
>Thanks.
>
>
>Regards
--
Rajesh Fowkar
(Computer Programmer)
V. S. DEMPO & CO. LTD., PANAJI-GOA
Email ID : [EMAIL PROTECTED], [EMAIL PROTECTED]
Web Site : http://www.dempos.com
----------------------------------------------
Find out more about this and other Linux India
mailing lists at http://lists.linux-india.org/