Subject: [os2genau_digest] No. 1403
From: Digest <deadmail>
To: "OS/2GenAu Digest"<deadmail>
Date: Sat, 23 Dec 2006 00:01:11 EST-10EDT,10,-1,0,7200,3,-1,0,7200,3600

**************************************************
Friday 22 December 2006
 Number  1403
**************************************************

Subjects for today
 
1  Re:  rexx/enviroment problem ? : Ed Durrant <edurrant at bigpond dot net dot au>
2  Re:  Tesseract OCR : Peter Rehfisch" <gillpete at vic.australis dot com dot au>
3  Re:  rexx/enviroment problem ? : Wayne <datablitz at optusnet dot com dot au>
4  Re:  Tesseract OCR : Kris Steenhaut <kris.steenhaut at kolibrieweg.eu>
5  Re:  rexx/enviroment problem ? : Ian Manners" <deadmail>
6  Re:  rexx/enviroment problem ? : Ian Manners" <deadmail>
7  Re:  rexx/enviroment problem ? : Ed Durrant <edurrant at bigpond dot net dot au>
8  Re:  rexx/enviroment problem ? : Ian Manners" <deadmail>
9   Tesseract OCR : Peter Rehfisch" <gillpete at vic.australis dot com dot au>
10  Re:  Tesseract OCR : Alan Duval <amoht at westnet dot com dot au>

**= Email   1 ==========================**

Date:  Fri, 22 Dec 2006 08:00:01 +1100
From:  Ed Durrant <edurrant at bigpond dot net dot au>
Subject:  Re:  rexx/enviroment problem ?

