<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=us-ascii" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Ive have found that Open Office Drawing app (oodraw) is about as easy
as it gets for printing pics. I turn my clients onto that and never
hear back.<br>
<br>
Daniel V wrote:
<blockquote cite="mid:633496.45660.qm@web51910.mail.re2.yahoo.com"
 type="cite">
  <pre wrap="">What printing problems are you having?

I think that picture printing is one of the main reasons people don't completely switch over from MS products to GNU/Linux. 

Daniel V.


--- On Mon, 8/18/08, Joe <a class="moz-txt-link-rfc2396E" href="mailto:josephj@main.nc.us">&lt;josephj@main.nc.us&gt;</a> wrote:

  </pre>
  <blockquote type="cite">
    <pre wrap="">From: Joe <a class="moz-txt-link-rfc2396E" href="mailto:josephj@main.nc.us">&lt;josephj@main.nc.us&gt;</a>
Subject: [nflug] bash syntax problem
To: <a class="moz-txt-link-abbreviated" href="mailto:nflug@nflug.org">nflug@nflug.org</a>
Date: Monday, August 18, 2008, 12:03 AM
Bash syntax often drives me batty.
I'm having a problem printing some digital camera
pictures, so I wrote a
quick and dirty script to verify that the pictures I took
to the photo
shop are the same as the ones that were on the camera flash
card.
The script "chkpix" and it's output are
below.

The problem is in the cmp command line which can't seem
to find the
second file to compare.  The ls and md5sum commands find
the file just
fine, so the path is OK.

When I run the cmp command by itself directly from the
command line
(with no shell variables), it works fine.

I modified the script, eliminating the '\' at
the end of the first cmp
argument and made the command one long line and it worked.

So, what's wrong with breaking up a long command line
with one or more
escaped carriage returns?

Thanks.

Joe

chkpix:

#!/bin/bash
## compare two pictures for identity

cmp "/media/windoze/Documents and Settings/Owner/My
Documents/Images/Rita/Olympus/${1}" \
"/media/windoze/Documents and
Settings/Owner/My Documents/Images/Rita/Even Less
Prints/${1}"
ls -l "/media/windoze/Documents and Settings/Owner/My
Documents/Images/Rita/Olympus/${1}"
ls -l "/media/windoze/Documents and Settings/Owner/My
Documents/Images/Rita/Even Less Prints/${1}"
md5sum -b "/media/windoze/Documents and
Settings/Owner/My
Documents/Images/Rita/Olympus/${1}"
md5sum -b "/media/windoze/Documents and
Settings/Owner/My
Documents/Images/Rita/Even Less Prints/${1}"


bigbird@sananda:~/bin$ bash chkpix P8063647.JPG
cmp:  "/media/windoze/Documents and Settings/Owner/My
Documents/Images/Rita/Even Less Prints/P8063647.JPG":
No such file or
directory
-rwxrwxr-x 1 root ntfs-3g 634499 2008-08-06 17:10
/media/windoze/Documents and Settings/Owner/My
Documents/Images/Rita/Olympus/P8063647.JPG
-rwxrwxr-x 1 root ntfs-3g 634499 2008-08-16 22:05
/media/windoze/Documents and Settings/Owner/My
Documents/Images/Rita/Even Less Prints/P8063647.JPG
5a54b325abb196f4806edb5d7a4cbf2b */media/windoze/Documents
and
Settings/Owner/My
Documents/Images/Rita/Olympus/P8063647.JPG
5a54b325abb196f4806edb5d7a4cbf2b */media/windoze/Documents
and
Settings/Owner/My Documents/Images/Rita/Even Less
Prints/P8063647.JPG
bigbird@sananda:~/bin$

bigbird@sananda:~/bin$ cmp "/media/windoze/Documents
and
Settings/Owner/My
Documents/Images/Rita/Olympus/P8063647.JPG"
"/media/windoze/Documents and Settings/Owner/My
Documents/Images/Rita/Even Less Prints/P8063647.JPG"
bigbird@sananda:~/bin$

_______________________________________________
nflug mailing list
<a class="moz-txt-link-abbreviated" href="mailto:nflug@nflug.org">nflug@nflug.org</a>
<a class="moz-txt-link-freetext" href="http://www.nflug.org/mailman/listinfo/nflug">http://www.nflug.org/mailman/listinfo/nflug</a>
    </pre>
  </blockquote>
  <pre wrap=""><!---->

      
_______________________________________________
nflug mailing list
<a class="moz-txt-link-abbreviated" href="mailto:nflug@nflug.org">nflug@nflug.org</a>
<a class="moz-txt-link-freetext" href="http://www.nflug.org/mailman/listinfo/nflug">http://www.nflug.org/mailman/listinfo/nflug</a>
  </pre>
</blockquote>
</body>
</html>