Re: g_spawn_async_with_pipes error while opening a file



On Sat, Mar 15, 2003 at 06:35:15AM -0800, Neil Hodge wrote:
/usr/bin/nomadii --internal --send
"/mnt/disk2/home2/nhodge/music/rock/Metallica - Garage Inc. [Disc 2] -
01 - Helpless.mp3"

(i.e., with a command line option that requires opening a file on the
local file system) and I keep getting the following error:

Error: Could not send file "/mnt/disk2/home2/nhodge/music/rock/Metallica
- Garage Inc. [Disc 2] - 01 - Helpless.mp3": reading file - No such file
or directory

Quotes are used by shells to indicate the characters between them are
one parameter.  g_spawn_async_with_pipes takes an array for argv, so the
separation between parameters is explicit.  You should be passing it the
filename without quotes.

It cannot open a file called 
  "foo"
because no such file exists-- it is named
  foo
.

-- 
      Evan Martin
martine cs washington edu
  http://neugierig.org



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]