Linux MS DOS discussions
 help / color / mirror / Atom feed
* DOS errorlevel not working?
@ 2002-04-29 22:33 Greg Conway
  0 siblings, 0 replies; 3+ messages in thread
From: Greg Conway @ 2002-04-29 22:33 UTC (permalink / raw)
  To: linux-msdos

Hi all,

I've just found DOSEMU yesterday, when I discovered I needed X windows to
run WINE!

I am trying to get the Norton Anti-Virus Scanner NAVDX.EXE working under
Linux. This is all fine, I've managed to get the
thing working, and mount the folder I wish to scan as my D: drive (has taken
me some time but there was documentation for all this on the web!!)

However, I'm having trouble with the errorlevel command, and returning the
result to Linux. Consider the following DOS program:

@echo off
c:\navdx\navdx.exe c:\virusfolder /s+ /doallfiles /zips /delete
if errorlevel 13 echo "virus"
if errorlevel 0 echo "clear"


simple stuff. Under Win2K, this program does the decent thing and returns
"virus" and "clear", as expected (DOS errorlevel command reports >= rather
then = if I remember correctly!), if I drop the EICAR test files into the
directory c:\virusfolder.

However, under DOSEMU (I'm running the binaries with FreeDOS) it returns
errorlevel 0 every time.

Any ideas what could be going wrong here? I'm pulling my hair out over this,
and have been scouring the web for examples all day with no success!!

Once I have this sorted, my final problem will be to return the errorlevel
to Linux, where I've called DOSEMU from a shell
script, so if anybody has any ideas on this as well they'd be gratefully
received - the best I've found is a posting so far
that says "how does it work? exitemu 1 doesn't do the job"!!)

Many thanks for any help received.

Regards,

Greg Conway.


(apologies if this is duplicated, my first post does not appear to have
arrived!

***********************************************************************
This is a confidential communication between sender and addressee. If you are not the intended recipient of this message, please notify the sender and do not read, copy, use or disclose this communication to others. Any opinions or views expressed are those of the individual, and unless otherwise stated, are not those of the company. All attachments and intellectual rights remain the property of GML (NT) Limited.
***********************************************************************

^ permalink raw reply	[flat|nested] 3+ messages in thread

* RE: DOS errorlevel not working?
       [not found] <3CCDC121.4FDE854B@earthlink.net>
@ 2002-04-30  0:09 ` Greg Conway
  2002-04-30 13:17   ` H. B.
  0 siblings, 1 reply; 3+ messages in thread
From: Greg Conway @ 2002-04-30  0:09 UTC (permalink / raw)
  To: linux-msdos; +Cc: H. B.

Hi Harry,

Thanks for this, it looks interesting. Might well be where the rest of my
night goes.... :)

But - the reason I have arrived at this juncture, is as follows...

I have been happily setting up Linux Servers using something called Inflex
(a Linux mail scanner), using F-PROT, a free (for non-commercial use and
cheap for commercial use!) Linux virus scanner.

All was going well, until last week one of my sites was infected by a new
virus!

This appeared to be down to the date of the updates. Using Symantec NAV2002,
new definitions are released daily, and in four years of using NAV for
Windows, I've not been caught by a virus whilst NAV was installed and
enabled!!

So, putting two and two together, and allowing for the fact that Symantec
don't produce NAV for Linux, I decided to put together a scanner out of the
DOS versions of NAV... which explains where I am now!

So, whilst F-PROT and now it appears Panda are free in some cases, there is
obviously a price to pay for this... this appearing to be the rate new
defintions are released at!

So, like I said, I'll examine Panda, and I'll also continue to use F-PROT,
but what I'd like to do is add my trusted NAV into the equation.... all
working under Linux, just not returning the correct errorlevel!

So, many thanks, but my quest continues - if anybody has any further ideas
they'd be much appreciated!

Regards,

Greg.

