Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'A script to watch the Apple Refurb Store for products' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
A script to watch the Apple Refurb Store for products
Authored by: Greedo on Apr 19, '04 02:04:34PM
There is no reason to put the script in /usr/local/bin If you are going to use a bunch of personal shell scripts, the common way to do it is to create a bin directory in your home directory:

mkdir $HOME/bin
And then add it to your path by adding this to ~/.profile

if [ -d $HOME/bin ]; then
    PATH=$HOME/bin:$PATH
    export PATH
fi
And I don't think you need all those environment settings for $HOME and $PATH in the top of the script. If you run it from your own crontab, those environment variables will already be populated.

[ Reply to This | # ]