Re: Aliases in cgis

2002-10-26 Thread Yennie

In a message dated 10/26/02 7:50:23 PM, [EMAIL PROTECTED] writes:
Oop, just caught this one after hurredly replying to the last!
I never knew that Terminal tip, however =). While we're at it, for anyone not familiar, if you are ever trying to *type* a path into the terminal as a command-line argument, you can always hit  to auto-complete the path.

Brian


Wait -- it works. I found a stupid mistake in the file path. Funny how 
using the right path makes a difference. :)

So here is today's tip for anyone like me who has fat fingers: drag the 
file whose path you need directly into the Terminal window. It figures 
out the file path for you, and all you have to do is copy/paste it into 
your script. I wish I'd done that to begin with...





Re: Aliases in cgis

2002-10-26 Thread Yennie
Only thing I can think of off the top of my head... make sure the file path is in POSIX-style (what you'll see in the 2.4.3 version for Mac when you use "answer file").
It should look like:

/MyFiles/stack.mc

but NOT like

/Macintosh HD/MyFiles/stack.mc

That is... leave off the volume name.

What happens if you try to open and read a text file from the same folder- does that work?

Brian



Re: Aliases in cgis

2002-10-26 Thread J. Landman Gay
On 10/26/02 6:29 PM, J. Landman Gay wrote:

On 10/26/02 6:09 PM, andu wrote:


So you want to have the stack at hand not the cgi script? Make sure 
you have the correct path to the stack and it should work.

Wait -- it works. I found a stupid mistake in the file path. Funny how 
using the right path makes a difference. :)

So here is today's tip for anyone like me who has fat fingers: drag the 
file whose path you need directly into the Terminal window. It figures 
out the file path for you, and all you have to do is copy/paste it into 
your script. I wish I'd done that to begin with...

--
Jacqueline Landman Gay | [EMAIL PROTECTED]
HyperActive Software   | http://www.hyperactivesw.com

___
metacard mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/metacard


Re: Aliases in cgis

2002-10-26 Thread J. Landman Gay
On 10/26/02 6:09 PM, andu wrote:


So you want to have the stack at hand not the cgi script? Make sure you 
have the correct path to the stack and it should work. The only other 
thing that comes to mind is, you might need an engine where the stack is...

Right, I want the script in the cgi folder to access the stack in my 
user folder. A sym link isn't working. I also tried putting the full 
path to the stack into the script, but that doesn't work either. Maybe 
there is no way to do it.

--
Jacqueline Landman Gay | [EMAIL PROTECTED]
HyperActive Software   | http://www.hyperactivesw.com

___
metacard mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/metacard


Re: Aliases in cgis

2002-10-26 Thread andu


--On Saturday, October 26, 2002 17:28:27 -0500 "J. Landman Gay" 
<[EMAIL PROTECTED]> wrote:

On 10/26/02 4:55 PM, andu wrote:


Not sure what server you are using but for Apache there is a config file
directive:


Yes, Apache.


ScriptAlias /cgi-bin/ "/my-directory/cgi-bin/"


   AllowOverride None
   Options None
   Order allow,deny
   Allow from all
   

which is meant to do what you want. The  allows
for other options as well. BTW, make sure you understand the difference
between an alias and a [sym]link since they are not the same. Hope this
helps.


I found this already set up in the config file. The note in there about
scriptalias basically says it allows you to set a different cgi folder,
but all I want is a file alias. There is a similar configuration for
plain aliases -- maybe I need to set that?

I don't know much about this, but it seems important that the file will
be opened by MC and not by the server. When an MC script starts using a
stack, does the server config file even matter? The request isn't coming
in over the network when that happens.


So you want to have the stack at hand not the cgi script? Make sure you 
have the correct path to the stack and it should work. The only other thing 
that comes to mind is, you might need an engine where the stack is...



--
Jacqueline Landman Gay | [EMAIL PROTECTED]
HyperActive Software   | http://www.hyperactivesw.com

___
metacard mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/metacard





Regards, Andu Novac
___
metacard mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/metacard



Re: Aliases in cgis

2002-10-26 Thread J. Landman Gay
On 10/26/02 4:57 PM, Pierre Sahores wrote:


Did you try in inverting the problem, by letting the stack in the cgi
folder and putting an alias of it in your user folder ?


I didn't try it, though I thought of it. But I usually only back up my 
user folder, so I like to keep all my files in there if possible. Right 
now I'm making a copy of the stack to put in the cgi folder, but I was 
hoping to avoid that step by reading the stack directly.

--
Jacqueline Landman Gay | [EMAIL PROTECTED]
HyperActive Software   | http://www.hyperactivesw.com

___
metacard mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/metacard


Re: Aliases in cgis

2002-10-26 Thread J. Landman Gay
On 10/26/02 4:55 PM, andu wrote:


Not sure what server you are using but for Apache there is a config file 
directive:

Yes, Apache.


ScriptAlias /cgi-bin/ "/my-directory/cgi-bin/"


   AllowOverride None
   Options None
   Order allow,deny
   Allow from all
   

