Git Product home page Git Product logo

Comments (4)

nickola avatar nickola commented on July 19, 2024

Make sure that directory $HOME_DIRECTORY (/home/nix/) exists and user running the Web Console have permissions for CD to that directory.
To identify user running the Web Console you can run id command in Web Console.
Also, try to run following commands in Web Console cd /home/nix/ and after that ls, what output you see?

from web-console.

mlerman avatar mlerman commented on July 19, 2024

I have the same problem. cd doesn't move the current directory

login: root
password: ******
You are authenticated
root@MLERMAN-LAP C:\UniServer\www\mlscript$ echo %cd%
C:\UniServer\usr\local\apache2
root@MLERMAN-LAP C:\UniServer\www\mlscript$ cd ..
root@MLERMAN-LAP C:\UniServer\www$ echo %cd%
C:\UniServer\usr\local\apache2

but it changes the string in the prompt correctly.

from web-console.

mlerman avatar mlerman commented on July 19, 2024

I found one issue. The command is not running in the context of the current directory

It needs this change

$cwd = getcwd();
$process = proc_open($command . ' 2>&1', $descriptors, $pipes, $cwd);

in the function execute_command

from web-console.

mlerman avatar mlerman commented on July 19, 2024

Now you can pass the home directory via the get variables.

$HOME_DIRECTORY = '';
if (isset($_GET["HOME_DIRECTORY"])) {
$HOME_DIRECTORY=$_GET["HOME_DIRECTORY"];
}

from web-console.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.