Sybase NNTP forums - End Of Life (EOL)

The NNTP forums from Sybase - forums.sybase.com - are now closed.

All new questions should be directed to the appropriate forum at the SAP Community Network (SCN).

Individual products have links to the respective forums on SCN, or you can go to SCN and search for your product in the search box (upper right corner) to find your specific developer center.

Executing ssremote in a batch file of linux

3 posts in General Discussion Last posting was on 2005-11-30 16:21:28.0Z
Luis Campodonico Posted on 2005-11-29 21:53:32.0Z
Sender: 64b8.438c6b6f.1804289383@sybase.com
From: Luis Campodonico
Newsgroups: ianywhere.public.general
Subject: Executing ssremote in a batch file of linux
X-Mailer: WebNews to Mail Gateway v1.1t
Message-ID: <438ccddc.6e69.1681692777@sybase.com>
NNTP-Posting-Host: 10.22.241.41
X-Original-NNTP-Posting-Host: 10.22.241.41
Date: 29 Nov 2005 13:53:32 -0800
X-Trace: forums-1-dub 1133301212 10.22.241.41 (29 Nov 2005 13:53:32 -0800)
X-Original-Trace: 29 Nov 2005 13:53:32 -0800, 10.22.241.41
Lines: 9
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub ianywhere.public.general:5003
Article PK: 17474

Hi, I'm having problems when y try to execute the ssremote
in a batch file or a shell in linux. I try with other
programs and they execute OK in the batch. Someone know what
could been happening??
If someone could give me an example of a batch file to
execute the ssremote??
Kind Regards

Luis C


Greg Fenton Posted on 2005-11-30 02:34:44.0Z
From: Greg Fenton <greg.fenton_NOSPAM_@ianywhere.com>
Organization: iAnywhere Solutions Inc.
User-Agent: Mozilla Thunderbird 1.6.3.2f (Windows/20050317)
X-Accept-Language: en-us, en
MIME-Version: 1.0
Newsgroups: ianywhere.public.general
Subject: Re: Executing ssremote in a batch file of linux
References: <438ccddc.6e69.1681692777@sybase.com>
In-Reply-To: <438ccddc.6e69.1681692777@sybase.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: cpe00096b10fe8a-cm000f212f9e50.cpe.net.cable.rogers.com
X-Original-NNTP-Posting-Host: cpe00096b10fe8a-cm000f212f9e50.cpe.net.cable.rogers.com
Message-ID: <438d0fc4$1@forums-1-dub>
Date: 29 Nov 2005 18:34:44 -0800
X-Trace: forums-1-dub 1133318084 24.43.194.135 (29 Nov 2005 18:34:44 -0800)
X-Original-Trace: 29 Nov 2005 18:34:44 -0800, cpe00096b10fe8a-cm000f212f9e50.cpe.net.cable.rogers.com
Lines: 16
X-Authenticated-User: techsupp
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub ianywhere.public.general:5004
Article PK: 8641


Luis Campodonico wrote:
> Hi, I'm having problems when y try to execute the ssremote
> in a batch file or a shell in linux.

What do you mean by "having problems"?
What error messages are you seeing?
Which version and build number are you using?

greg.fenton
--
Greg Fenton
Consultant, Solution Services, iAnywhere Solutions
--------
Visit the iAnywhere Solutions Developer Community
Whitepapers, TechDocs, Downloads
http://www.ianywhere.com/developer/


Reg Domaratzki (iAnywhere Solutions) Posted on 2005-11-30 16:21:28.0Z
From: "Reg Domaratzki \(iAnywhere Solutions\)" <FirstName.LastName@ianywhere.com>
Newsgroups: ianywhere.public.general
References: <438ccddc.6e69.1681692777@sybase.com>
Subject: Re: Executing ssremote in a batch file of linux
Lines: 70
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1506
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1506
NNTP-Posting-Host: rdomarat-xp.sybase.com
X-Original-NNTP-Posting-Host: rdomarat-xp.sybase.com
Message-ID: <438dd188@forums-1-dub>
Date: 30 Nov 2005 08:21:28 -0800
X-Trace: forums-1-dub 1133367688 10.25.99.188 (30 Nov 2005 08:21:28 -0800)
X-Original-Trace: 30 Nov 2005 08:21:28 -0800, rdomarat-xp.sybase.com
X-Authenticated-User: techsupp
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub ianywhere.public.general:5006
Article PK: 8643

As Greg suggests, knowing exactly what problem you are having would be
helpful. The following works great for me, although it simply errors out
with "problem connecting to database" as expected since I didn't specify any
connection parameters.

[9002:g:32] speedy:~/rdomarat$ more run_ss
#!/bin/sh
ssremote -o out.txt

[9002:g:32] speedy:~/rdomarat$ ls -la run_ss
4 -rwxrwxrwx 1 dbbuild dbbuild 19 Nov 30 11:07 run_ss*

[9002:g:32] speedy:~/rdomarat$ run_ss
[9002:g:32] speedy:~/rdomarat$

[9002:g:32] speedy:~/rdomarat$ more out.txt
I. 11/30 11:09:53. SQL Remote Message Agent Version 9.0.1.1753
I. 11/30 11:09:53.
I. 11/30 11:09:53. Copyright (c) 1989-2004 Sybase, Inc.
Portions Copyright (c) 2002-2004, iAnywhere Solutions,
Inc.
I. 11/30 11:09:53. All rights reserved. All unpublished rights reserved.
I. 11/30 11:09:53.
I. 11/30 11:09:53. This software contains confidential and trade secret
information of
I. 11/30 11:09:53. iAnywhere Solutions, Inc.
Use, duplication or disclosure of the software and
documentation
I. 11/30 11:09:53. by the U.S. Government is subject to restrictions set
forth in a license
I. 11/30 11:09:53. agreement between the Government and iAnywhere Solutions,
Inc. or
I. 11/30 11:09:53. other written agreement specifying the Government's
rights to use the
I. 11/30 11:09:53. software and any applicable FAR provisions, for example,
FAR 52.227-19.
I. 11/30 11:09:53.
I. 11/30 11:09:53. iAnywhere Solutions, Inc., One Sybase Drive, Dublin, CA
94568, USA
I. 11/30 11:09:53.
I. 11/30 11:09:53. Sybase Client-Library/12.5/P/Linux Intel/Linux
2.2.14-5.0smp i686 Native Threads/BUILD125-005/OPT/Fri May 18 20:50:58 2001
E. 11/30 11:09:53. Error connecting to database


--
Reg Domaratzki, Sybase iAnywhere Solutions
Sybase Certified Professional - Sybase ASA Developer Version 8
Please reply only to the newsgroup

iAnywhere Developer Community : http://www.ianywhere.com/developer
iAnywhere Documentation : http://www.ianywhere.com/developer/product_manuals
ASA Patches and EBFs : http://downloads.sybase.com/swx/sdmain.stm
-> Choose SQL Anywhere Studio
-> Set filter to "Display ALL platforms IN ALL MONTHS"

<Luis Campodonico> wrote in message
news:438ccddc.6e69.1681692777@sybase.com...
> Hi, I'm having problems when y try to execute the ssremote
> in a batch file or a shell in linux. I try with other
> programs and they execute OK in the batch. Someone know what
> could been happening??
> If someone could give me an example of a batch file to
> execute the ssremote??
> Kind Regards
>
> Luis C