note 81544 added to function.exec
| From: | stefanfj at gmx dot de | Date: | Mon, 03 Mar 2008 15:29:25 +0000 |
| Subject: | note 81544 added to function.exec | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-136695@lists.php.net to get a copy of this message | ||
If you try to use the psexec from Sysinternals on your Windows Server for background-processes that
need special user-rights and get an "Access denied" oder "Wrong user or
password" notice, although your username and password is right, this could help you getting
around this bug.
<?php
$command = "c:\directory1\psexec.exe \\127.0.0.1 -u username -p password
c:\directory2\commandtoexecute.exe";
exec($command);
?>
----
Server IP: 212.124.37.9
Probable Submitter: 88.217.25.40
----
Manual Page -- http://www.php.net/manual/en/function.exec.php
Edit -- https://master.php.net/note/edit/81544
Del: integrated -- https://master.php.net/note/delete/81544/integrated
Del: useless -- https://master.php.net/note/delete/81544/useless
Del: bad code -- https://master.php.net/note/delete/81544/bad+code
Del: spam -- https://master.php.net/note/delete/81544/spam
Del: non-english -- https://master.php.net/note/delete/81544/non-english
Del: in docs -- https://master.php.net/note/delete/81544/in+docs
Del: other reasons-- https://master.php.net/note/delete/81544
Reject -- https://master.php.net/note/reject/81544
Search -- https://master.php.net/manage/user-notes.php