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
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
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 syntaxJudging 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..
Reasonably Related Threads
- Fw: please help -- Variable syntax error
- Overriding resources in a define in a module - can''t get syntax right
- advisory file locks in linux - do they work?
- [semi-OT] C7 Possible bug but I can't determine what tool has the problem
- file mode lost in file.copy()?