Find the answer to your Linux question:
Results 1 to 4 of 4
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1

    Writing Scripts in Knoppix

    Okay I'm new to writing scripts, to Linux too but here goes....


    # My first script

    echo "Hello World!"


    ..........And that's the entire contents of my script! haha! Anyways, when I run this from Konsole all I get is "permission denied". Is that because there's something funky goin on because its a ramdisk? eh?

  2. #2
    Linux Guru lakerdonald's Avatar
    Join Date
    Jun 2004
    St. Petersburg, FL
    chmod +x filename

  3. #3

    Thank you!!!!!!!!!!

  4. $spacer_open
  5. #4
    Linux User
    Join Date
    Nov 2004
    Boise, ID
    The OS will read the first line of the file to determine what to execute the script with, but it won't actually execute without the Xecute bit set on the script, that's why you needed to add it, as it isn't there by default.

Posting Permissions

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