From: "Cooper Jr., Franklin" <fcooper@ti.com>
To: "Zhang, Hao" <hzhang@ti.com>,
"meta-arago@arago-project.org" <meta-arago@arago-project.org>
Subject: Re: [PATCH] matrix-lighttpd-config: add static cgi and .out support in Matrix PHP
Date: Wed, 24 Apr 2013 19:40:46 +0000 [thread overview]
Message-ID: <8F29D6B095ED194EA1980491A5E029710C432969@DFLE08.ent.ti.com> (raw)
In-Reply-To: <ECA334CFBA16F74DB2C66A2F1181F4D63C2B1F41@DLEE09.ent.ti.com>
Matrix already has the ability to run shell scripts so I don't understand why you need this .cgi which still executes shell commands. Is there some kind of limitation your running into?
Your utility_info.sh would contain:
echo " System Up Time"
cat /proc/uptime
echo "CPU Info"
cat /proc/cpuinfo
echo "Linux version
uname -srm
TMPFILE=`mktemp`
mount | awk ' {print "device ", $1," mounted on ",$3, " as ", $5, "filesystem"}' > $TMPFILE
echo "Mount Info"
cat $TMPFILE
rm $TMPFILE
echo "Network Interfaces"
ifconfig
echo "Routing table"
route
echo "Module Info"
lsmod
And your utility_info.desktop will be set to:
Exec=utility_info.sh
> -----Original Message-----
> From: Zhang, Hao
> Sent: Wednesday, April 24, 2013 2:27 PM
> To: Cooper Jr., Franklin; meta-arago@arago-project.org
> Subject: RE: [meta-arago] [PATCH] matrix-lighttpd-config: add static cgi and .out
> support in Matrix PHP
>
> See attached the example.
>
> -----Original Message-----
> From: Cooper Jr., Franklin
> Sent: Wednesday, April 24, 2013 3:17 PM
> To: Zhang, Hao; meta-arago@arago-project.org
> Subject: RE: [meta-arago] [PATCH] matrix-lighttpd-config: add static cgi and .out
> support in Matrix PHP
>
> cgi.assign = ( ".php" => "/usr/bin/php-cgi", ".cgi" => "/bin/sh", ".o" =>
> "" )
>
> Can you give an example of the .cgi and .o file that requires this change?
>
>
> > -----Original Message-----
> > From: meta-arago-bounces@arago-project.org [mailto:meta-arago-
> > bounces@arago-project.org] On Behalf Of Zhang, Hao
> > Sent: Wednesday, April 24, 2013 1:29 PM
> > To: meta-arago@arago-project.org
> > Subject: [meta-arago] [PATCH] matrix-lighttpd-config: add static cgi
> > and .out support in Matrix PHP
> >
> > From: Hao Zhang <hzhang@ti.com>
> >
> > ---
> > .../matrix-lighttpd-config/lighttpd.conf.matrix | 4 ++--
> > 1 file changed, 2 insertions(+), 2 deletions(-)
> >
> > diff --git a/meta-arago-extras/recipes-core/matrix/matrix-lighttpd-
> > config/lighttpd.conf.matrix b/meta-arago-extras/recipes-
> > core/matrix/matrix-lighttpd-config/lighttpd.conf.matrix
> > index 82a9fb8..2dce736 100755
> > --- a/meta-arago-extras/recipes-core/matrix/matrix-lighttpd-
> > config/lighttpd.conf.matrix
> > +++ b/meta-arago-extras/recipes-core/matrix/matrix-lighttpd-config/lig
> > +++ ht
> > +++ tpd.conf.matrix
> > @@ -137,7 +137,7 @@ $HTTP["url"] =~ "\.pdf$" { # which extensions
> > should not be handle via static-file transfer # # .php, .pl, .fcgi
> > are most often handled by mod_fastcgi or mod_cgi
> > -static-file.exclude-extensions = ( ".php", ".pl", ".fcgi" )
> > +static-file.exclude-extensions = ( ".php", ".pl", ".fcgi", ".cgi", ".o"
> > +)
> >
> > ######### Options that are good to be but not neccesary to be changed
> > #######
> >
> > @@ -225,7 +225,7 @@ compress.filetype = ("text/plain",
> > "text/html","text/javascript","text/
> > # )
> >
> > #### CGI module
> > -cgi.assign = ( ".php" => "/usr/bin/php-cgi")
> > +cgi.assign = ( ".php" => "/usr/bin/php-cgi", ".cgi" => "/bin/sh",
> > ".o" => "" )
> > #cgi.assign = ( ".pl" => "/usr/bin/perl",
> > # ".cgi" => "/usr/bin/perl" )
> > #
> > --
> > 1.7.9.5
> >
> > _______________________________________________
> > meta-arago mailing list
> > meta-arago@arago-project.org
> > http://arago-project.org/cgi-bin/mailman/listinfo/meta-arago
next prev parent reply other threads:[~2013-04-24 19:40 UTC|newest]
Thread overview: 31+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-04-24 18:29 [PATCH] matrix-lighttpd-config: add static cgi and .out support in Matrix PHP hzhang
2013-04-24 19:16 ` Cooper Jr., Franklin
2013-04-24 19:21 ` Denys Dmytriyenko
2013-04-24 19:26 ` Zhang, Hao
2013-04-24 19:40 ` Cooper Jr., Franklin [this message]
2013-04-25 0:51 ` Zhang, Hao
2013-04-25 23:42 ` Cooper Jr., Franklin
2013-04-24 19:41 ` Denys Dmytriyenko
2013-08-01 5:33 ` error while building yocto for am335x siva
2013-08-01 8:09 ` Maupin, Chase
2013-08-01 8:47 ` Sivaprasad Pala (RBEI/EAA1)
2013-08-01 8:57 ` Maupin, Chase
2013-08-01 14:17 ` Denys Dmytriyenko
2013-08-07 8:05 ` Sivaprasad Pala (RBEI/EAA1)
2013-08-07 9:28 ` Maupin, Chase
2013-08-07 11:41 ` Sivaprasad Pala (RBEI/EAA1)
2013-08-07 12:03 ` Maupin, Chase
2013-08-07 12:14 ` Sivaprasad Pala (RBEI/EAA1)
2013-08-07 12:16 ` Maupin, Chase
2013-08-07 12:19 ` Sivaprasad Pala (RBEI/EAA1)
2013-08-07 12:22 ` Maupin, Chase
2013-08-07 12:33 ` Sivaprasad Pala (RBEI/EAA1)
2013-08-07 12:43 ` Maupin, Chase
2013-08-07 12:53 ` Sivaprasad Pala (RBEI/EAA1)
2013-08-07 14:24 ` Denys Dmytriyenko
2013-08-07 16:31 ` Sivaprasad Pala (RBEI/EAA1)
2013-08-07 16:57 ` Denys Dmytriyenko
2013-08-08 8:02 ` Sivaprasad Pala (RBEI/EAA1)
2013-08-07 12:43 ` Maupin, Chase
2013-08-07 12:19 ` Maupin, Chase
2013-08-07 12:22 ` Sivaprasad Pala (RBEI/EAA1)
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=8F29D6B095ED194EA1980491A5E029710C432969@DFLE08.ent.ti.com \
--to=fcooper@ti.com \
--cc=hzhang@ti.com \
--cc=meta-arago@arago-project.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.