Pantek Library
Hosting Provided By
CybrHost
High Speed Hosting

Re: shell script cgi (summary?)

From: Andre Breiler <andre.breiler(at)teamwerk.com>
Date: Tue Nov 19 2002 - 14:26:15 EST


On Tue, 19 Nov 2002, Brian Fury wrote:

> On Mon, 18 Nov 2002, you wrote:

It shouldn't as long as you don't change the meaning of it.

> [root@localhost lib]# export LAME=""whoami""""

Yes that will work because the shell expands the `...` into "whoami". So that you have:
 [root@localhost lib]# 'whoami'
after expansion.

In the original example the expanded bit got stored in an variable so the after expansion the command would look like:  [root@localhost lib]# ua='whoami'
.
So no futher execution (notes I used ' to show that the shell expands things only once).

> In case you didn't realise - it'z the ` and ` characters around the whole

Yes the idea behin `` is that it gets executed and replaced by the output of it. If this output will get executed depends if you are useing the output as command (your example) or not (the original example).

Do you need help?X

Bye Andre' Received on Wed Nov 20 03:18:06 2002

This archive was generated by hypermail 2.1.8 : Wed Aug 23 2006 - 14:07:37 EDT


Contact Us  Legal Notices  Order Services Online 
Pantek Home  Privacy Policy  IT news  Site Map  Pantek Library