> -----Original Message-----
> From: hbarrett@lsanca1-ar2-000-125.lsanca1-dsl.gtei.net
> [mailto:hbarrett@lsanca1-ar2-000-125.lsanca1-dsl.gtei.net]On Behalf Of
> H. B.
> Sent: 29 April 2002 22:55
> To: Greg Conway
> Subject: Re: DOS errorlevel not working?
>
>
> Greg,
>
> The corporate version of VirusScan contains VirusScan for
> Linux (command line).  Panda Software has a free Linux
> version, but I have not used it.  I've only used VirusScan.
>
> http://www.nai.com/naicommon/buy-try/try/products-evals.asp#McAfee
> http://www.pandasoftware.com/com/linux/linux.asp
>
> Keep in mind that I do not use this software for Linux,
> but to scan my Windows drives from Linux.
>
> Harry
>
> Greg Conway wrote:
> >
> > Hi all,
> >
> > I've just found DOSEMU yesterday, when I discovered I needed X
> windows to
> > run WINE!
> >
> > I am trying to get the Norton Anti-Virus Scanner NAVDX.EXE working under
> > Linux. This is all fine, I've managed to get the
> > thing working, and mount the folder I wish to scan as my D:
> drive (has taken
> > me some time but there was documentation for all this on the web!!)
> >
> > However, I'm having trouble with the errorlevel command, and
> returning the
> > result to Linux. Consider the following DOS program:
> >
> > @echo off
> > c:\navdx\navdx.exe c:\virusfolder /s+ /doallfiles /zips /delete
> > if errorlevel 13 echo "virus"
> > if errorlevel 0 echo "clear"
> >
> > simple stuff. Under Win2K, this program does the decent thing
> and returns
> > "virus" and "clear", as expected (DOS errorlevel command
> reports >= rather
> > then = if I remember correctly!), if I drop the EICAR test
> files into the
> > directory c:\virusfolder.
> >
> > However, under DOSEMU (I'm running the binaries with FreeDOS) it returns
> > errorlevel 0 every time.
> >
> > Any ideas what could be going wrong here? I'm pulling my hair
> out over this,
> > and have been scouring the web for examples all day with no success!!
> >
> > Once I have this sorted, my final problem will be to return the
> errorlevel
> > to Linux, where I've called DOSEMU from a shell
> > script, so if anybody has any ideas on this as well they'd be gratefully
> > received - the best I've found is a posting so far
> > that says "how does it work? exitemu 1 doesn't do the job"!!)
> >
> > Many thanks for any help received.
> >
> > Regards,
> >
> > Greg Conway.
> >
> > (apologies if this is duplicated, my first post does not appear to have
> > arrived!
> >
> > ***********************************************************************
> > This is a confidential communication between sender and
> addressee. If you are not the intended recipient of this message,
> please notify the sender and do not read, copy, use or disclose
> this communication to others. Any opinions or views expressed are
> those of the individual, and unless otherwise stated, are not
> those of the company. All attachments and intellectual rights
> remain the property of GML (NT) Limited.
> > ***********************************************************************
> > -
> > To unsubscribe from this list: send the line "unsubscribe
> linux-msdos" in
> > the body of a message to majordomo@vger.kernel.org
> > More majordomo info at  http://vger.kernel.org/majordomo-info.html
>

***********************************************************************
This is a confidential communication between sender and addressee. If you are not the intended recipient of this message, please notify the sender and do not read, copy, use or disclose this communication to others. Any opinions or views expressed are those of the individual, and unless otherwise stated, are not those of the company. All attachments and intellectual rights remain the property of GML (NT) Limited.
***********************************************************************

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: DOS errorlevel not working?
  2002-04-30  0:09 ` DOS errorlevel not working? Greg Conway
@ 2002-04-30 13:17   ` H. B.
  0 siblings, 0 replies; 3+ messages in thread
From: H. B. @ 2002-04-30 13:17 UTC (permalink / raw)
  To: Greg Conway; +Cc: linux-msdos

Greg,

As you probably already know, the VirusScan dat files from McAfee (Nai) 
are updated weekly.  Hopefully I was not too confusing.  I was speaking 
of 2 different products.

Harry


Greg Conway wrote:
> 
> Hi Harry,
> 
> Thanks for this, it looks interesting. Might well be where the rest of my
> night goes.... :)
> 
> But - the reason I have arrived at this juncture, is as follows...
> 
> I have been happily setting up Linux Servers using something called Inflex
> (a Linux mail scanner), using F-PROT, a free (for non-commercial use and
> cheap for commercial use!) Linux virus scanner.
> 
> All was going well, until last week one of my sites was infected by a new
> virus!
> 
> This appeared to be down to the date of the updates. Using Symantec NAV2002,
> new definitions are released daily, and in four years of using NAV for
> Windows, I've not been caught by a virus whilst NAV was installed and
> enabled!!
> 
> So, putting two and two together, and allowing for the fact that Symantec
> don't produce NAV for Linux, I decided to put together a scanner out of the
> DOS versions of NAV... which explains where I am now!
> 
> So, whilst F-PROT and now it appears Panda are free in some cases, there is
> obviously a price to pay for this... this appearing to be the rate new
> defintions are released at!
> 
> So, like I said, I'll examine Panda, and I'll also continue to use F-PROT,
> but what I'd like to do is add my trusted NAV into the equation.... all
> working under Linux, just not returning the correct errorlevel!
> 
> So, many thanks, but my quest continues - if anybody has any further ideas
> they'd be much appreciated!
> 
> Regards,
> 
> Greg.
> 
> > -----Original Message-----
> > From: hbarrett@lsanca1-ar2-000-125.lsanca1-dsl.gtei.net
> > [mailto:hbarrett@lsanca1-ar2-000-125.lsanca1-dsl.gtei.net]On Behalf Of
> > H. B.
> > Sent: 29 April 2002 22:55
> > To: Greg Conway
> > Subject: Re: DOS errorlevel not working?
> >
> >
> > Greg,
> >
> > The corporate version of VirusScan contains VirusScan for
> > Linux (command line).  Panda Software has a free Linux
> > version, but I have not used it.  I've only used VirusScan.
> >
> > http://www.nai.com/naicommon/buy-try/try/products-evals.asp#McAfee
> > http://www.pandasoftware.com/com/linux/linux.asp
> >
> > Keep in mind that I do not use this software for Linux,
> > but to scan my Windows drives from Linux.
> >
> > Harry
> >
> > Greg Conway wrote:
> > >
> > > Hi all,
> > >
> > > I've just found DOSEMU yesterday, when I discovered I needed X
> > windows to
> > > run WINE!
> > >
> > > I am trying to get the Norton Anti-Virus Scanner NAVDX.EXE working under
> > > Linux. This is all fine, I've managed to get the
> > > thing working, and mount the folder I wish to scan as my D:
> > drive (has taken
> > > me some time but there was documentation for all this on the web!!)
> > >
> > > However, I'm having trouble with the errorlevel command, and
> > returning the
> > > result to Linux. Consider the following DOS program:
> > >
> > > @echo off
> > > c:\navdx\navdx.exe c:\virusfolder /s+ /doallfiles /zips /delete
> > > if errorlevel 13 echo "virus"
> > > if errorlevel 0 echo "clear"
> > >
> > > simple stuff. Under Win2K, this program does the decent thing
> > and returns
> > > "virus" and "clear", as expected (DOS errorlevel command
> > reports >= rather
> > > then = if I remember correctly!), if I drop the EICAR test
> > files into the
> > > directory c:\virusfolder.
> > >
> > > However, under DOSEMU (I'm running the binaries with FreeDOS) it returns
> > > errorlevel 0 every time.
> > >
> > > Any ideas what could be going wrong here? I'm pulling my hair
> > out over this,
> > > and have been scouring the web for examples all day with no success!!
> > >
> > > Once I have this sorted, my final problem will be to return the
> > errorlevel
> > > to Linux, where I've called DOSEMU from a shell
> > > script, so if anybody has any ideas on this as well they'd be gratefully
> > > received - the best I've found is a posting so far
> > > that says "how does it work? exitemu 1 doesn't do the job"!!)
> > >
> > > Many thanks for any help received.
> > >
> > > Regards,
> > >
> > > Greg Conway.
> > >
> > > (apologies if this is duplicated, my first post does not appear to have
> > > arrived!
> > >
> > > ***********************************************************************
> > > This is a confidential communication between sender and
> > addressee. If you are not the intended recipient of this message,
> > please notify the sender and do not read, copy, use or disclose
> > this communication to others. Any opinions or views expressed are
> > those of the individual, and unless otherwise stated, are not
> > those of the company. All attachments and intellectual rights
> > remain the property of GML (NT) Limited.
> > > ***********************************************************************
> > > -
> > > To unsubscribe from this list: send the line "unsubscribe
> > linux-msdos" in
> > > the body of a message to majordomo@vger.kernel.org
> > > More majordomo info at  http://vger.kernel.org/majordomo-info.html
> >
> 
> ***********************************************************************
> This is a confidential communication between sender and addressee. If you are not the intended recipient of this message, please notify the sender and do not read, copy, use or disclose this communication to others. Any opinions or views expressed are those of the individual, and unless otherwise stated, are not those of the company. All attachments and intellectual rights remain the property of GML (NT) Limited.
> ***********************************************************************

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2002-04-30 13:17 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <3CCDC121.4FDE854B@earthlink.net>
2002-04-30  0:09 ` DOS errorlevel not working? Greg Conway
2002-04-30 13:17   ` H. B.
2002-04-29 22:33 Greg Conway

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox