skip to Main Content

Unable to call shell script from apache httpd

I am trying to call shell script from 000-default.conf inside /etc/httpd/sites-available. The 000-default.conf file content is : <VirtualHost *:80> ServerName localhost DocumentRoot /var/www/html/ CustomLog "| sh /scratch/user/test.sh" custom_user_tracking </VirtualHost> My /etc/httpd/conf/httpd.conf has below content added: ServerName localhost LogFormat "%t [%h]…

VIEW QUESTION

Shell script for copying the specific file from csv to another directory with same folder hierarchy structure – CentOS

I have a list of files to copy from smb server to my centos7 hard drive from csv missing.csv Filepath ./2019_06_27_094411_Season_5/Locked_Approved/Master_JPG/501_00001.jpg ./2019_06_27_094411_Season_5/Locked_Approved/Master_JPG/501_00002.jpg ./2019_06_27_094411_Season_5/Locked_Approved/Master_JPG/501_00003.jpg ./2019_06_27_094411_Season_5/Locked_Approved/Master_JPG/501_00004.jpg ./2019_06_27_094411_Season_5/Locked_Approved/Master_JPG/501_00005.jpg ./2019_06_27_094411_Season_5/Locked_Approved/Master_JPG/501_00006.jpg ./2019_06_27_094411_Season_5/Locked_Approved/Master_JPG/501_00007.jpg Now i need to copy the files from the csv list (i.e)filepath column…

VIEW QUESTION
Back To Top
Search