Home: Perl Programming Help: Beginner:
Does UNIX command will work on Apache which on Linux?



digioleg54
User

Jul 21, 2017, 10:13 AM


Views: 1179
Does UNIX command will work on Apache which on Linux?

If my Apache server install on Linux, Unix shell command in CGI script will work or not. For example

Code
`ln -s $rpt_d $loc`;


Thanks


FishMonger
Veteran / Moderator

Jul 21, 2017, 11:09 AM


Views: 1178
Re: [digioleg54] Does UNIX command will work on Apache which on Linux?

It will work IF the user account that apache runs under has sufficient access rights i.e., it needs read access to the source file and write access where the link is being created.

It also needs rights to execute the ln command.


(This post was edited by FishMonger on Jul 21, 2017, 11:11 AM)


digioleg54
User

Jul 21, 2017, 11:23 AM


Views: 1173
Re: [FishMonger] Does UNIX command will work on Apache which on Linux?

we don't have such right, so I have to convert it to Perl.

Thank you


FishMonger
Veteran / Moderator

Jul 21, 2017, 12:37 PM


Views: 1170
Re: [digioleg54] Does UNIX command will work on Apache which on Linux?

http://perldoc.perl.org/functions/symlink.html


digioleg54
User

Jul 24, 2017, 7:25 AM


Views: 1148
Re: [FishMonger] Does UNIX command will work on Apache which on Linux?

Thank you, I already found it