Hello
Iknow its a mess. The real code is not like this :)
table must stay :(. Thing is that i cant get the value out from input id=epost and merge it onto the action.
Still im trying to solve that with making an javascript that responds onmouseclick and that it will auto generate another...
From the code bellow i get a mail everytime a user asks me a question. But i also want to make an auto reply to the user, by using the same action with just changing the email to id=epost value.
Help any 1?
TABLE id=id_matrix>
<TBODY>
<TR>
<TD vAlign=top><SPAN>Fornavn:</SPAN></TD>
<TD...
yes this is my shell
IFS=`echo -e "\n\r"`
for I in `cut -f1 $1`
do
source="http://startsiden.no/sport/nyheter/"
echo "Kilde: $source"
lynx -dump $source > /tmp/nyhet
hva=$(cat /tmp/nyhet |grep $I | cut -d'.' -f1 | sed -e s/\ //g)
for nr in $hva; do
over=$(cat /tmp/nyhet | grep -G...
sorry about this but this is the code that compiles, but it dont use cut sed etc :(
#include <stdio.h>
#include <fcntl.h>
#include <stdlib.h>
#include <unistd.h>
#include <sys/types.h>
#include <sys/wait.h>
#include <sys/stat.h>
#include <string.h>
#include <errno.h>
#define SOURCE...
Hello, i have done a script that is supposed to read urls from the SOURCE. When a user types in vg.no in stdin or read a file that contains vg.no it gets the last 5/6 topics from the newspaper. the problem here is that from pipe 0 to write pipe 1 somthing goes wrong and it doenst do the cut,grep...
ok but how do i use the exec function coz i want to include lynx into my script...
char arg[254];
char adr[254] = http://www.vg.no
arg = printf("-d %s", addresse);
exec("lynx -dump addresse")", arg);
is it somthing like this above?
yes i misunderstod u :) sorry about that.. but is it possible to use lynx at the same way i used it in the sh script.. thats coz lynx adds numbers to the urls when i download it.. Um yes i have also tryed to learn about the HTTP1.1 somthing.. but i dont think i need to go there yet :) so that...
actually the sh script works...
it sends the website into a temp file on the computer then it gets the urls i want to.. Still how do i connect to a website and dump all the hrefs*topic onto a tmp file with c?
#include <iostream.h>
#include <fstream.h>
#include <stdlib.h>
#include <stdio.h>...
#!/bin/sh
IFS=`echo -e "\n\r"`
for I in `cut -f1 $1`
do
source="http://startsiden.no/sport/nyheter/"
echo "Kilde: $source"
lynx -dump $source > /tmp/nyhet
hva=$(cat /tmp/nyhet |grep $I | cut -d'.' -f1 | sed -e s/\ //g)
for nr in $hva; do
over=$(cat /tmp/nyhet | grep -G "\W$nr\W" | head -n 1|...
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.