Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Gaming > Dragons > Re: [Linux & PH...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 2 of 10 Topic 2167 of 2199
Post > Topic >>

Re: [Linux & PHP] Calling External Scripts

by v_dragon <v_dragon@[EMAIL PROTECTED] > Apr 15, 2008 at 06:17 PM

On Tue, 2008-04-15 at 16:33 -0400, Draco18s wrote:
> Is there a way for a php script (running on Linux) to call a sed command
or 
> bash script containing the sed command?
> 
> The other thing I need to know is how to put a variable into the sed
call?
> 
> I.E. the call I want to make would be something like this:
> sed -e 's/UserName12ch/$username/g' $file > $file2 mv -f $file2 $file
> 
> where $file and $username are pre-defined in the php script (the $file
file-
> path has another variable, dependant on the user number, but that's
irrelevant 
> here).
> 
<_< you should ask this to my Mate..he might know...



-- 
Vincent

DC2.D Gm L W- T- Phwalt Skh Cta,bta+ Bco/fl A Fr++ Nn
 M O H--- Fo R+++! Ac+ J+ S? I---# V? Q? Tc++[Technition] E+
www.vincentthedragon.com/bio/me_the_dragon.html

Visit my Blog/Lair @[EMAIL PROTECTED]
 www.vincentthedragon.com
Updated twice weekly 
v_dragon@[EMAIL PROTECTED]
 IM  vincent_the_dragon
SeconLife  VincentTheDragon Wei
Up the Irons!
---------------------------
Duke of Dutch Ovens [DoDo]
(currently offline)dutchovenfaq.htm
<'cause few know what a dutch oven is>
Priest in charge of the pastries
Participant in the March 07 Flood Award
---------------------------
 "The tears of a Dragon,
  For you and for me."
    -Bruce Dickinson
 




 10 Posts in Topic:
[Linux & PHP] Calling External Scripts
Draco18s <draco18s2_NO  2008-04-15 16:33:36 
Re: [Linux & PHP] Calling External Scripts
v_dragon <v_dragon@[EM  2008-04-15 18:17:39 
Re: [Linux & PHP] Calling External Scripts
Draco18s <draco18s2_NO  2008-04-16 11:58:38 
Re: [Linux & PHP] Calling External Scripts
darkside <darksidex3@[  2008-04-19 11:09:43 
Re: [Linux & PHP] Calling External Scripts
Draco18s <draco18s2_NO  2008-04-21 14:43:07 
Re: [Linux & PHP] Calling External Scripts
darkside <darksidex3@[  2008-04-28 14:54:33 
Re: [Linux & PHP] Calling External Scripts
Draco18s <draco18s2_NO  2008-04-28 16:43:58 
Re: [Linux & PHP] Calling External Scripts
Simon Richard Clarkstone   2008-04-28 22:23:25 
Re: [Linux & PHP] Calling External Scripts
Draco18s <draco18s2_NO  2008-04-29 23:00:34 
Re: [Linux & PHP] Calling External Scripts
Simon Richard Clarkstone   2008-05-04 03:25:09 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Thu Jul 24 15:45:40 CDT 2008.