note 88605 added to function.exec

From: Date: Sat, 31 Jan 2009 08:26:51 +0000
Subject: note 88605 added to function.exec
Groups: php.notes 
Request: Send a blank email to php-notes+get-150028@lists.php.net to get a copy of this message
I have an issue that so far anybody was able to help me. I have to execute the following shell command (disable DTR in a serial stream to avoid a serial triggering on my embedded system...it causes, by mean of DTR line, an autoreset every time a serial connection is opened...): stty -F /dev/USB0 -hupcl so I pass it to a php script: exec ("stty -F /dev/USB0 -hupcl"); but it doesn't work....after this exec DTR still working. ....then I try to make syntax error [so to see if command is processed].... exec ("stty -F /dev/USB0 -hdjshdjs"); and apache log tell me that stty doesn't have this option..so the command is processed by apache. I was wondering where I am mistaking. Thanks in advance ---- Server IP: 213.92.11.19 Probable Submitter: 89.97.190.82 ---- Manual Page -- http://www.php.net/manual/en/function.exec.php Edit -- https://master.php.net/note/edit/88605 Del: integrated -- https://master.php.net/note/delete/88605/integrated Del: useless -- https://master.php.net/note/delete/88605/useless Del: bad code -- https://master.php.net/note/delete/88605/bad+code Del: spam -- https://master.php.net/note/delete/88605/spam Del: non-english -- https://master.php.net/note/delete/88605/non-english Del: in docs -- https://master.php.net/note/delete/88605/in+docs Del: other reasons-- https://master.php.net/note/delete/88605 Reject -- https://master.php.net/note/reject/88605 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#150028) next »