Re: exec("echo ... issuse

From: Date: Wed, 25 Sep 2002 10:23:18 +0000
Subject: Re: exec("echo ... issuse
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-117545@lists.php.net to get a copy of this message
Oops, I didn't read on Sorry Henry "Henry" <henry@teacake.f9.co.uk> wrote in message news:20020925102235.74173.qmail@pb1.pair.com... > use \" instead of " so that you don't actually end the string > > Henry > > "Mario Ohnewald" <mario.ohnewald@gmx.de> wrote in message > news:001801c2647a$070aa100$350aa8c0@W2KDP... > > Hello! > > I want to write a line into a file (called $script) wich goes like that: > > > > echo "date 192.168.10.123 is down, lets call > > the admin. I was > > sleeping for 10 Minutes | smbclient -M Computer > > > > This is what i have tried: > > exec("echo " echo "date ===> $ip > > is down, lets call the admin. I > > was sleeping for $var_timer_rechner1 Minutes" | smbclient -M $popup_1" >> > > $script"); > > > > The problem is that after > > exec("echo " > > its command ends due to that ". > > > > I tried \" to let php ignore this " but then it doesn´t write my " > anymore: > > exec("echo \" echo \"date ===> > > $ip is down, lets call the admin. > I > > was sleeping for $var_timer_rechner1\" | smbclient -M $popup_1\" >> > > $script"); > > > > this is the result: > > echo Wed Sep 25 12:29:17 CEST 2002 ===> 192.168.10.1 is down, lets call > the > > admin. I was sleeping for | smbclient -M Server > > > > but i want: > > echo "Wed Sep 25 12:29:17 CEST 2002 ===> 192.168.10.1 is down, lets call > the > > admin. I was sleeping for" | smbclient -M Server > > > > ^^ > > ^^ > > missing > > missing > > > > > > Can anyone tell me where the my mistake is? > > > > > > Cheers, Mario > > > >

« previous php.general (#117545) next »