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 3 of 10 Topic 2167 of 2200
Post > Topic >>

Re: [Linux & PHP] Calling External Scripts

by Draco18s <draco18s2_NO_@[EMAIL PROTECTED] > Apr 16, 2008 at 11:58 AM

In article <1208301459.8661.6.camel@[EMAIL PROTECTED]
>,
v_dragon@[EMAIL PROTECTED]
 
says...
> 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...

*Prods the fuzzy dragon*
So, asks him!

-- 
Lord Draco18s
DC2.Dw Gm L- W- T Phvwalt Sks Cag^ Bco|# A- Fr++ Nu M--- O H+ $ Fo R+++
Ac+ J+
S+ I-# V++ Q++ Tc+++[C++]/Tc--- E+

"Yum!"     |>  v-v-v-v   |>
 |  ,  ,  .|.  |  n  |  .|.
 '. |_/|  | |'''''''''''| |           \
   (q p),-| | HERSHEY'S | |'-._       ))
   /_(/   | | CHO|"|LIT | | )  '-.___//
---W"W----'-'----'-'----'-'----------'--------------
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Bearer of the Bronze Medal for Most Posts in March 2007 (283)
Bearer of the Gold Medal for Most Posts in April 2007 (826)
Holder of the Scroll of Nobility from Lady Viriatha for that win
 




 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 Fri Jul 25 16:58:21 CDT 2008.