upd file permissions w/ scripts


/ Published in: Bash
Save to your folder(s)

get the list of dirs
process that list to cmd expressions
run the file with cmd exprssns


Copy this code and paste it in your HTML
  1. INPUT:
  2.  
  3. ./VTX000068/config
  4. ./VTX000069/config
  5. ./VTX000070/config
  6. ./VTX000071/config
  7. ./VTX000072/config
  8.  
  9. /home/rob/bin/util_upd_xml_dirs /var/tmp/list_xml_config_dir > /home/rob/bin/call_xml_config.sh
  10.  
  11. OUTPUT:
  12.  
  13. /home/rob/bin/file_util_v2_config.sh ./vtx000354/config *video.xml chown apache:rtm >> /var/tmp/chgfiles.log
  14. /home/rob/bin/file_util_v2_config.sh ./vtx000356/config *xml chmod 765 >> /var/tmp/chgfiles.log
  15. /home/rob/bin/file_util_v2_config.sh ./vtx000356/config *xml chown tomcat:rtm >> /var/tmp/chgfiles.log
  16. /home/rob/bin/file_util_v2_config.sh ./vtx000356/config *video.xml chown apache:rtm >> /var/tmp/chgfiles.log
  17. /home/rob/bin/file_util_v2_config.sh ./vtx000365/config *xml chmod 765 >> /var/tmp/chgfiles.log
  18. /home/rob/bin/file_util_v2_config.sh ./vtx000365/config *xml chown tomcat:rtm >> /var/tmp/chgfiles.log
  19.  
  20. run the output shell to make the changes

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.