Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

test if file is executable bash

if [ -x file ]; then
  ./file
else
  echo "File is not executable"
fi
Source by askubuntu.com #
 
PREVIOUS NEXT
Tagged: #test #file #executable #bash
ADD COMMENT
Topic
Name
5+3 =