Find the answer to your Linux question:
Results 1 to 3 of 3
Hi All, I am having a code and i need to interpret that. I am having the following syntax. Code: if [ ! -x "$OMBPLUS" ]; then print "Executable OMB ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Jun 2010
    Posts
    3

    Meaning of if [ ! -x]


    Hi All,
    I am having a code and i need to interpret that. I am having the following syntax.

    Code:
    if [ ! -x "$OMBPLUS" ]; then
      print "Executable OMB Plus $OMBPLUS not found!" >&2
      exit 1
    fi
    kindly what that IF clause means....
    I cannot understand that. Kindly help me sorting out this.

  2. #2
    Trusted Penguin Irithori's Avatar
    Join Date
    May 2009
    Location
    Munich
    Posts
    3,221
    [ ] is same as test.
    See
    Code:
    man test
    You must always face the curtain with a bow.

  3. #3
    Linux Guru coopstah13's Avatar
    Join Date
    Nov 2007
    Location
    NH, USA
    Posts
    3,149
    If you are unfamiliar with bash you should check out the bash tutorial on The Linux Documentation Project

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •