note 36197 rejected from function.exec by vincent

From: Date: Tue, 30 Sep 2003 15:08:46 +0000
Subject: note 36197 rejected from function.exec by vincent
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-57502@lists.php.net to get a copy of this message
Note Submitter: deepc2001@graffiti.net ---- Has anybody an idea how to run this script via PHP: #!/bin/sh echo $2 | smbclient -M $1 This should send an Windowsmessage to an user $1 with the text $2. My problem is, that only the first word of the text is send. So $2 must lock something like "text" I tried this versions: 1. exec(" /usr/scripts/ndtowin $user $text2 "); 2. exec(" /usr/scripts/ndtowin $user \"$text2\" "); 3. $f = escapeshellcmd($text); system("/usr/scripts/ndtowin $user \"$f\""); 4. exec("/usr/scripts/ndtowin $user" . " " . escapeshellarg($text)); but nothing works. Anyone an Idea? DC

« previous php.notes (#57502) next »