Search the Community
Showing results for tags 'exec'.
Hello scripters I want to make a console application(cscript.exe) in vbscript but i want to add colors. what i did is, I made an exe named colors.exe, when call this exe in a console window with cmd.exe and give it e.g. these arguments '0A' the next lines are in (green) a different color.Now I want to use vbscript's shell.exec or shell.run to StdOut.Write new lines in the same consolewindow but in diffirent colors. the problem is, how do you execute a new command in the same consolewindow when using cscript.exe or wscript.exec/run? I know you can do multiple commands using the '&' operat
I've been Googling this problem all day now and have nothing to show for it. I'm attempting to run a php script, from a php script using exec. I'm doing this to allow the second php script to run in the background, as it may/may not run for quite some time. This is my code for doing that: exec("php myScript.php > out.txt 2> err.txt &"); With this code I get two new files (as expected) out.txt and err.txt.out.txt is empty, and err.txt contains: php: /opt/lampp/lib/libxml2.so.2: version `LIBXML2_2.9.0' not found (required by php)php: /opt/lampp/lib/libcrypto.so.1.0.0: no version i
So i am building an admin page as part of a project for the course I am doing. I want to execute the remote command "top" (it doesn't matter if i execute it by php ssh connection) on linux and than I want to store the output of the command in a variable called $data. Is that possible? I tried doing it with shell_exec() and exec() but couldn't get it to work. Thanks before hand.