which is meant to do what you want. The  allows 
for other options as well. BTW, make sure you understand the difference 
between an alias and a [sym]link since they are not the same. Hope this 
helps.

I found this already set up in the config file. The note in there about 
scriptalias basically says it allows you to set a different cgi folder, 
but all I want is a file alias. There is a similar configuration for 
plain aliases -- maybe I need to set that?

I don't know much about this, but it seems important that the file will 
be opened by MC and not by the server. When an MC script starts using a 
stack, does the server config file even matter? The request isn't coming 
in over the network when that happens.


--
Jacqueline Landman Gay | [EMAIL PROTECTED]
HyperActive Software   | http://www.hyperactivesw.com

___
metacard mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/metacard


Re: Aliases in cgis

2002-10-26 Thread Pierre Sahores
Hello Jacque,
> 
> I have a MetaCard cgi script on my local network (OS X) that puts a
> stack in use. It works fine as long as the stack is in the
> CGI-Executables folder. What I want to do is keep the stack outside the
> cgi folder but still readable by the cgi script, so that the data
> returned by the script is always current with the stack in my user folder.

Did you try in inverting the problem, by letting the stack in the cgi
folder and putting an alias of it in your user folder ? Else, by
default, the macosx finder aliases are only usables inside the current
home account of the logged user. Are you sure that the cgi script and
stack owners are set as needed ?
 
> I set the permissions for the stack in my user folder to 755. I tried
> putting the long path to the stack into the script but it didn't work
> (but maybe I got the path wrong.) I tried putting a Mac alias made in
> the Finder into the cgi folder, as well as a unix-type aliases made in
> Terminal. Neither of those worked either. I set the http.config file for
> my user name to include "useSymLinks" in the options line (though I
> don't think that file is consulted,) and the Mac http.config file
> already includes it.

Because i'm only a newbie in about MacOSX (and still prefer Linux to
work in about web toys !), i can't figure more how to help...

> Is it possible to do what I want, and if so, can someone give
> idiot-proof directions?
> 
> --
> Jacqueline Landman Gay | [EMAIL PROTECTED]
> HyperActive Software   | http://www.hyperactivesw.com
> 
> ___
> metacard mailing list
> [EMAIL PROTECTED]
> http://lists.runrev.com/mailman/listinfo/metacard

-- 
Best Regards, Pierre Sahores

Inspection académique de Seine-Saint-Denis.
Applications et bases de données WEB et VPN
Qualifier et produire l'avantage compétitif
___
metacard mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/metacard



Re: Aliases in cgis

2002-10-26 Thread andu


--On Saturday, October 26, 2002 16:21:52 -0500 "J. Landman Gay" 
<[EMAIL PROTECTED]> wrote:

I have a MetaCard cgi script on my local network (OS X) that puts a stack
in use. It works fine as long as the stack is in the CGI-Executables
folder. What I want to do is keep the stack outside the cgi folder but
still readable by the cgi script, so that the data returned by the script
is always current with the stack in my user folder.

I set the permissions for the stack in my user folder to 755. I tried
putting the long path to the stack into the script but it didn't work
(but maybe I got the path wrong.) I tried putting a Mac alias made in the
Finder into the cgi folder, as well as a unix-type aliases made in
Terminal. Neither of those worked either. I set the http.config file for
my user name to include "useSymLinks" in the options line (though I don't
think that file is consulted,) and the Mac http.config file already
includes it.

Is it possible to do what I want, and if so, can someone give idiot-proof
directions?


Not sure what server you are using but for Apache there is a config file 
directive:

ScriptAlias /cgi-bin/ "/my-directory/cgi-bin/"


   AllowOverride None
   Options None
   Order allow,deny
   Allow from all
   

which is meant to do what you want. The  allows for 
other options as well. BTW, make sure you understand the difference between 
an alias and a [sym]link since they are not the same. Hope this helps.


--
Jacqueline Landman Gay | [EMAIL PROTECTED]
HyperActive Software   | http://www.hyperactivesw.com

___
metacard mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/metacard





Regards, Andu Novac
___
metacard mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/metacard



Aliases in cgis

2002-10-26 Thread J. Landman Gay
I have a MetaCard cgi script on my local network (OS X) that puts a 
stack in use. It works fine as long as the stack is in the 
CGI-Executables folder. What I want to do is keep the stack outside the 
cgi folder but still readable by the cgi script, so that the data 
returned by the script is always current with the stack in my user folder.

I set the permissions for the stack in my user folder to 755. I tried 
putting the long path to the stack into the script but it didn't work 
(but maybe I got the path wrong.) I tried putting a Mac alias made in 
the Finder into the cgi folder, as well as a unix-type aliases made in 
Terminal. Neither of those worked either. I set the http.config file for 
my user name to include "useSymLinks" in the options line (though I 
don't think that file is consulted,) and the Mac http.config file 
already includes it.

Is it possible to do what I want, and if so, can someone give 
idiot-proof directions?

--
Jacqueline Landman Gay | [EMAIL PROTECTED]
HyperActive Software   | http://www.hyperactivesw.com

___
metacard mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/metacard