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

RE: [cobalt-users] Executing a file in /bin via web page



Little addennum to that. Your web pages would probably need to end in .shtml
instead of .html to allow SSI (Server Side Includes) to run - Enable in
siteadmin or if you've hacked the Apache config already you won't need to.

--Neil

-----BEGIN GEEK CODE BLOCK-----
Version: 3.12 - http://www.geekcode.com/
GCM d s: a-- C++++ UL++++ P++ L+++ E- W+++ N- o-- K- 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------


-----Original Message-----
From: cobalt-users-admin@xxxxxxxxxxxxxxx
[mailto:cobalt-users-admin@xxxxxxxxxxxxxxx]On Behalf Of Clayton McGow
Sent: 04 January 2000 20:28
To: cobalt-users@xxxxxxxxxxxxxxx
Subject: Re: [cobalt-users] Executing a file in /bin via web page



There's a really easy way...

1) make sure the permissions are set on the script or app to be executable
2) inlude a line like this in your html code  <!--#exec
cmd="your_scripts_path" -->

That's it!!


Tom Socha wrote:
>
> I have a simple shell script in the /bin directory called RPD,
> it simple copies a file to a backup directory and renames the origianl
> file.
>
> I am trying to figure out how to just have a button on a web page that a
> user can click and it will execute the file.
>
> Any ideas?
>
> Tom Socha
> Technical Services
> MoJo Graphics
> http://www.mojographics.com
>
> _______________________________________________
> cobalt-users mailing list
> cobalt-users@xxxxxxxxxxxxxxx
> http://list.cobalt.com/mailman/listinfo/cobalt-users

--
Clayton McGow
support@xxxxxxxxxxx
http://www.atoznet.com

_______________________________________________
cobalt-users mailing list
cobalt-users@xxxxxxxxxxxxxxx
http://list.cobalt.com/mailman/listinfo/cobalt-users