Re: please help -- Variable syntax error

2005-06-06 Thread Wayne Davison
On Sat, Jun 04, 2005 at 05:08:56PM -0400, Govindarajan, Bhadri wrote:
 Can you be more specific on how to running
 the remote shell command directly to see if it gives the error.

When you run rsync with the -vv option, it outputs the ssh command it is
running to connect to the other machine.  Run that command manually and
see if it generates the error.  If it does, change the remote command to
narrow down what is causing the problem (and remember to run the command
ssh host which rsync as I mentioned).

..wayne..
-- 
To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync
Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html


Re: please help -- Variable syntax error

2005-06-04 Thread Paul Slootman
On Fri 03 Jun 2005, Bhadri N Govindarajan wrote:
 
 I am using rsync to sync w machines. I had no problem untill. Now i am
 trying the same script  to sync 2 differnt machines.  The code is the
 same. I just changed the machine names.  When i execute the script i
 get
 
 Variable syntax
 rsync: connection unexpectedly closed (0 bytes read so far)
 rsync error: error in rsync protocol data stream (code 12) at io.c(150)
 
 I am able to scp or ssh to the from the machines. I have proper keys. 
 
 Where does the Variable syntax come from., I have 5 folders in include
 file. So this error is repeated 5 times.

Variable syntax is a csh error message telling you that the way you're
trying to use shell variables is wrong somehow.

 I tried 
 rsync -vv testfile mydestmachine:/export/opt/geneva/temp/testfile
 
 even for this command i get the same error.

You typed this at the commandline, exactly as shown, and it gave you
this error? That's strange, as no variables are involved here.
'rsync' doesn't happen to be an alias, does it?


Paul Slootman
-- 
To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync
Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html


Re: please help -- Variable syntax error

2005-06-04 Thread Govindarajan, Bhadri

Yes.
I typed exactly without any variables in the command line. No variable 
invloved.
It works perfectly in one other machine where the shell is ksh.(That is the 
only difference between the machines i know of)

rsync -vv testfile mydestmachine:/export/opt/geneva/temp/testfile
Here testfile is a simple text file with 2 lines. When i did this with scp, 
it worked.



Thanks
Bhadri
- Original Message - 
From: Paul Slootman [EMAIL PROTECTED]

To: rsync@lists.samba.org
Sent: Saturday, June 04, 2005 6:42 AM
Subject: Re: please help -- Variable syntax error



On Fri 03 Jun 2005, Bhadri N Govindarajan wrote:


I am using rsync to sync w machines. I had no problem untill. Now i am
trying the same script  to sync 2 differnt machines.  The code is the
same. I just changed the machine names.  When i execute the script i
get

Variable syntax
rsync: connection unexpectedly closed (0 bytes read so far)
rsync error: error in rsync protocol data stream (code 12) at io.c(150)

I am able to scp or ssh to the from the machines. I have proper keys.

Where does the Variable syntax come from., I have 5 folders in include
file. So this error is repeated 5 times.


Variable syntax is a csh error message telling you that the way you're
trying to use shell variables is wrong somehow.


I tried
rsync -vv testfile mydestmachine:/export/opt/geneva/temp/testfile

even for this command i get the same error.


You typed this at the commandline, exactly as shown, and it gave you
this error? That's strange, as no variables are involved here.
'rsync' doesn't happen to be an alias, does it?


Paul Slootman




--
To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync
Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html


Re: please help -- Variable syntax error

2005-06-04 Thread Wayne Davison
On Fri, Jun 03, 2005 at 11:58:43PM -0400, Bhadri N Govindarajan wrote:
 I just changed the machine names.  When i execute the script i get
 Variable syntax

Judging from the command you used, I assume that this error is coming
from the remote shell, and probably indicates an error in that host's
startup files for the shell.  Are you sure that you have rsync
configured to use ssh?  (Use -e ssh or set RSYNC_RSH to force it, or
look at the -vv output to see what it's running.)  I'd suggest running
the remote shell command directly to see if it gives the error.  Also,
try a command such as ssh mydestmachine which rsync (or whatever
command that machine uses to show you what program is being run) -- this
will ensure that you're not running an rsync script on the destination
machine.

..wayne..
-- 
To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync
Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html


Fw: please help -- Variable syntax error

2005-06-04 Thread Govindarajan, Bhadri


- Original Message - 
From: Govindarajan, Bhadri [EMAIL PROTECTED]

To: Wayne Davison [EMAIL PROTECTED]
Sent: Saturday, June 04, 2005 5:08 PM
Subject: Re: please help -- Variable syntax error



Hello

I even tried this. I tried to scp and ssh from the remote machine to the 
local machine. I works well.

But doing rsync gives the same error. Variable Syntax
So of the two machines from which ever m/c i do  rsync it says the same 
error.

I tried -vv to debug. It uses ssh.

Can you be more specific on how to running
the remote shell command directly to see if it gives the error.

ssh machine works well. rsync and ssh is installed in both machines. 
They are the same version. (which rsync and ssh)


I dont understand your last part. this

will ensure that you're not running an rsync script on the destination


Please Let me know what else can be done.

Thanks
Bhadri.

- Original Message - 
From: Wayne Davison [EMAIL PROTECTED]

To: Bhadri N Govindarajan [EMAIL PROTECTED]
Cc: rsync@lists.samba.org
Sent: Saturday, June 04, 2005 1:38 PM
Subject: Re: please help -- Variable syntax error



On Fri, Jun 03, 2005 at 11:58:43PM -0400, Bhadri N Govindarajan wrote:

I just changed the machine names.  When i execute the script i get
Variable syntax


Judging from the command you used, I assume that this error is coming
from the remote shell, and probably indicates an error in that host's
startup files for the shell.  Are you sure that you have rsync
configured to use ssh?  (Use -e ssh or set RSYNC_RSH to force it, or
look at the -vv output to see what it's running.)  I'd suggest running
the remote shell command directly to see if it gives the error.  Also,
try a command such as ssh mydestmachine which rsync (or whatever
command that machine uses to show you what program is being run) -- this
will ensure that you're not running an rsync script on the destination
machine.

..wayne..




--
To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync
Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html


please help -- Variable syntax error

2005-06-03 Thread Bhadri N Govindarajan
Hello

I am using rsync to sync w machines. I had no problem untill. Now i am
trying the same script  to sync 2 differnt machines.  The code is the
same. I just changed the machine names.  When i execute the script i
get

Variable syntax
rsync: connection unexpectedly closed (0 bytes read so far)
rsync error: error in rsync protocol data stream (code 12) at io.c(150)

I am able to scp or ssh to the from the machines. I have proper keys. 

Where does the Variable syntax come from., I have 5 folders in include
file. So this error is repeated 5 times.

I tried 
rsync -vv testfile mydestmachine:/export/opt/geneva/temp/testfile

even for this command i get the same error.

How do i overcome this error. I tried everything. Is it something to
do with c-shell. Because my previous scripts where working in ksh. I
really dont understand.

Please help .

Thanks.

-- 
Thanks
G.Bhadri
--
To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync
Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html