#1
  1. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jun 2001
    Location
    Scotland
    Posts
    103
    Rep Power
    14

    How do you make a file executable in unix?


    How do you make a file executable in unix? I've tried -x. The file in question is a list of mysql commands. How would I make this file executable?

    Thanks.
  2. #2
  3. #3
  4. No Profile Picture
    Contributing User
    Devshed God 1st Plane (5500 - 5999 posts)

    Join Date
    Oct 2000
    Location
    Back in the real world.
    Posts
    5,966
    Rep Power
    191
    a list of mysql commands will never be executable.

    you want to pipe them to a program like

    cat commands.sql | mysql mydb
    or
    mysql mydb < commands.sql

    right?
  5. #4
  6. Modding: Oracle MsSQL Firebird
    Devshed Supreme Being (6500+ posts)

    Join Date
    Jun 2001
    Location
    Outside US
    Posts
    8,527
    Rep Power
    539

IMN logo majestic logo threadwatch logo seochat tools logo