Ian Manners wrote:
> Hi David /Ed
> 
>     Address CMD 'copy 'messagefile' \tmp'
> or
>    Call SysCopyObject messagefile '\tmp'
> 
> Not working :-(
> 
> I've established that 'messagefile' is still there but there is wierdness
> going on. It's like clamav has eaten the enviromental settings etc.
> 
> I'll mess around with otherways of calling clamd, one I've already done
> was to give clamd the switch settings to move any infected files to /tmp
> but.....
> 
> ----------- SCAN SUMMARY -----------
> Infected files: 0
> Time: 0.052 sec (0 m 0 s)
> D:\MailRoot\os2 dot org dot au\os2genau\0001MIDJ.###: HTML.Phishing.Bank-817 FOUND
> ERROR: cannot move 'D:\MailRoot\os2 dot org dot au\os2genau\0001MIDJ.###' to '\tmp/D:\Ma
> ilRoot\os2 dot org dot au\os2genau\0001MIDJ.###': No such file or directory
> 
> ----------- SCAN SUMMARY -----------
> 
> So I now need to slice up messagefile to leave only the filename but when
> you actually take in the above error, clamav is trying to move the file
> to the full path, which means I need to change to that directory as well, and
> so a larger cmd file appears to be on its way....
> 
> I can remember trying the clamd move option ages ago but it didnt work
> then, looks like Yuri's fixed that somewere along the line.
> 
> Ed, tried the say's but they only tell me the same thing, anything after
> running clamav in the cmd file does seem to work as expected, and
> its the 'copy' that generates the error about unknown command, it
> hasnt even got to the file :-(
> 
> echoing 'set' to as debug log tells me the actual paths etc are all intact.
> It makes life so much quicker having a few virus around to test it
> with.
> 
> Will have to get back to this over the weekend, life calls :-)
> 
> Cheers
> Ian Manners
> Tech Fossil (Often  called a Dinosaur) - ancient animal that gets things done
> http://www.os2site dot com/
> 
> 
> File names are infinite in length where infinity is set to 255 characters.   	-- Peter Collinson, "The Unix File System"

>  

> 
Hi Again Ian,

  One thing I find strange is the use of / in some places and \ in 
others and in fact them mixed on one line. shouldn't it always be 
backslash ? I know forward slash is used on Unix for directory 
definitions but OS/2 needs backslash as far as I know.

cheers/2

Ed.
----------------------------------------------------------------------------------

**= Email   2 ==========================**

Date:  Thu, 21 Dec 2006 09:59:46 +1100
From:  "Peter Rehfisch" <gillpete at vic.australis dot com dot au>
Subject:  Re:  Tesseract OCR

I can't get Tesseract to work. If I use on commandline

tesseract image22.tif 22

I get 

main:Error:Can't open file:22 to get path

Killed by SIGABRT
pid=0x0051 ppid=0x004f tid=0x0001 slot=0x007f pri=0x0300 mc=0x0001
E:\TEMP\TESSERACT.EXE
Process dumping was disabled, use DUMPPROC / PROCDUMP to enable it.

I have downloaded and unzipped as per previous suggestions.

Any suggestions?
----------------------------------------------------------------------------------

**= Email   3 ==========================**

Date:  Fri, 22 Dec 2006 10:10:00 +0930
From:  Wayne <datablitz at optusnet dot com dot au>
Subject:  Re:  rexx/enviroment problem ?

** Reply to note from Ed Durrant <edurrant at bigpond dot net dot au> Fri, 22   
Dec 2006 08:00:01 +1100 
 
When this cmd is started, what is the current drive/dir.  IIRC files are   
to be copied to "C:\tmp". Try  'copy 'messagefile' C:\tmp' . 
 
Cheers 
Wayne 

 
 
> Ian Manners wrote: 
> > Hi David /Ed 
> >  
> >     Address CMD 'copy 'messagefile' \tmp' 
> > or 
> >    Call SysCopyObject messagefile '\tmp' 
> >  
> > Not working :-( 
> >  
> > I've established that 'messagefile' is still there but there is   
wierdness 
> > going on. It's like clamav has eaten the enviromental settings etc. 
> >  
> > I'll mess around with otherways of calling clamd, one I've already   
done 
> > was to give clamd the switch settings to move any infected files   
to /tmp 
> > but..... 
> >  
> > ----------- SCAN SUMMARY ----------- 
> > Infected files: 0 
> > Time: 0.052 sec (0 m 0 s) 
> > D:\MailRoot\os2 dot org dot au\os2genau\0001MIDJ.###:   
HTML.Phishing.Bank-817 FOUND 
> > ERROR: cannot move   
'D:\MailRoot\os2 dot org dot au\os2genau\0001MIDJ.###' to '\tmp/D:\Ma 
> > ilRoot\os2 dot org dot au\os2genau\0001MIDJ.###': No such file or   
directory 
> >  
> > ----------- SCAN SUMMARY ----------- 
> >  
> > So I now need to slice up messagefile to leave only the filename   
but when 
> > you actually take in the above error, clamav is trying to move the   
file 
> > to the full path, which means I need to change to that directory as   
well, and 
> > so a larger cmd file appears to be on its way.... 
> >  
> > I can remember trying the clamd move option ages ago but it didnt   
work 
> > then, looks like Yuri's fixed that somewere along the line. 
> >  
> > Ed, tried the say's but they only tell me the same thing, anything   
after 
> > running clamav in the cmd file does seem to work as expected,   
and 
> > its the 'copy' that generates the error about unknown command, it 
> > hasnt even got to the file :-( 
> >  
> > echoing 'set' to as debug log tells me the actual paths etc are all   
intact. 
> > It makes life so much quicker having a few virus around to test it 
> > with. 
> >  
> > Will have to get back to this over the weekend, life calls :-) 
> >  
> > Cheers 
> > Ian Manners 
> > Tech Fossil (Often  called a Dinosaur) - ancient animal that gets   
things done 
> > http://www.os2site dot com/ 
> >  
> >  
> > File names are infinite in length where infinity is set to 255   
characters.   	-- Peter Collinson, "The Unix File System" 
>  
> >   
>  
> >  
> Hi Again Ian, 
>    
> One thing I find strange is the use of / in some places and \ in  
> others and in fact them mixed on one line. shouldn't it always be  
> backslash ? I know forward slash is used on Unix for directory  
> definitions but OS/2 needs backslash as far as I know. 
>    
> cheers/2 
>    
> Ed. 
 
>  

----------------------------------------------------------------------------------

**= Email   4 ==========================**

Date:  Fri, 22 Dec 2006 00:59:04 +0100
From:  Kris Steenhaut <kris.steenhaut at kolibrieweg.eu>
Subject:  Re:  Tesseract OCR

Peter Rehfisch wrote:
> I can't get Tesseract to work. If I use on commandline
>
> tesseract image22.tif 22
>
> Any suggestions?
>
>   
Are you sure you have copied the file libc061.dll somewhere into the 
libpath?

-- 
Groeten uit Gent,

   Kris

----------------------------------------------------------------------------------

**= Email   5 ==========================**

Date:  Fri, 22 Dec 2006 11:10:50 +1100 (EDT)
From:  "Ian Manners" <deadmail>
Subject:  Re:  rexx/enviroment problem ?

Hi Wayne

>When this cmd is started, what is the current drive/dir.  IIRC files are   
>to be copied to "C:\tmp". Try  'copy 'messagefile' C:\tmp' . 

The problem is in the first part of the line not being understood by
the system, ie, the command 'copy', as the script is called from
C: drive it try's to copy to C:\tmp so the C: isnt needed, also if
something changes were it might try to copy to D: or E: instead,
thats not an issue as all drives have a \temp and a \tmp directory
anyway.

Ive tried putting 'say' in front of the line, and that works, so for what ever
reason it doesnt understand the word copy, or  call copy, or call SysCopyObject.

I've replaced a couple of libs from another computer, all to no avail.
retyped the entire file in with epm instead of AE, scratched my head
and snorted but it wont budge.

I know its going to turn out to be something that is either stupid,
or staring me in the face but......

Cheers
Ian Manners
Tech Fossil (Often  called a Dinosaur) - ancient animal that gets things done
http://www.os2site dot com/

Once Again, Constable Odo wins the Twister Championship!
----------------------------------------------------------------------------------

**= Email   6 ==========================**

Date:  Fri, 22 Dec 2006 11:31:13 +1100 (EDT)
From:  "Ian Manners" <deadmail>
Subject:  Re:  rexx/enviroment problem ?

Hi Ed

>> ----------- SCAN SUMMARY -----------
>> Infected files: 0
>> Time: 0.052 sec (0 m 0 s)
>> D:\MailRoot\os2 dot org dot au\os2genau\0001MIDJ.###: HTML.Phishing.Bank-817 FOUND
>> ERROR: cannot move 'D:\MailRoot\os2 dot org dot au\os2genau\0001MIDJ.###' to '\tmp/D:\Ma
>> ilRoot\os2 dot org dot au\os2genau\0001MIDJ.###': No such file or directory
>> 
>> ----------- SCAN SUMMARY -----------

>  One thing I find strange is the use of / in some places and \ in 
>others and in fact them mixed on one line. shouldn't it always be 
>backslash ? I know forward slash is used on Unix for directory 
>definitions but OS/2 needs backslash as far as I know.

In the following line, which is returned by clamd,

ERROR: cannot move 'D:\MailRoot\os2 dot org dot au\os2genau\0001MIDJ.###' to '\tmp/D:\Ma
ilRoot\os2 dot org dot au\os2genau\0001MIDJ.###': No such file or directory

I told clamd to move any infected line to \tmp, as the variable 'messagefile'
in this case = 'D:\MailRoot\os2 dot org dot au\os2genau\0001MIDJ.###' it couldnt call
the DOS move proceedure as we now the standard move doent like
drive letters, ie, will only move on the same drive. Clam will add any
directory delimiters required, in this case / as its a ported linux app but
it still understands \, so it was correctly placing a / (or think of it as a \)
were needed, it's just due to me using the full 'messagefile' as passed
from weasel and not braking it down to just the filename.

It's quite usual for linux/unix apps to return the directory delimiter as
a / in error messages, you get used to it after a while :-)

Cheers
Ian Manners
Tech Fossil (Often  called a Dinosaur) - ancient animal that gets things done
http://www.os2site dot com/

MS-DOS isn't dead, it just smells that way.   -- Henry Spencer
----------------------------------------------------------------------------------

**= Email   7 ==========================**

Date:  Fri, 22 Dec 2006 13:54:26 +1100
From:  Ed Durrant <edurrant at bigpond dot net dot au>
Subject:  Re:  rexx/enviroment problem ?

OK, on the basis that if one can't fix the problem, change the parameters:

  Change COPY to XCOPY

Cheers/2

Ed.

Ian Manners wrote:
> Hi Wayne
> 
>> When this cmd is started, what is the current drive/dir.  IIRC files are   
>> to be copied to "C:\tmp". Try  'copy 'messagefile' C:\tmp' . 
> 
> The problem is in the first part of the line not being understood by
> the system, ie, the command 'copy', as the script is called from
> C: drive it try's to copy to C:\tmp so the C: isnt needed, also if
> something changes were it might try to copy to D: or E: instead,
> thats not an issue as all drives have a \temp and a \tmp directory
> anyway.
> 
> Ive tried putting 'say' in front of the line, and that works, so for what ever
> reason it doesnt understand the word copy, or  call copy, or call SysCopyObject.
> 
> I've replaced a couple of libs from another computer, all to no avail.
> retyped the entire file in with epm instead of AE, scratched my head
> and snorted but it wont budge.
> 
> I know its going to turn out to be something that is either stupid,
> or staring me in the face but......
> 
> Cheers
> Ian Manners
> Tech Fossil (Often  called a Dinosaur) - ancient animal that gets things done
> http://www.os2site dot com/
> 
> 
> 
----------------------------------------------------------------------------------

**= Email   8 ==========================**

Date:  Fri, 22 Dec 2006 19:32:30 +1100 (EDT)
From:  "Ian Manners" <deadmail>
Subject:  Re:  rexx/enviroment problem ?

Hi Ed

>OK, on the basis that if one can't fix the problem, change the parameters:
>  Change COPY to XCOPY

Now why didnt I think of that !
I'll give it a go, thanks for the lateral thinking :-)

Cheers
Ian Manners
Tech Fossil (Often  called a Dinosaur) - ancient animal that gets things done
http://www.os2site dot com/

PACT ShutDown, Get outta Windows the way you want: reformat the hard disk and install OS2!!
----------------------------------------------------------------------------------

**= Email   9 ==========================**

Date:  Fri, 22 Dec 2006 21:24:11 +1100
From:  "Peter Rehfisch" <gillpete at vic.australis dot com dot au>
Subject:   Tesseract OCR

Kris wrote:

>Are you sure you have copied the file libc061.dll somewhere into the libpath?

Yes. If I move it elsewhere I get 

SYS1804: The system cannot find the file LIBC061

----------------------------------------------------------------------------------

**= Email   10 ==========================**

Date:  Fri, 22 Dec 2006 11:53:19 +1100
From:  Alan Duval <amoht at westnet dot com dot au>
Subject:  Re:  Tesseract OCR

Peter Rehfisch wrote:

>I can't get Tesseract to work. If I use on commandline
>
>tesseract image22.tif 22
>
>I get 
>
>main:Error:Can't open file:22 to get path
>
>Killed by SIGABRT
>pid=0x0051 ppid=0x004f tid=0x0001 slot=0x007f pri=0x0300 mc=0x0001
>E:\TEMP\TESSERACT.EXE
>Process dumping was disabled, use DUMPPROC / PROCDUMP to enable it.
>
>I have downloaded and unzipped as per previous suggestions.
>
>Any suggestions?

>  
>
Hi Peter,

This is probably a stupid question but do you have the 3 Tesseract files 
in the same directory as  image22.tif ?  Also if you've scanned with 
Tame I think the file would be image022.tif, at least that is how my 
setup records it..

Regards,

Alan Duval
----------------------------------------------------------------------------------