it is possible to make shell open at a directory other than the webroot directory, can I specify a complete path?, how?

Thanks for your help.

Comments

richardp’s picture

Sorry, no, that isn't possible right now, but I will keep it in mind for the next release.

Thanks,
Richard

Andrés Chandía’s picture

Thanks for your quick answer,
so it is possible then, to have in the same code or make a script that send the user to a defined directory once the shell is opened?

Thanks again

richardp’s picture

Sure, I think so. You could probably just enter a "chdir()" command in PHP when it first starts to get to the directory you want. If nothing else, you could send a "cd" command through the shell itself.

Richard

Andrés Chandía’s picture

Thanks a lot for your answer, but how can you do that (sorry I'm not an expert)?

richardp’s picture

Well, it would really need to be something that's programmed into the module. You would need an understanding of PHP and Drupal's code framework. As I said in #1, it isn't something that can be easily done at the moment, but I could look at trying to put it in for the next release.

Richard

Andrés Chandía’s picture

Issue summary: View changes
Status: Active » Closed (outdated)