Results 1 to 2 of 2

Thread: Script Syntax Help

  1. #1
    Join Date
    Jan 2011
    Beans
    2

    Script Syntax Help

    Hi im new to these forums so Hello!!! =)

    Im just starting to learn to script and I need to know what this doesnt work, heres the error I get

    "chmond: command not found"
    The error goes away when I delete the line with "dirname $NAME" in it.

    please any help, iv been searching the net for about 2 hours now!

    ----------
    #!/bin/sh

    echo "enter file name with extension and path"
    read NAME

    FULLPATH=`dirname $NAME`
    OPENFILE="open "$NAME
    OPENPATH="open "$FULLPATH
    echo $OPENFILE > /Users/admin/Desktop/tmpLink
    echo $OPENPATH >> /Users/admin/Desktop/tmpLink
    chmond +x /Users/admin/Desktop/tmpLink
    -----------

  2. #2
    Join Date
    Jul 2007
    Location
    Poland
    Beans
    4,273
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: Script Syntax Help

    chmod not chmond

    also forums support [code] tags, use them when you paste some code

Tags for this Thread

Bookmarks

Posting Permissions

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