dbTalk Databases Forums  

32Bit or 64Bit

sybase.public.sqlanywhere.general sybase.public.sqlanywhere.general


Discuss 32Bit or 64Bit in the sybase.public.sqlanywhere.general forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
 
Posts: n/a

Default 32Bit or 64Bit - 10-14-2009 , 05:17 AM






Hi,

is there a way to find out whether there is a Sybase 32-bit or 64-bit
installed?
I need this info for a batch- / shell-script... so i need something like
system-environment variables.

The question is for Windows an Linux.

Regards
Ingmar

Reply With Quote
  #2  
Old   
Breck Carter [TeamSybase]
 
Posts: n/a

Default Re: 32Bit or 64Bit - 10-14-2009 , 06:39 AM






Try checking to see if these files exist (for Windows):

ECHO OFF

IF EXIST "C:\Program Files\SQL Anywhere 11\Bin32\dbsrv11.exe" GOTO
EXISTS32
ECHO 32-bit dbsrv11.exe DOES NOT EXIST
GOTO CHECK64
:EXISTS32
ECHO 32-bit dbsrv11.exe EXISTS

:CHECK64
IF EXIST "C:\Program Files\SQL Anywhere 11\Bin64\dbsrv11.exe" GOTO
EXISTS64
ECHO 64-bit dbsrv11.exe DOES NOT EXIST
GOTO END
:EXISTS64
ECHO 64-bit dbsrv11.exe EXISTS

:END
PAUSE

Breck

On 14 Oct 2009 03:17:13 -0700, <Ingmar> wrote:

Quote:
Hi,

is there a way to find out whether there is a Sybase 32-bit or 64-bit
installed?
I need this info for a batch- / shell-script... so i need something like
system-environment variables.

The question is for Windows an Linux.

Regards
Ingmar

--
Breck Carter http://sqlanywhere.blogspot.com/

RisingRoad SQL Anywhere and MobiLink Professional Services
breck.carter (AT) risingroad (DOT) com

Reply With Quote
  #3  
Old   
Jeff Albion [Sybase iAnywhere]
 
Posts: n/a

Default Re: 32Bit or 64Bit - 10-14-2009 , 09:49 AM



Along a similar line for a bash script:

==============
#!/bin/sh

if [ -f "${SQLANY11}/bin32/dbsrv11" ] ; then
echo "32-bit server is available"
else
echo "32-bit server is unavailable"
fi

if [ -f "${SQLANY11}/bin64/dbsrv11" ] ; then
echo "64-bit server is available"
else
echo "64-bit server is unavailable"
fi
==============

Cheers,

Breck Carter [TeamSybase] wrote:
Quote:
Try checking to see if these files exist (for Windows):

ECHO OFF

IF EXIST "C:\Program Files\SQL Anywhere 11\Bin32\dbsrv11.exe" GOTO
EXISTS32
ECHO 32-bit dbsrv11.exe DOES NOT EXIST
GOTO CHECK64
:EXISTS32
ECHO 32-bit dbsrv11.exe EXISTS

:CHECK64
IF EXIST "C:\Program Files\SQL Anywhere 11\Bin64\dbsrv11.exe" GOTO
EXISTS64
ECHO 64-bit dbsrv11.exe DOES NOT EXIST
GOTO END
:EXISTS64
ECHO 64-bit dbsrv11.exe EXISTS

:END
PAUSE

Breck

On 14 Oct 2009 03:17:13 -0700, <Ingmar> wrote:

Hi,

is there a way to find out whether there is a Sybase 32-bit or 64-bit
installed?
I need this info for a batch- / shell-script... so i need something like
system-environment variables.

The question is for Windows an Linux.

Regards
Ingmar


--
Breck Carter http://sqlanywhere.blogspot.com/

RisingRoad SQL Anywhere and MobiLink Professional Services
breck.carter (AT) risingroad (DOT) com
--
Jeff Albion, Sybase iAnywhere

iAnywhere Developer Community :
http://www.sybase.com/developer/libr...ere-techcorner
iAnywhere Documentation : http://www.ianywhere.com/developer/product_manuals
SQL Anywhere Patches and EBFs :
http://downloads.sybase.com/swd/summ...&timeframe =0
Report a Bug/Open a Case : http://case-express.sybase.com/cx/

Reply With Quote
  #4  
Old   
Volker Barth
 
Posts: n/a

Default Re: 32Bit or 64Bit - 10-15-2009 , 02:42 AM



Ingmar,

with respect to the program path, you might make use of the environment
variable (for SA 11, SQLANY11), e.g. like
IF EXIST "%SQLANY11%\Bin32\dbsrv11.exe" ...

This should work in a comparable way on Linux/Unix, too.


HTH
Volker



Breck Carter [TeamSybase] write:
Quote:
Try checking to see if these files exist (for Windows):

ECHO OFF

IF EXIST "C:\Program Files\SQL Anywhere 11\Bin32\dbsrv11.exe" GOTO
EXISTS32
ECHO 32-bit dbsrv11.exe DOES NOT EXIST
GOTO CHECK64
:EXISTS32
ECHO 32-bit dbsrv11.exe EXISTS

:CHECK64
IF EXIST "C:\Program Files\SQL Anywhere 11\Bin64\dbsrv11.exe" GOTO
EXISTS64
ECHO 64-bit dbsrv11.exe DOES NOT EXIST
GOTO END
:EXISTS64
ECHO 64-bit dbsrv11.exe EXISTS

:END
PAUSE

Breck

On 14 Oct 2009 03:17:13 -0700, <Ingmar> wrote:

Hi,

is there a way to find out whether there is a Sybase 32-bit or 64-bit
installed?
I need this info for a batch- / shell-script... so i need something like
system-environment variables.

The question is for Windows an Linux.

Regards
Ingmar


--
Breck Carter http://sqlanywhere.blogspot.com/

RisingRoad SQL Anywhere and MobiLink Professional Services
breck.carter (AT) risingroad (DOT) com

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.