File accessing

From: Xiaoshen Li (xli6_at_gmu.edu)
Date: 09/26/03


Date: Fri, 26 Sep 2003 12:25:29 -0400

Hi:

I noticed in Linux: when my program needs to access a file, that file
must be in the current directory. Even the file is in the parent
directory, Linux will not find it.

My question: I have a file which basically needs to be accessed from
different directories. How can I make that file be accessable from
different directories?

I know I can make links in every directory to do that. But I am curious
if there is some better ways.

Thank you very much.

Xiaoshen



Relevant Pages

  • Re: File accessing
    ... when my program needs to access a file, ... Linux will not find it. ... has read/write or whatever permissions for that file in that directory. ...
    (comp.os.linux.misc)
  • Re: File accessing
    ... when my program needs to access a file, ... Linux will not find it. ... file in '/etc' or '$HOME/.mydir/myfile' (man getenv). ...
    (comp.os.linux.development.apps)
  • Re: File accessing
    ... when my program needs to access a file, ... Linux will not find it. ... file in '/etc' or '$HOME/.mydir/myfile' (man getenv). ...
    (comp.os.linux.development.apps)
  • Re: Source for "script" program
    ... The program needs to run on a variety of UNIX-y systems: Linux, ... Perhaps I should look into the freebsd ... flavor, although I'll start by taking a look at the Linux version. ...
    (comp.unix.programmer)
  • File accessing
    ... I noticed in Linux: when my program needs to access a file, ... Even the file is in the parent ... I have a file which basically needs to be accessed from ...
    (comp.os.linux.misc)