Home: Perl Programming Help: Beginner:
Can I create folder on Apache from CGI script?



digioleg54
User

Apr 28, 2017, 9:50 AM


Views: 1677
Can I create folder on Apache from CGI script?

I to create a new directory or even several directories on apache server. How can I do it from CGI script?

Thanks


Laurent_R
Veteran / Moderator

Apr 28, 2017, 10:13 AM


Views: 1671
Re: [digioleg54] Can I create folder on Apache from CGI script?

Sometimes I get the feeling that you overlook the answers you're provided.

Apache is not an operating system and your question is typically about system commands. So, for at least the third time, please provide information about the operating system on which Apache is running.


digioleg54
User

Apr 28, 2017, 10:28 AM


Views: 1670
Re: [Laurent_R] Can I create folder on Apache from CGI script?

Linux.


Laurent_R
Veteran / Moderator

Apr 28, 2017, 12:03 PM


Views: 1665
Re: [digioleg54] Can I create folder on Apache from CGI script?

Check the Perl documentation for the mkdir function: https://perldoc.perl.org/functions/mkdir.html.

This should be what you need.

Pay special attention to the last paragraph of this documentation, may be it's another solution that could fit your need.


(This post was edited by Laurent_R on Apr 28, 2017, 12:06 PM)