First off, this is my first post here. I've read through a few now and so far, I can tell i'm gonna learn a lot here.
As for my question, i'm teaching myself Linux. I've been running Ubuntu for a couple days now and I decided i'd dig into some tutorials to really figure out how things work.
The tutorial i'm going through now is to the point where it's explaining shell scripts and how they can be used. I've been able to edit and run the "today" function and did the ever popular "Hello World!" script and both went fine.
The next thing that was in line was, using a shell script to create a web page. I do a lot of web page work so..I thought this sounded really cool. I just can't seem to get it to work though. Here's my code for the script named 'make_page'...
Code:
#!/bin/bash
# make_page - A script to produce an HTML file
cat <<- _EOF_
<HTML>
<HEAD>
<TITLE>
My System Information
</TITLE>
</HEAD>
<BODY>
<H1>My System Information</H1>
</BODY>
</HTML>
_EOF_
I save that to my home directory, and then, this is what I put into the terminal..
myname@ubuntu:~$ make_page > make_page.html
I get this error..
bash: make_page: command not found
..but it does create a blank HTML file..with the correct name, in that directory.
I'd appreciate any help I can get so I can continue with this tutorial. Whew...long first post.
Thanks!