Professional Web Applications Themes

ls and backslash - Solaris problem? - Sun Solaris

On a sparc Solaris 9 system, I downloaded some jpegs and was able to view them with xv. When I tried to copy one with the command: cp foobar.jpg /usr/local/pics, I got the error: cp: cannot access foobar.jpg ls -b didn't shed any light on the problem. Only when I used ftp to copy these files to a Linux system was I able to see the trailing backslash on the file name. I don't like having to use Linux to solve Solaris problems. Is there any simple method, besides ls -b, of seeing non-printable characters, or do I have to ...

  1. #1

    Default ls and backslash - Solaris problem?

    On a sparc Solaris 9 system, I downloaded some jpegs and was able to
    view them with xv. When I tried to copy one with the command: cp
    foobar.jpg /usr/local/pics, I got the error: cp: cannot access
    foobar.jpg

    ls -b didn't shed any light on the problem. Only when I used ftp to
    copy these files to a Linux system was I able to see the trailing
    backslash on the file name.

    I don't like having to use Linux to solve Solaris problems. Is there
    any simple method, besides ls -b, of seeing non-printable characters,
    or do I have to specifically look for backslashes? Any there any other
    characters that ls -b doesn't find?
    Mark Baker Guest

  2. #2

    Default Re: ls and backslash - Solaris problem?

    Mark Baker wrote:
    > On a sparc Solaris 9 system, I downloaded some jpegs and was able to
    > view them with xv. When I tried to copy one with the command: cp
    > foobar.jpg /usr/local/pics, I got the error: cp: cannot access
    > foobar.jpg
    >
    > ls -b didn't shed any light on the problem. Only when I used ftp to
    > copy these files to a Linux system was I able to see the trailing
    > backslash on the file name.
    >
    > I don't like having to use Linux to solve Solaris problems. Is there
    > any simple method, besides ls -b, of seeing non-printable characters,
    > or do I have to specifically look for backslashes? Any there any other
    > characters that ls -b doesn't find?
    Sounds to me like there is a trailing space in the filename. Did you start xv and then
    choose the file from the schnauzer?

    Try
    mv foobar.jpg* foobar.jpg



    --
    -----BEGIN GEEK CODE BLOCK-----
    Version: 3.1
    GO/! d- s++:+ a+ C++(++++) US++++$ UB++ U*++ P+++ L+++ E--- W+++ N++ w--- O-
    M+ V- PS+ PE+ Y+ PGP t+ 5++ X R* tv+ b+ DI++ D G e(*) h++/-- r+++ y?
    ------END GEEK CODE BLOCK------

    -----------------------------------------------------
    Bob Hoekstra: APL & Unix Consultant
    Telephone: +44 1483 771028
    Mobile: +44 7710 562345
    Email: [email]Bob.HoekstraHoekstraSystems.ltd.uk[/email]
    -----------------------------------------------------

    Bob Hoekstra Guest

  3. #3

    Default Re: ls and backslash - Solaris problem?

    In article <3f1ca54d$0$23594$5a62ac22freenews.iinet.net.au >,
    Mark Baker <bakercomputer.org> wrote:
    >The files were created from from yEnc binaries using a ydec program. The
    >command
    >ls foo* would list it,
    Ok, not seeing where there's a problem, yet.
    >but ls foobar.jpg would fail.
    why would you expect "ls foobar.jpg" to possibly return a file listing
    for a file that was named "fobar.jpg\"???

    As to why simply ls'ing the directory doesn't show it on your system,
    it sounds like a local problem. if I `touch "foo\" ; ls`, then foo\
    shows up in the output. If I specifically do an `ls foo\\`, the
    file also shows up (with ksh, you have to escape the "\" as it is
    a reserved token).

    If your system is behaving differently, you may have a deeper issue with
    you system.

    -tom

    --

    "You can only be -so- accurate with a claw-hammer." --me
    Thomas H Jones II Guest

Similar Threads

  1. problem: masked backslash in form
    By teppichman in forum PHP Development
    Replies: 1
    Last Post: October 13th, 08:49 AM
  2. Trailing backslash on URL problem
    By Lee in forum PHP Development
    Replies: 1
    Last Post: October 2nd, 12:28 AM
  3. Replies: 1
    Last Post: September 17th, 02:56 PM
  4. backslash
    By janet in forum ASP
    Replies: 1
    Last Post: August 22nd, 09:56 AM
  5. problem of backslash conversion with MKS perl
    By Dozy Choi in forum PERL Miscellaneous
    Replies: 1
    Last Post: June 27th, 10:04 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139