I'm using a form to have an HTML file sent to the address entered in the form. I'm having a problem on the server side. Here is my testing HTML:
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>...
I am trying to create a form to either forward an html e-mail message to a new recipient, or to have a form to fill in the address to send an html e-mail to.
I have seen these before, usually at a site where you can e-mail an article to someone, and the article is sent to them.
I have looked...
Hey Rusty,
Like most Linux commands it's simple, IF you can remember which flags to use with the commands.
In this case you'll want to try this:
tar zxvf filename.tar.gz
Here's what the flags mean:
z - use whenever you have the .gz at the end
x - unpack (or extract) the compressed file
v -...
Well, I didn't ever figure out what the problem is with the added characters, but I found a program at freshmeat.net that turnes Unix/Linux carriage returns (^M) into the DOS counterpart.
http://www.rastersoft.com/fixhtmleng.html
I'm using a basic bash script to generate an HTML page. It's just using echo, since only one thing needs to change. That one thing is a variable $extip, which = my current IP.
I've used this technique a bunch of times and it's worked just fine, but now I have a strange problem. Here's the...
Ok, here's where I'm at. I couldn't get around the redirect problem, so I thought I'd 'sed' the ^M out with this . . .
sed "s/^M//g" <index.html > index.new
but it doesn't seem to be doing anything. Is sed confusing the '^M' for an actual carriage return?
I've tried `^M`, '^M'...
Thanks for the reply rcyamor!
Your suggestion worked and it didn't work.
Before, I got the ^M if I ran:
bash home.sh
and
bash home.sh > index.html
Now, it doesn't happen on:
bash home.sh
So, for some reason, redirecting it causes the extra characters. I'm going to experiment a little.
I'll...
I'm using a basic bash script to generate an HTML page. It's just using echo, since only one thing needs to change. That one thing is a variable $extip, which = my current IP.
I've used this technique a bunch of times and it's worked just fine, but now I have a strange problem. Here's the...
I was wondering the same thing. I want to redirect from my homepage that i use for my domain name, and forward it to my dynamic ip on my own Apache webserver. I can write the script to update the ip and send it in text form to the static server, but can't think of a way to have the redirect...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.