Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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
Comment #1
richardp CreditAttribution: richardp commentedSorry, no, that isn't possible right now, but I will keep it in mind for the next release.
Thanks,
Richard
Comment #2
Andrés Chandía CreditAttribution: Andrés Chandía commentedThanks 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
Comment #3
richardp CreditAttribution: richardp commentedSure, 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
Comment #4
Andrés Chandía CreditAttribution: Andrés Chandía commentedThanks a lot for your answer, but how can you do that (sorry I'm not an expert)?
Comment #5
richardp CreditAttribution: richardp commentedWell, 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
Comment #6
Andrés Chandía CreditAttribution: Andrés Chandía commented