Exec() Function
I'm having trouble getting the exec() function to work in my script. I have never worked with this function and before I contact my server admin I want to verify my code is correct. script_name.php is in the same directory as this script that is running exec(). Is this correct?
exec("./script_name.php &");
View Complete Forum Thread with Replies
Related Forum Messages:
Warning: Ftp_exec() [function.ftp-exec]: SITE EXEC Is An Unknown Extension
This is kind of a part II to a question a posted earlier about exec and shell_exec not working. I'm trying to use ftp_exec to execute some simple command: $conn_id = ftp_connect("$server") or die ("Cannot initiate connection to host"); ftp_login($conn_id, "$username", "$userpass") or die("Cannot login"); $command = 'cd..' if (ftp_exec($conn_id, $command)) { echo "$command executed successfully"; } else { echo "could not execute $command"; } ftp_close($conn_id); I'm getting the following error: Warning: ftp_exec() [function.ftp-exec]: SITE EXEC is an unknown extension in /home/urieilam/public_html/work/video/test1.1.php on line 21 could not execute cd.. Have tried other commands as well, get the same. Could this be a security issue or something to do with p Safe Mode? I don't know much about commands, shell, etc..
View Replies !
Warning: Exec() [function.exec]:
I'm using PHP Version 5.0.4 in IIS5, Window 2003. When I execute my script, it prompt me the following error : Warning: exec() [function.exec]: Unable to fork [ping 10.8.1.70] in c:Inetpubwwwrootswitch.php on line 62 Below is my script : <?php $line1 = exec("ping 10.8.1.70", $output); exit; ?>
View Replies !
Exec Function
Iv tried using this exec function and iv never used it before today.. im not completely sure what it does. <?php $command = "/movie/Without a Paddle.avi"; echo exec($command); ?> I hoped that this script would open up a movie, but it doesnt. I am using this function completely wrong or is there a problem with my code?
View Replies !
Function Exec
I'm trying to execute a command with "exec" but it doesn't work. Here is my code : PHP Code: exec("../../blast/blastall -p blastn -d est.txt -i testseq.txt -o test.txt"); I'm sure that my scrypt reads this line but nothing happen. Does someone know how to use this function ?
View Replies !
PHP Exec Function No Output
I am running PHP 5.1.6 (cli) on Linux. When i use the exec($cmd, $output, $return) command the $output array is always blank if the command had an error in it. There are only values if the command was successful. How do I capture the error text returned?...
View Replies !
Php Exec() Function Is Not Working
I am trying to execute linux command with php. I am try to log on as super user, so I have used the following code: exec("su root"); exec("<password>"); But I dont think its working, becuase if I want to change my directory and view the list, I find myself in the same directory. I have used the following code: exec("cd /"); Passthru("ls -l");
View Replies !
Ssh2 Mod And Exec Function
Something very strangne happens with the function ssh2_exec, i can't read the stream answer after execution in the remote computer. I work with apache 1.3.30 and php 4.3.10 , libssh 2.0.5 . the ssh2 module looks to work correctly but sftp functions cause a big delay causing server timeout and ssh2_exec can't read the output. Tryed many things recommeded in php website and forums but always the first ssh2_exec reading success and the following ones fail. $stream=ssh2_exec($conn_id,'/usr/bin/ls ./public_html'); I tryed to read the output with: stream_set_blocking( $stream, true ); $cmd=fread( $stream, 4096 ); after while($line = fgets($stream)) { $cmd .= $line; } and while( !feof($stream) ) { $cmd .= fgets($stream) } Nothing success to catch the output for the second execute order. In the same process only the first exec could be read. Anybody know
View Replies !
Can Not Execute Exec Function In Php
I am facing a strange problem , in linux server system commands like exec, system are enabled but one particular command is not working properly , either its returning null or 127. Command is exec(whois -h whois.crsnic.net "bnbnmnmbnmn.com") But this command is working properly in another linux server. Any suggestion is well come excepting reinstall or re-configuration as its not possible . Commands like exec('whoami') are working . Server:linhost161.prod.mesa1.secureserver.net 2.4.21-27.ELsmp #1 SMP Wed Dec 1 21:59:02 EST 2004 i686
View Replies !
Using Exec() Function In PHP5
I have problem by using exec() function in PHP5, Apache and Windows XP to run an external program from my PHP page reside on server. When I call my program using exec() the page just stops (waiting for www.mysite.com...). I have used by absolute path and result was same. Also, I have tested my PHP page by running by using PHP (or PHP-cgi) interpreter in command line and it just works fine without any problem. I don't know why it doesn't work when I call it from my page. Can anybody help ? I think it is something wrong with Apache or PHP settings. Am I right ?
View Replies !
Exec() Function And Shell Scripts
I have a shell script written that basically grabs a selected .jpg or .png image file and wraps it as an .swf file for use in a dynamic Flash site. My question is this: What are the limitations of the exec() or system() commands? I can get them to work just fine with common linux commands(ie. ls -l, pwd, etc.), but it won't run these sort of commands: ./thisisascirptname or sh wrapper.sh I get no results with these and yet when I perform the same operation on the command line by hand, it works just fine. This is the script I'm using to test it, by the way. $lastline = exec("sh wrapper.sh", $all_output, $return_value); print("<b>Last Line:</b><br>$lastline <p> "); print("<b>All Output:</b><br> "); for($index = 0; $index < count($all_output); $index++) { print("$all_output[$index] <br> "); } print("<br><br> "); print("Return Value: $return_value<br> "); The "ls" and other similar functions all return properly. I can't figure this out and it's driving me nuts. Any help?
View Replies !
Problem Using System/exec Function.
I am faced with strange problem. Basically I want to make a script which would take mysql back up for me. I have come up with following. [ basically code is borrowed from some other place ] PHP Code:
View Replies !
Using Exec Function To Get A .exe Return Status Gives CGI Error
I'm trying to make a web page to work. It worked before so it has to be something related with the configuration. My problem is a call to a compiled executable (made for me) that returns 1 or 0. It does not print any text to the standard ouput so the error is strange: CGI Error: The script can .. because of the HTTP headers (I have it in spanish so the message is not the exact one). As supposed, the HTTP headers are needed only if the executable prints out a text to the browser but it's not the case. And (I repeat) It worked as it before. The machine had to be formatted and the guy in charge of that is not with me anymore.
View Replies !
Exec() Function Warning: Unable To Fork (Access Violation At 77F81B4D)
I am trying to execute a DOS command with the exec() function. All I get is fork errors or access errors, regardless of what file I try to execute. Example: <?php exec("sync.bat"); `sync.bat`;?> Warning: Unable to fork [sync.bat] in C:testexec.php on line 3 Warning: Unable to execute 'sync.bat' in C:testexec.php on line 4 PHP has encountered an Access Violation at 77F81B4D Id doesn't seem to matter what kind of file I try to execute, .exe, .bat or .com. Any ideas? Has ANYONE executed an external program under php/Windows?
View Replies !
Exec();
well i know that exec("ndc reload"); would perform that command.. but i want too print out on the page what the command tells when i do like this: [root@xermin cryzeck]# ndc reload Reload initiated. [root@xermin cryzeck]# i want to print that Reload initiated. on the page.. how? not just echo("reload initiated"); but the stuff the command tells.
View Replies !
Using Exec()
I'm trying to use the exec() function to call shell scripts that in turn startup various programs under linux.. for example, when someone clicks on a link to restart a particular daemon, the daemon will then simply executed, either through the standalone command of /location/daemon or through the calling of a shell script that essentially performs an identical task. My problem is that exec() seems to only work through the user "nobody," which the Apache web server is running under. The scripts and programs I'd like to execute are under a user account named "admin." I've even tried chmod'ing all pertinent files w/ permissions that "nobody" could use to successfully access all necessary commands, without success, as the programs seem to crash whenever I do this.
View Replies !
PHP And Exec(dir)
I have been using opendir and scandir, but I want to try something else. Idea: using dir, and a) getting the result b) saving it as a file. As I have problems with executing files directly, it create a bat file and executes that. I can execute command, but by some reason I dont get any response (it should return something, and I get "") The missing response is why I create a file. I create the file on the network ( serversomewhere ) like this dir "serversomewherefilesdir" >"serversomewhere esult.txt" Here is the odd thing: dir cannot read from the network - the bat file is created there, it creates the result.txt file, but emtpy as it cannot read from the network. Reading from c: and it works.
View Replies !
Php Exec();
i've been trying to create a php script that writes some text to a file, then runs the perl interpreter on the file and shows the output. it works ok when valid perl is written to the file, so if i use 'print "hello world";' then it outputs 'hello world'. the problem is, if i enter invalid perl code, such as 'blahblahblah;', it outputs nothing. i'd like the php script to be able to get the error/output. does anyone know of a way to do this?
View Replies !
Exec(); & Php As CGI...
I have had to do some work on a RAQ server with php as cgi. The script I have written uses the exec(); function to run pgp to encrypt a file. Weird thing is this: The script does everything it's supposed to but I get the RAQ internal server error message. Should I be using passthru of something else in this environment? Forgive me I am a relative virgin as far as RAQs and php as cgi goes.
View Replies !
Exec Php
I have a php site. Some page needs to call an external program. The programs are home made c# applications. It uses to work without problem. For a while. Maybe it work for some hour. Or for a day. Or even for a week. At a certain point, when a php script calls the exe file, the application freezes. The following happens:...
View Replies !
Exec()
I am making a simple php script using exec() to execute commands in my linux host. When i execute 'ls' it shows the right content on that directory, but what i want to know if there is a way i can distinguish between folders and files. In this way i can lets say make folders show in black and files in grey. Also when i execute a wrong command i wanna get any system error message. Code:
View Replies !
Exec A .exe
I want to exec dos then within dos exec another.exe then write to that program with database varables or session's but how? how do you write to the last.exe program to give it it's command? <?php exec("C:/WINDOWS/system32/cmd.exe/program.exe"); ?>
View Replies !
Use Of The Exec()
<?php f($_POST['startup']){ if(!$online){ //$A1 = array(); //exec($servpath."khyller-server.exe") or die("<BR>Server Startup MSG - <Font color=red>Cannot find Server</font>"); //proc_open("call C:Serverlanked eleasekhyller-server.exe", $A1,$A2,$A3); } } ?> I'm first trying to get them to work at all just do something first. but with no success. I even sued or die and all I get is die D: Is it impossible or am I just dumb? I know I did this one, But I don't know how. Edit to add php color. my eyes were hurting in blackness.
View Replies !
Using EXEC
I've got a page on an application form that runs an executable. I don't return anything from the executable, and I don't want to the script to wait for it before continuing. I just want it to call the executable and forget about it. The executable is self contained, in doesn't return anything back to the script. I'm currently executing with EXEC like so: Code: exec("c:filename.exe " . $_SESSION['memberId']);
View Replies !
Exec() And Zip
I have zip.exe in my PATH on a windows XP box. Additionally, I have a script which, if I execute locally with php myfile.php. it runs fine. However, when I call myfile.php remotely with a web browser, it canot seem to find zip.exe. Below are the releveant code snippets. exec( "zip -mj ackups empcookbook.zip ackups empcookbook.sql 2>&1", $output, $res ); if( $res 0 ) { error( true,"COMPRESSION FAILED ".implode( " ", $output)); COMPRESSION FAILED The system cannot execute the specified program.
View Replies !
SU And Exec
I have a PHP CLI script setup in crom which runs as a specific user each night so that it has the correct security level. I want to also be able to execute this script "on demand" via a webpage. Is there a simple way to get PHP to execute this command as another user? How could I "SU script_user >>> runme.php" ?
View Replies !
About Exec()
I have a small custom 404 page in PHP. When this page is triggered I'd like some information about the requesting client, including its reverse IP. I would like the 404 page to be returned to the client's browser immediately, after invoking another function or script that takes care of the lookup & email duties. The 404 page doesn't care about the return value of the second script at all, it's fine if it fails. It looked to me like exec() is appropriate here, is that correct? Am I thinking about it wrong?
View Replies !
Exec ()
i want to add new Linux user in my system: exec ("useradd ........"); is not working . there is no error . but user is not getting added. Am i using the command in wrong way. is ther any alternative.
View Replies !
Exec() Fails...help!
I'm very new to php, running apache 1.3.20 with php 4 on a 98 box just for home test development purposes there's probably an easier way/better alternative to do what i'm trying to do, but i'd be greatful for solutions not alternatives i'm trying to add a user to an .htpasswd file so need to exec("c:/apache/htdocs/htpasswd.exe -b .htpasswd user password) It would also be useful to run a mail server remotely with exec("c:mymailserver.exe") but neither will work, i tend to hear the standard windows error sound, but with no message. Apache error logs reveal nothing. What i'm trying to do may be impossible?, i'm new to the language so i don't know...or it may be a permissions problem? Or perhaps something totally seperate? If anyone has any ideas which may help i'd be very greatful for any advice you could give.
View Replies !
Exec & IIS Problem
I have an exe that I want to run with php. In the console, it works perfectly fine. There is a problem with security and it doesn't seem to run. I have tried the following after reading various newsgroups and websites and no luck. 1) Put the Exe file in the wwwroot and set permissions to the IUSER, giving Read&Execute, even gave Full Control. 2) I also added Everyone too and still no luck 3) Moved the exe file to system32 folder and did the same above and still no luck
View Replies !
Exec Is Not Working Right
I'm trying to convert a video with exec i have just installed php 5.0.5 on my server and every thing seems to work except exec can you help i have tried <? runExternal( "ffmpeg -i video.mov -s 320x240 -r 30 video.flv", &$code ); if( $code ) echo "bad transcoding"; else echo "looks good"; function runExternal( $cmd, &$code ) { $descriptorspec = array( 0 => array("pipe", "r"), // stdin is a pipe that the child will read from 1 => array("pipe", "w"), // stdout is a pipe that the child will write to 2 => array("pipe", "w") // stderr is a file to write to ); $pipes= array(); $process = proc_open($cmd, $descriptorspec, $pipes); $output= ""; if (!is_resource($process)) return false; #close child's input imidiately fclose($pipes[0]); stream_set_blocking($pipes,false); stream_set_blocking($pipes[2],false); $todo= array($pipes[1],$pipes[2]); while( true ) { $read= array(); if(!feof($pipes[1]) ) $read[]= $pipes[1]; if(!feof($pipes[2]) ) $read[]= $pipes[2]; if (!$read) break; $ready= stream_select($read, $write=NULL, $ex= NULL, 2); if ($ready === false) { break; #should never happen - something died } foreach ($read as $r) { $s= fread($r,1024); $output.= $s; } } fclose($pipes[1]); fclose($pipes[2]); $code= proc_close($process); return $output; } ?> and <? exec("ffmpeg -i video.mov -s 320x240 -r 30 video.flv"); ?> and <? system("ffmpeg -i video.mov -s 320x240 -r 30 video.flv"); ?> None worked ....
View Replies !
PHP Locking Up With EXEC?
I have been using EXEC and or SHELL_EXEC to call several command line functions. I use it mostly for Image Magick on my web servers. I run a WinXP machine with Sambar Server 5.3, PHP verison 4.3.0 ISAPI. Until lately the server, php and image magick have functioned like a dream. I have been lately having some very serious crashes where the DOS window that appears then disappears with a command call from PHP does not leave the screen, it simply freezes. The web server continues to function but any addiional EXEC (or realted) commands do not process, the DOS window remains on the screen. I run my server as a service and not an applicaiton though I experimented both ways. I have not changed my config lately other than to add maybe another dozen domains to my server's vhosts.ini file. Other than that, nothing has changed. The ONLY way to terminate the problem is to KILL THE PROCESS for the server (for sambar folks that is ntserver.exe) then restart the service. One should not ever need to do this but this is the only way to get the bubble out of the way, so to speak. The service itself will not stop, it must have the process killed. Does this sound strange. Is there a bug with PHP ... maybe it is there but it just seems so odd that it is intermitant, most times the EXEC goes of with out a hitch, but with significantly increased frequency it freezes up. Now I went into the list of processes to see if it was tying up system resoureces, it does NOT.
View Replies !
PHP System() And Exec()
Background: I am trying to execute a binary on the server located in the current directory where the php script is being run. The server is a linux (debian based). I am having trouble getting php to execute the binary properly, below is my code. Code:
View Replies !
Exec() On Windows
this is my problem: I need to "exec" the following command: C:ProgrammiSoftsoft.exe -v -d C:dati$nomefile C:datipdf$filename and i tried to execute it in php with (one of) the following lines.... exec("C:ProgrammiSoftsoft.exe -v -d C:dati.$nomefile C:datipdf.$filename"); exec("C:ProgrammiSoftsoft.exe" -v -d "C:dati".$nomefile "C:datipdf".$filename); exec("C:ProgrammiSoftsoft.exe -v -d C:dati.$nomefile C:datipdf.$filename"); exec("C:/Programmi/Soft/soft.exe -v -d C:/dati/.$nomefile C:/dati/pdf/.$filename"); exec("C:/Programmi/Soft/soft.exe" -v -d "C:/dati/".$nomefile "C:/dati/pdf/".$filename); but there is something wrong and that i.. do not understand... Is there anyone so kind to show me the correct line and a couple of comments on how to built it? I tried to search for it (manual, newsgroups...) but i haven't found it (and my mistakes are the result :-P)
View Replies !
Exec And $_GET
If I execute a php script with exec exec("foo.php"); and foo.php reads the $_GET array (can't change that I must work with $_GET), how can I set values to $_GET array? Can I do it directly in foo.php? $_GET['foobar'] = 4; Or exec(foo.php?foobar=4); ?
View Replies !
Exec() On One Vhost?
Is there a way to enable exec() for one virtual host on a server? Safe_mode is on globally (and off for the one domain), and exec() (and other fns) are disabled globally. However, I cannot use exec() from the domain of interest.
View Replies !
Exec Or Shell_exec
I am trying to us shell_exec and keep getting an error. I do have safe_mode = off also. Code: if ($publish == "yes") { $command = "e:scriptspublish.bat"; $result=shell_exec($command); } The publish.bat file does work and I have proper permissions set in windows, I set everyone full access. Oh, Windows server, IIS6.0, PHP. Error is as follows: Warning: shell_exec() [function.shell-exec]: Unable to execute 'e:scriptspublish.bat' in
View Replies !
How To Get Errors From Exec?
I am running PHP 4 and this code is failing, in that it does not insert the records into MySQL // Upload the data to file to the db. exec("mysqlimport --replace --fields-terminated-by=',' --fields-optionally-enclosed-by='"' --user=$db_user --password=$db_password --host=$db_hostname --lines-terminated-by=' ' $db_name $new_src_file_path", $output, $return); Sadly, the $output array is empty, but the $return value is 127. Does anyone know what that means or how I can get more meaningful error output?
View Replies !
GPG With Popen Instead Of Exec
I am the Team lead for the GPG plugin for Squirrelmail. http://www.squirrelmail.org/plugin_view.php?id=153 We use exec for all of our gpg program executions, but this requires doing "echo $plaintext | gpg $commandflags" This works fine, but means that some plaintext is passed on the command line, and could be visible to an attacker monitoring process execution on the machine the web/php server is running on. It would be more secure to use pipes. gpg supports the '--command-fd (pipe)' and '--status-fd (pipe)' command flags to take commands and report status from a pipe, but I can't figure out how to use php to pass the correct pipe descriptors to the command line. On the command line, the pipes 0,1, and 2 correspond to stdin, stdout, and stderr, respectively. In theory, we should be able to use popen to open one read and one write pipe, and then pass the write pipe to --command-fd and the read pipe to --status-fd. Because Squirrelmail is used on servers of all different environments, I can't assume that the w+ flag will work with popen. I also can't require PHP 4.3.0 or higher, which would allow us to use proc_open. Really, I want to avoid passing any plaintext on the command line, or writing anything to temp files, both of which introduce security risks.
View Replies !
Exec PHP Within SHTML - SSI (on IIS)
I have done lot of searching / trying to see if PHP can be executed within SHTML (SSI) on IIS6. I have CGI script and PHP script which needs to be executed on my site within SHTML. I have no problem with running CGI code (using #exec cgi) ... however, there appears to be NO equivalent as in "#exec PHP". Whole site is in SHTML --- so converting it into PHP is a bit pain. Addtionally, on IIS platforms running CGI code within PHP (which requires Apache specific commands) do not seem to work well in my tests.So, 1> I could convert the whole site into PHP -- if someone has successufully parsed CGI within PHP on Windows 2003 IIS 6 platform. 2> OR somehow (I hope) that someone is running PHP within SHTML at this time .
View Replies !
System() And Exec()
If you start a program using this function and want to leave it running in the background, you have to make sure that the output of that program is redirected to a file or some other output stream or else PHP will hang until the execution of the program ends. I have tried numerous time by redirecting to a file or other stream to free up a php web page that called a perl script for example, but the php script always hangs...has anyone had any luck freeing up a calling php script from a process, or program that it launched in the background? Code:
View Replies !
Exec Problems
i have more then less Problems with this script. the php.ini have this config: Safe_Mode = ON, Regest_Globals == OFF <?php $server = $_GET[Server]; $_ENV['PATH']="/path/path2"; if ($prog == "start") { on(); }; if ($prog == "stop") { off(); }; function on () { exec("/path/path2/script start", $error ); echo "$error[0]<br> $error[1]<br> $error[2]<br>start"; } function off () { exec("/path/path2/script stop", $error); echo "$error[0]<br> $error[1]<br> $error[2] <br>stopt"; } echo "<html><head><title>TESTING</title></head><body>"; echo "<form ation="./path/phpscript.php" method="GET">" ."<input type="submit" name="prog" value="start">" ."<input type="submit" name="prog" value="stop">" ."</form>"; echo "</body></html>";
View Replies !
Passthru & Exec
I have a script which uses passthru to execute a shell script. This shell script then (at some point in its running) executes a php script. When executing the shell script from the command line everything works fine. When using passthru, however, I get the following error when it gets to the point where it tries to execute the 2nd php script: Code: Status: 404 X-Powered-By: PHP/4.4.2 Content-type: text/html No input file specified. 255 I'm hosted on Dreamhost with php 4.4.2.
View Replies !
Exec() Returns 127?
I'm trying to execute this command to generate stats with webalizer by using the exec() function, it does not generate an error but it also does not run the command, and the value of $reply thats returned from exec() is 127. If i run the command thru the command line it works. And my safe_mode is set to off. PHP Code:
View Replies !
Use Exec() To Use Htpasswd
I am building an .htaccess file creator and obviously part of it is for directory protection. I 'm just trying to figure out if I can do it all with php or if I need to use exec() to use htpasswd. Basically, I got a different result using php's md5() function than I did using Apache's htpasswd executible(with the md5 option) What is different between these two?
View Replies !
Exec() And Virtual()
I'm trying to run an outside cgi script with exec or virtual. When I run commands such as exec("ls -l") and the like, everything works fine, but when I try to run my cgi script it either doesn't run or in the case of calling virtual I get a: Warning: virtual(): Unable to include 'tester.cgi' - request execution failed in directory on line 3
View Replies !
Better Exec() Command
I work in a network support office which uses a web form to receive network related problem reports from our end users. The web server is IIS 5.0 on win2k server, and we use PHP and MySQL to handle the form and tracking. I'd like this setup to launch an mp3 player on the web server when a problem report is sent in. I've tried exec("little mp3 player i wrote"), but there are two issues with it: 1) I think the mp3 player runs as the user who sends in the report. If the report is sent from the web server itself, everything works fine. Otherwise, the mp3 player runs in the background and can't be shut off. 2) The script waits for the mp3 player to be closed to finish. I'm guessing there's a different command that will solve problem 2, but I'm stumped on problem 1. It's more of an IIS/windows issue, probably,
View Replies !
Problem With Exec()
I'm using ImageMagic under UNIX via the exec() function. I'm using it to ascertain the dimension of JPEGs. The code which is causing problems is below, I've used debugging code to try and work out what is going on with the results as shown in a browser. I've then taken what appears to be sent to the exec() function and copied it straight into a termal on the same machine. When running in PHP the $exec_output array seems to be empty but on the terminal I'm getting output. Can anyone suggest why this might be so? ----------------------- Code: <snip> $identify_cmd = "/home/<username>/ImageMagick/bin/identify -format "%w:%h" "JPEG:$input_path"[0]"; <snip> exec ($identify_cmd, $exec_output); echo "identify_cmd = $identify_cmd<br>"; echo 'exec_output = ' print_r($exec_output); echo '<br>' list($input_width, $input_height) = split(":", $exec_output[0]); echo "input_width = $input_width<br>"; echo "input_height = $input_height<br>"; exit; ----------------------- ----------------------- Browser: identify_cmd = /home/<username>/ImageMagick/bin/identify -format "%w:%h" "JPEG:<path>/Panorama 3.jpg"[0] exec_output = Array ( ) input_width = input_height = -----------------------
View Replies !
Php Exec Problem
I need to create a page that execute a command on linux(ssh command) and then display whatever it comes up on the webpage. I don't know how to input the username after I execute the ssh command,
View Replies !
Php Exec Error
i cannot execute the exec command and pass varaible through it exec('/secure/sed_repl.sh "route add -host $obj->host device $device2" "" '); I have to execute it this way ... exec('/secure/sed_repl.sh "this one" "this one to" ');
View Replies !
|