Comments (4)
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.
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.
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.
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)
- Different GIT versions? HOT 1
- Can not open keyboard from chrome mobile HOT 4
- Scrolling don't work
- При использовании nano консоль зависает HOT 2
- How can I connect to a remote server? HOT 2
- Chrome: Selecting output text
- How to manage multiple machines through web-console? HOT 3
- Execute command after login
- Can't panste with chrome android
- Open new Web Console with predefined access credentials
- Best way to replace sshd? HOT 2
- Internal Server Error HOT 1
- How to install this app HOT 1
- Is possible to restrict user to specific directory ? HOT 1
- Incorrect user or password HOT 3
- Сontacts HOT 1
- Error opening terminal: unknown. HOT 3
- прошу прощения, не там открыл issue
- Dockerfile failed: version '6.0-23+deb10u1' for 'unzip' was not found HOT 2
- We can't enter multiline commands
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from web-console.