Howto escape spaces in pathes when using rsync via ssh?

Hi,
I'm using rsync to sync my Addressbook's data from my PB to the cube where my iPod is connected to and syncs to that data. I've also set up ssh to connect to the cube and vice versa. Problem is, the path to the address book data contains a white space (Application Support). I escape it using a backslash on both the local and the remote path in the rsync command. It works with the local path but not with the remote one where it becames a 'real' space, so that rsync creates a new folder ~/Library/Application and copies everything over there. Any suggestions what's going on and how to solve it?
(I remember I read something about the oddities of terminal - back when Panther came out - also scratching those kinds of issues, but don't remember where this was and yes, I've a workaround using a spaceless symlink at the cube, but I'd like to solve it within the rsync command. The symlink is just ugly).
PowerBook 12   Mac OS X (10.4.6)  

Hello Denis,
Enclose the Path with double quotes and escape the whitespace with a backslash:
with ssh, it works for me like:
scp user@remote-host:"/Library/Application\ Support/test.nix" .
works with rsync too this way.

Similar Messages

  • [SOLVED] System freezing when using rsync

    Hello,
    I have a new build of Arch with the GDE and overall it is working very well.
    There are some 'glitches', some more disruptive than others.
    When using rsync over a powerline connection (I only mention the powerline connection, as, when using rsync directly via my router I have no issues) between two identical NICs/Servers both running FreeNAS, the PC I have arch installed upon/is running rsync freezes intermittently throughout the process of rsync.
    The freezes are apparent by lost keyboard and mouse reply, and all screens freezing.
    I have attempted to use top and gnome-system-monitor to find out the reason, but, they both list rsync as the top cpu process when the freezes happen, and, no other running process seems to 'move' in the list of processes at the same time.
    This happens when I have any other applications/logins running - be it Firefox, Thunderbird, other consoles, etc.
    I am using Guake as a terminal (Mainly because I cannot get gnome-terminal to work - it is installed and appears, but, selecting the icon leads to nothing appearing) - perhaps this is the cause - I would not know how else to troubleshoot other than attempting to use top and system-monitor.
    Many thanks everyone.
    Last edited by fitzyj (2015-01-26 13:21:09)

    Thank you karol - you have been so helpful.  It is really appreciated and has helped me make great progress today.
    That link for rsync is perfect! (I shall post back with my results)
    Yes - Gnome Desktop Environment, I am a bit embarrassed, I'm not sure why, but, from what I read, I think that I am meant to be
    I guess that I am very used to it, and, I really like being able to press the 'windows' button and type the beginning of a GUI that I want to run, followed quicky by enter, and I am there...
    For me it is all about speed, so, any Window Managers that are quick without a ludicrous amount of guesswork as to how to get going with them would be good.  Do you have suggestions for tiling WMs in relation to terminal emulators therefore?
    I have tried the 'obvious' WMs: LXDE, XFCE, Openbox, KDE and have found Gnome to be the easiest/quickest to use, but, that is only so far - I am SO open to suggestions as I love to try something that, without recommendation, I might have missed, especially when in a forum of 'like minded' people!
    I have not heard of tmux or urxvt for example, so, shall imediately be trying them out - ALL of your kind suggestions today have been a marvelous help, and, will probably become a part of my daily routine - now there is an example of how to influence people heh karol!
    Thank you once again
    Last edited by fitzyj (2015-01-17 17:39:01)

  • Satellite Pro L350 - When using internet via Wi-Fi screen locks up

    Recentlyt bought Satellite Pro L350. When using internet via Wi-Fi screen locks up. I can't turn off.
    Had to remove battery to shut down. Re-loaded battery and restarted, OK for a while then same occurance.
    Help!

    This occurs while on plugged into wall. When I could not get shut down I unplugged from wall but was then on battery power. Using Vista as supplied by vendor Circuit City.

  • Problem with spaces in filenames when using ODI tools

    Hi everyone,
    has anyone of you ever encountered the following behaviour:
    When using any ODI tool related to file manipulation the tool does not work if the file parameter value contains a blank/space. Example:
    OdiFileDelete "-DIR=c:temp" "-FILE=Test this.txt" "-RECURSE=NO" "-CASESENS=NO" "-NOFILE_ERROR=YES"
    In this case an error will occur saying the file does not exist although it exists in the directory.
    Has anyone a workaround for this?
    Thanks in advance,
    Hauke

    Hi Madha,
    thanks for the prompt answer.
    We decided to rename the files to make the tools work. Definitely not always applicable but in our case it's possible. Any hint why the behaviour is designed like this?
    Regards,
    Hauke

  • How to change download path when using webutil_file_transfer.DB_TO_CLIENT

    I am trying to change the path when downloading a file using the download_db procedure (webutil_file_transfer.db_to_client).
    Thanks,
    Terry

    Is the procedure DB_TO_CLIENT built in oracle?
    I also want to download video files from Oracle to client and save to d:\video, How can I do?
    Appreciate for your any words.
    If you know, Plz email to:
    [email protected]

  • Kernel Panic when using AppleTalk via AirPort Express

    I thought that the issues pertaining to kernel panics when using AppleTalk to connect via AirPort to remote server were solved in the latest (10.5) version of MacOSX - but they are unfortunately not solved.
    ok, so I connect to the remote (macosx) server via the "Connect to..." menu item in Finder. i have a working internet connection up and running via AirPort {AirPort Extreme (0x14E4, 0x87) Firmware: Broadcom BCM43xx 1.0 (4.170.46.9)}
    i log in and all is fine - until midway through copying some files - kernel panic. the panics can occur even while doing stuff locally, while the AppleTalk connection is just sitting idle in the background.
    i am on MacOSX 10.5.4, iMac 2.16 Ghz Core 2 Duo, 2 GB RAM.
    the kernel panics have been occuring since the Leopard upgrade - never before (on either this machine or my older iMac G5).
    any suggestions?
    thanks in advance,
    tobias

    here's what i found in the panic.log (do you need another log file?):
    Tue Sep 9 14:46:14 2008
    panic(cpu 1 caller 0x001A8CD4): Kernel trap at 0x00376810, type 14=page fault, registers:
    CR0: 0x8001003b, CR2: 0x000000b4, CR3: 0x01191000, CR4: 0x00000660
    EAX: 0x00000000, EBX: 0x00000000, ECX: 0x051774f0, EDX: 0x00000000
    CR2: 0x000000b4, EBP: 0x347ab008, ESI: 0x00000000, EDI: 0x00000000
    EFL: 0x00010206, EIP: 0x00376810, CS: 0x00000008, DS: 0x03ef0010
    Error code: 0x00000000
    Backtrace, Format - Frame : Return Address (4 potential args on stack)
    0x347aae28 : 0x12b0fa (0x4592a4 0x347aae5c 0x133243 0x0)
    0x347aae78 : 0x1a8cd4 (0x46280c 0x376810 0xe 0x461fbc)
    0x347aaf58 : 0x19ede5 (0x347aaf70 0x7fffffff 0x347ab008 0x376810)
    0x347aaf68 : 0x376810 (0xe 0x48 0x347a0010 0x530010)
    0x347ab008 : 0x37686c (0x0 0x0 0x347ab028 0x3778fa)
    0x347ab028 : 0x7249de (0x0 0x1 0x40 0x1a9b51)
    0x347ab078 : 0x3a6a28 (0x48c7d00 0x6e763fc 0x0 0x347ab12c)
    0x347ab118 : 0x3b9a0c (0x6e763fc 0x0 0x0 0x30566400)
    0x347ab1c8 : 0x34697036 (0x6e763fc 0x347ab73c 0x30566400 0x0)
    0x347ab778 : 0x3a6ad9 (0x0 0x30557300 0x41f7780 0x0)
    0x347ab818 : 0x3b9a0c (0x5a747f8 0x0 0x0 0x30568200)
    0x347ab8c8 : 0x346ab982 (0x5a747f8 0x347ab934 0x30568200 0x0)
    0x347ab988 : 0x346abf0d (0x53f2004 0x0 0x535c004 0x29)
    0x347ab9d8 : 0x346adaa6 (0x53f2004 0x0 0x535c004 0x29)
    0x347aba58 : 0x346a14bd (0x53f2004 0x1 0x2 0xe93f)
    0x347abad8 : 0x346a189c (0x53f2004 0x6478004 0x0 0x2)
    Backtrace continues...
    Kernel loadable modules in backtrace (with dependencies):
    com.apple.filesystems.afpfs(8.5.7)@0x3469e000->0x346e2fff
    com.apple.nke.asp_tcp(4.6.2)@0x34694000->0x3469dfff
    at.obdev.nke.LittleSnitch(2.0.10)@0x71e000->0x73efff
    BSD process name corresponding to current thread: quicklookd
    Mac OS version:
    9E17
    Kernel version:
    Darwin Kernel Version 9.4.0: Mon Jun 9 19:30:53 PDT 2008; root:xnu-1228.5.20~1/RELEASE_I386
    System model name: iMac5,1 (Mac-F4228EC8)
    br,
    tobias

  • Setting a different "reply to" when using gmail via exchange on the iPhone?

    Hi Guys,
    I have been using gmail via IMAP for quite a while on my iPhone, but decided to switch to gmail via exchange. It's really great - instead of polling for emails, they are pushed to the phone - this means a saving on data costs as it's not polling every 15 mins!
    The only problem I am having is that I currently have my own domain name, so my "reply email address" is different to my gmail one.
    When using IMAP, there was the option to set a return address. Under Exchange, the first field is "email" - I thought this might be the return address (as it doesn't seem to have anything to do with my gmail account details) but when I send an email from it, the return address is just my standard gmail one...
    Does anyone know a solution to this?!
    Cheers and thanks,
    Mike

    Hey Graham,
    Thanks for the reply!
    If I do want to stick with gmail, though - is there any way to set up a return address on the iPhone's Exchange, or is it just not an option?
    Cheers,
    Mike

  • Receiving Error 550 when using Exchange via another software application.

    Here's a good one (and I hope I'm able to explain this correctly)....
    I work at a hospital where we have a gym facility that is open to employees and also to the public.  We use a client management system called Twin Oaks.  This Twin Oaks software has email functionality that uses an Exchange user account to send
    group emails out to clients (this avoids the front desk staffers from having to create email distro groups in Outlook to send out mass emails).
    I worked with the Twin Oaks support staff to get the email integration set up with our Exchange server (it was an easy process, entering the SMTP server name then a few other basic settings).
    Emailing through the Twin Oaks software works, but only to clients who have INTERNAL hospital email addresses.  The messages are failing to go out to any client that has an external email address (Error 550 states the address is unavailable).
    Twin Oaks' response to this is that we have some type of firewall that is preventing the delivery of these emails to external addresses.  This is not the case and I can't seem to find any reason that would prevent the mails from going out.  We
    can email external addresses direct from the generic account we set up for this purpose, but for some reason, the mails are not going when they are sent through Twin Oaks application.  
    We are using Exchange Server 2010.  I can't find any transport settings or policies that would prevent emails from going to external addresses and am stumped as to why this isn't working.  
    Has anyone else experienced these types of issues when using Exchange through another software application to send messages?
    Any responses would be greatly appreciated!

    Hi,
    Based on the description, you could send email to external addresses without the Twin Oaks software. However, with the Twin Oaks software, you couldn't send successfully.
    For this issue, I recommend you enable message tracking and check whether you could retrieve message tracking log entires when you send emails to external addresses through the Twin Oaks software.
    If you couldn't retrieve message these tracking log entires when you send emails to external addresses through the Twin Oaks software, it means that the Exchange server is OK and the crux of the problem is the Twin Oaks software.
    Here is an article about message tracking log for your reference.
    Get-MessageTrackingLog
    http://technet.microsoft.com/en-us/library/aa997573(v=exchg.141).aspx
    Best regards,
    Belinda
    Belinda Ma
    TechNet Community Support

  • Missing XInputExtension when using XForwarding over SSH

    Hi!
    I have some problems starting opengl programs (Maya) using XForwarding on my Mac. I get a message telling me XInputExtension is missing.
    %ssh -Y me@alinuxmachine
    %maya
    Xlib: extension "XInputExtension" missing on display "localhost:11.0".
    Segmentation fault
    Any suggestions how I could solve this?

    I was thinking more of
    rsync ... -e 'ssh -l unprivileged-ssh-user' rsync-daemon-user@host::module ...
    together with
    [module]
    uid=root
    so, rsync works as root, but no root login via ssh has to be allowed and no root credentials are needed.
    Another solution, not involving root at all (except from setup) may be setting default ACL, granting to one special backup user read access to backed up tree.
    Edit: ah, I was so used to my "client never initiates backup" policy, I have overlooked that you use this direction. So, what about --fake-user then? I have never used it, but seems relevant.
    Last edited by briest (2012-09-20 18:17:58)

  • Using launchctl via SSH

    Hello everyone. Here's my situation:
    I'm running Leopard Server 10.5.8.
    Recently I made a plist file to put in my users's ~/Library/LaunchAgents folder. It runs an applescript at regular intervals throughout the day. Occasionally I need to stop and relaunch it, which I do using launchctl load ~/Library/LaunchAgents/nameofplist. (or unload, respectively.) This works fine when I'm logged in to the computer using my user's account, which is an admin account. BUT I want to do it via SSH instead. My user's account does not have access to SSH (for a good reason), so I use a special network user account for that. I SSH login remotely via Terminal, and then I type login username using my username and password. Then when I try the launchctl load command, I get this error:
    launch_msg(): Socket is not connected
    Does anyone know how I can get launchctl to work over SSH?

    LittleSaint wrote:
    Why would applescript be the problem? As long as it was compiled as a script and not an application, it should work just fine from a shell.
    Not all shells are equal. An ssh-only connection does not have access to the Aqua user interface.
    In Snow Leopard, the behavior seems to be different than before. It tries harder to find an Aqua session to run against. Before, I could just ssh from the Terminal and verify that my command line applications would or would not work. Now, even if I ssh from another account, if my original account is still logged in, I can still launch applications. I have to logout of my original account, login to a new account, ssh back to the original account and then try
    [jdaniel@pele:506] ~/Desktop $ osascript testit.scpt
    testit.scpt: execution error: An error of type -10810 has occurred. (-10810)
    in order to get the desired failure.
    Also, you have to actually access something in Aqua before it fails. The above error just comes from activating Address Book. If I take that out and just do 'set thename to "Hello"' it works fine. Of course, I don't know what you can do in AppleScript without telling some Aqua application to do it.

  • Space added to path when using graphics extension

    Hi,
    I'm having a strange problem.  I use the 'chart' element of BSP extension 'graphics', but this doesn't show me the generated graph in the portal.
    I've done some debugging and I've found out that this extension uses the method cl_graph_util=>publish_blob for putting the generated image in the server cache and generates a url inside the application.
    For retrieving the current application.  This method uses  
    path = request->get_header_field( '~PATH_TRANSLATED' ).
    Now after this call, the content of the variable 'path' is '/sap/bc/bsp/arinso/EAQ_BP /output/result.do'.  So a space is added after the name of my BSP application and before the subfolder that contains my controller.
    Can anyone tell me where I might have misconfigured something that causes this?
    Thanks,
    Tim

    I couldn't find what causes it, but I've solved it by putting this code, just before the chart tag.
      data l_path type string.
      l_path = request->get_header_field( '~PATH_TRANSLATED' ).
      condense l_path no-gaps.
      request->set_header_field( name = '~PATH_TRANSLATED'
      value = l_path ).

  • Uri-escaping in XSLT-Processor when using html-method in xsl:output

    I've a problem with the XSLT-Processor:
    He tries to escape non-ASCII Characters in the href-Attribute when I use the output method "html". This is correct according to XSLT 1.0 and HTML4, but the processor doesn't really escape the characters, he just gives me a %3F ('?'-character) instead of %HH (where HH corresponds to the hex value of the char).
    I searched the forums and found a thread with the same problem, but there was no solution to this issue. The thread was started in 2002 so maybe someone came up with a solution.

    Add the non-ascii character to <xsl:text disable-output-escaping="yes"></xsl:text>

  • How to prevent large blank spaces on webpage when using Slide Behaviors?

    I searched the forums for similar problems with applying the Slide Behaviour to elements through the DW CS5 interface and found a useful post titled "Problem with Applying Spry "Slide Effect" so now my slide effects works the way I want, except instead of sliding out a caption after clicking on an image, I slide out a list of text items when clicking on a section of text.  This works, but there is a large gap when the webpage first loads. How can I remove/prevent this large white space from appearing?
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <title>Testing Document</title>
    <!--<script type="text/javascript" src="../SpryAssets/SpryEffects.js"></script>-->
    <script src="SpryAssets/SpryEffects.js" type="text/javascript"></script>
    <script type="text/javascript">
    function MM_effectSlide(targetElement, duration, from, to, toggle)
              Spry.Effect.DoSlide(targetElement, {duration: duration, from: from, to: to, toggle: toggle});
    </script>
    </head>
    <body>
    <p> </p>
    <p> </p>
    <style type="text/css">
    #LOdiv{ visibility: hidden;}
    #Countries{ visibility: hidden;}
    </style>
    <p> </p>
    <p> </p>
    <div id="ListOne" onclick="MM_effectSlide('LOdiv', 1000, '0%', '100%', true)">
    <p><strong>Drop Down List One            + show      </strong></p>
    </div>
        <div id="LOdiv">
        <div>
          -  Item A<br/>
          -  Item B<br />
          -  Item C<br />
          -  Item D<br />
          -  Item E<br />
          -  Item F<br />
          -  Item G<br />
          -  Item H<br />
          -  Item I</div>
    </div>
    </div>
    <div id="ListTwo" onclick="MM_effectSlide('Countries', 1000, '0%', '100%', true)">
    <p><strong >List Two            + show </strong></p>
    </div>
    <div id="Countries">
              <div>
                   -  USA<br/>
          -  Germany<br />
          -  France<br />
          -  Italy<br />
          -  Japan<br />
          -  China<br />  
      </div>
    </div>
    <span style=' width:990px; height:21px'><img width=990 height=21
    src="image386.gif">
    </span>
    </body>
    </html>

    The link to the html code can be found at:
    https://docs.google.com/leaf?id=0B_S-KEeOr-KhNzQwYzQ5MWQtNTVhYy00OTg1LWJjYTQtODIzOWUwM2ExM 2Yx&hl=en_US
    but it needs to access the link SpryAssets/SpryEffects.js   (from DW)
    When you open it in a browser you will see a large gap between the two lines:
    "Drop Down List One  +show"  and
    "Drop Down List Two + show"
    clicking the mouse on "Drop Down List One  +show" causes a hidden element to drop down. re-clicking causes it to shrink, and thus removing the large blank space between. I  don't know how to initially present the two lines without the large initial blank gap between them.
    I tried previewing in  Chrome, Firefox, and IE - all look the same.
    Thanks.

  • Failed to run parallel path when using call library function node in LV2009

    I have a problem with two parallel paths not being run in parallel on LabView 2009.
    See the image below.
    This code initializes an external device, the upper part contains a call library function node to download my code into the device. When done, the function returns and the "Done" flag is set to True.
    The lower part contains a call library function node to check the download status, reporting the percentage of downloaded code.
    This updates a progress bar that is referenced by the calling VI module and this works fine in LV 7, 8 and 2011. The lower path of the VI updates the progress bar while the CLFN in the upper part is still downloading code to my device.
    Somehow, in LV2009 this does not work when running this inside my application. When running just the calling VI (the window showing the progress bar) it works but not when that VI is called by my application.
    Is there some limit on parallel threads that is different in 2009 than in other versions ?
    Or is there some other problem in 2009 that might cause this problem ?
    My labview version is 9.0f3 (32-bit).
    Regards,
    Rob

    I've just installed the DETT tool and checked what the different versions of LabView do.
    In LV2009 the application instance runs in a thread (5) but the modal dialog (the VI above) then drops to thread 0 and stays in thread 0.
    In LV2011, stays in the same thread as the application instance and only a trigger event (this could be the progress bar reference?) is executed in thread 0.
    So it seems there is a 'feature' in LV2009 where modal dialogs are by default not following the preferred execution system set in the VI properties ...
    When I change this from "same as caller" into another thread (I used "other 1") then my progress bar works as expected.
    I'm not a LabView thread expert (not even a novice ) so I'm just guessing that "other 1" as a thread is OK. This VI only runs during startup of the application to download the code to my device.
    To answer Ben's question: "What thread does a modal VI run in?":
    In LV2009, the modal VI runs in thread 0 (UI thread ?). When the preferred execution system is set to another thread, the modal dialog still starts in thread 0 but then switches over to the other thread.
    In LV2011, the model VI runs in the caller's thread (preferred execution system set to "follow caller") from start.
    Thanks,
    Rob

  • Why is photoshop taking up so disc space over time when using?

    Hi. I was just doing some basic stuff like masking and what not. and suddenly my system tells me i've used up all of my main drive's space (I had about 10GB free). I am curious as to what is taking up this space and how to I clear it. And also can i shift it to my other drive which has 700GB free.

    You mean you have a miserly 10 GB of available drive space on your boot drive?  ?? !
    If that's what you're saying you are indeed in a heap of trouble!  Those 10 GB will have to be shared by both the swap files of the OS and Photoshop scratch files.  That is insane.  Whenever any hard drive gets to be over 80% full, you are already in trouble.
    The rule of thumb I follow to figure out scratch space for Photoshop alone says to figure on 50 to 100 times the size of your largest file ever multiplied by the number of files you have open.  I have seen the Photoshop scratch file exceed 800 GB once, an admittedly rare occurrence, but it often exceeds 200 GB when stitching large panoramas and the like.
    As an example—and stressing that I'm aware that others have even more scratch space than I do—I keep two dedicated, physically separate hard drives as my primary and secondary Photoshop scratch disks and a lot of GB free on my boot drive for the OS.  I also have 16 GB of RAM installed and I'll be increasing it to 32 GB by the end of this year.
    Additionally, if you only have a single HD, i.e. your boot drive, you'd need it to be large enough to accommodate both the swap files of the OS as well as Photoshop's scratch.

Maybe you are looking for