Menu

Help With dialog Example please :( :(

Help
Anonymous
2008-05-13
2012-09-22
  • Anonymous

    Anonymous - 2008-05-13

    Hello, I have posted this already but I hadn't been able to figure it out, What I need is to make the Dialog example to work when I say "read a news paper" and then I say which newspaper to go to. In the example info they tell me to make a script with the following

    !/bin/sh

    export FF_HOME="/usr/share/firefox

    url="$1"
    if [ "x$url" = "x" ]; then
    url="about:blank"
    fi

    if $FF_HOME/mozilla-xremote-client openURL("$url"); then
    exit 0
    fi
    exec $FF_HOME/firefox "$url"

    So what I did is to make echo $PATH to see which one was my path then it says its
    /usr/local/mysql/bin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/X11/bin

    now:
    I went to /usr/bin and made a file with vi editor and pasted the script. But I dunno what else to do, ot even worst I dunno if what i did was ok, becuase when I run the Example it doesnt do anything
    Any help please?>
    Im running under Mac os X

    Thanks a Lot
    Gus

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.