simplex
[Versuchstier]
Hallo,
zur Zeit machen wir eine Bash-Einführung in der Schule. Ich habe folgendes Skript angefertigt, dessen "Echo-Inhalt" in eine *.html Datei umgeleitet werden soll. Jedoch kommt erzeugt das Skript keine richtige *.html Datei sondern eine komische endung wie: *.html?) (also eigentlich so nen kästchen hinter html). Ich komme einfach nicht mehr weiter..weiß jemand woran es liegt? Mein Lehrer weiß, woran es liegt und ich hab schon so viele Bücher durchgelesen u.s.w
Wäre kewl, also bis dann!!
Micha
datum=$(date +%d.%m.%y)
time=$(date +%T)
ping=$(ping 192.168.0.1 -c 1)
echo "
<html>
<head>
<title>Ping - Test</title>
</head>
<body>
<p align="center"><img src="ping.gif" width="400" height="208"></p>
<p> </p>
<table width="46%" border="1" align="center" cellspacing="2">
<tr>
<td width="35%" bgcolor="#000000"><strong><font color="#FFFFFF">Anzupingender
Host</font></strong></td>
<td width="65%"><div align="center"><strong>192.168.0.2</strong></div></td>
</tr>
<tr>
<td><strong>Datum</strong></td>
<td bgcolor="#000000">
<div align="center"><font color="#FFFFFF"><strong>$datum</strong></font></div></td>
</tr>
<tr>
<td bgcolor="#000000"><strong><font color="#FFFFFF">Uhrzeit</font></strong></td>
<td><div align="center"><font color="#000000"><strong>$time</strong></font></div></td>
</tr>
</table>
<p> </p>
<table width="21%" border="1" align="center" cellspacing="2">
<tr>
<td bgcolor="#000000"><div align="center"><font color="#FFFFFF"><strong>Ping
- Ergebnis</strong></font></div></td>
</tr>
</table>
<table width="75%" border="1" align="center" cellspacing="2">
<tr>
<td><div align="center"><strong>$ping</strong></div></td>
</tr>
</table>
<p> </p>
<p><strong><div align="right">(c) by Michael Frömel</strong>
</body>
</html>
">pingtest.html
zur Zeit machen wir eine Bash-Einführung in der Schule. Ich habe folgendes Skript angefertigt, dessen "Echo-Inhalt" in eine *.html Datei umgeleitet werden soll. Jedoch kommt erzeugt das Skript keine richtige *.html Datei sondern eine komische endung wie: *.html?) (also eigentlich so nen kästchen hinter html). Ich komme einfach nicht mehr weiter..weiß jemand woran es liegt? Mein Lehrer weiß, woran es liegt und ich hab schon so viele Bücher durchgelesen u.s.w
Wäre kewl, also bis dann!!
Micha
datum=$(date +%d.%m.%y)
time=$(date +%T)
ping=$(ping 192.168.0.1 -c 1)
echo "
<html>
<head>
<title>Ping - Test</title>
</head>
<body>
<p align="center"><img src="ping.gif" width="400" height="208"></p>
<p> </p>
<table width="46%" border="1" align="center" cellspacing="2">
<tr>
<td width="35%" bgcolor="#000000"><strong><font color="#FFFFFF">Anzupingender
Host</font></strong></td>
<td width="65%"><div align="center"><strong>192.168.0.2</strong></div></td>
</tr>
<tr>
<td><strong>Datum</strong></td>
<td bgcolor="#000000">
<div align="center"><font color="#FFFFFF"><strong>$datum</strong></font></div></td>
</tr>
<tr>
<td bgcolor="#000000"><strong><font color="#FFFFFF">Uhrzeit</font></strong></td>
<td><div align="center"><font color="#000000"><strong>$time</strong></font></div></td>
</tr>
</table>
<p> </p>
<table width="21%" border="1" align="center" cellspacing="2">
<tr>
<td bgcolor="#000000"><div align="center"><font color="#FFFFFF"><strong>Ping
- Ergebnis</strong></font></div></td>
</tr>
</table>
<table width="75%" border="1" align="center" cellspacing="2">
<tr>
<td><div align="center"><strong>$ping</strong></div></td>
</tr>
</table>
<p> </p>
<p><strong><div align="right">(c) by Michael Frömel</strong>
</body>
</html>
">pingtest.html