Article:
 |
|
Build Your Own Blogging Application, Part 2
|
| Subject: |
|
Script updateBlog.sh |
| Date: |
|
2004-11-12 18:04:04 |
| From: |
|
ptwobrussell
|
|
|
|
All,
My apologies. You need script updateBlog.sh to make your blog functional. It is inserted below for your convenience. I'm sorry it's not inline in the article above. Hopefully, the script tags around it will preserve its structure for you.
#!/bin/bash
#Glue for the perl scripts
#configuration settings
export BLOG_PATH=/Volumes/<insert your .Mac username here>/Sites
export BLOG_PAGE=sampleFormat.html
export BLOG_ENTRY=newentry
#update the image tags in file 'newentry' and
#copy the image files to the iDisk
./processImages.pl $BLOG_ENTRY $BLOG_PATH
#execute the read.pl script and pass args.
./postEntry.pl $BLOG_PATH/$BLOG_PAGE
|
Showing messages 1 through 4 of 4.
-
Script updateBlog.sh
2004-12-19 19:20:34
manuelderieux
[View]
-
Script updateBlog.sh
2004-12-19 19:32:51
Matthew Russell | 
[View]
-
Script updateBlog.sh
2004-12-20 07:50:40
manuelderieux
[View]
./updateBlog.sh: line 13: processImages.pl: command not found
./updateBlog.sh: line 17: postEntry.pl: command not found
./updateBlog.sh: line 13: processImages.pl: command not found
./updateBlog.sh: line 17: postEntry.pl: command not found
while executing
"exec ./updateBlog.sh"
(procedure "WriteToBlog" line 7)
invoked from within
"WriteToBlog"
(procedure "WriteToBlogQuit" line 2)
invoked from within
"WriteToBlogQuit"
(menu invoke)
Here's my updateBlog.sh:
#!/bin/bash
#Glue for the perl scripts
#configuration settings
export BLOG_PATH=/Manuel
export BLOG_PAGE=sampleFormat.html
export BLOG_ENTRY=newentry
#update the image tags in file 'newentry' and
#copy the image files to the iDisk
./processImages.pl $BLOG_ENTRY $BLOG_PATH
#execute the read.pl script and pass args.
./postEntry.pl $BLOG_PATH/$BLOG_PAGE
Any help would be appreciated