Jump to content

Search the Community

Showing results for tags 'exec'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


  • W3Schools
    • General
    • Suggestions
    • Critiques
  • HTML Forums
    • CSS
  • Browser Scripting
    • JavaScript
    • VBScript
  • Server Scripting
    • Web Servers
    • Version Control
    • SQL
    • ASP
    • PHP
    • .NET
    • ColdFusion
    • Java/JSP/J2EE
    • CGI
  • XML Forums
    • XML
    • Schema
    • Web Services
  • Multimedia
    • Multimedia
    • FLASH

Find results in...

Find results that contain...

Date Created

  • Start


Last Updated

  • Start


Filter by number of...


  • Start





Website URL








Found 3 results

  1. 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 '&' operator in a single line but in my case I don't want to do this in a single command because it's to long + i want to know if it is possible to do this appart... I want to do something like this: Set objStdOut = WScript.StdOutobjStdOut.Write "hello, " run"colors.exe 0C"objStdOut.Write "hello in red" thanks in advance, TheAutomator.
  2. 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 information available (required by php)php: /opt/lampp/lib/libssl.so.1.0.0: no version information available (required by php) I can run the command "php callingScript.php" (the script containing the exec call) from the command line manually, and it works fine. I thought the problem might be related to permissions for the 'nobody' user run by Apache, but when running the command: sudo -u nobody php callingScript.php It works. I've also tried running it with the direct path to php: /usr/bin/php callingScript.php Any ideas as to what's going on ie. why I can run it manually but not via localhost using exec()? And thanks for reading.
  3. 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.
  • Create New...