Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  • Users: FredrikN
  • Content: Threads
  • Order by date
  1. FredrikN

    Compiling Java code

    Hi. I'm trying to find an compiler that can compile javacode direct to machine code. I know that programs like javaExegen exists but it requries that the enduser has JVM to. Does anyone know if there is a way to compile direct to machinelanguage(I'm a Linux user but a Win compiler will do in...
  2. FredrikN

    /etc/mail/access_db

    Hi I'm using access_db in /etc/mail/ to block spammail The problem is the list just grows and grows beacuse I must block adresses like mx.1.teen-1mail.com 550 No f**** spam allowed mx.1.teen-2mail.com 550 No f**** spam allowed mx.1.teen-3mail.com 550 No f**** spam allowed...
  3. FredrikN

    Simple problem with ....

    Hi, I'm trying to write an Online Firewall creator but I have one problem. This will fix Masq and Forwarding echo '1'> /proc/sys/net/ipv4/ip_forward /sbin/iptables --table nat --append POSTROUTING -o eth1 -j MASQUERADE /sbin/iptables --append FORWARD --in-interface eth0 -j ACCEPT But problem...
  4. FredrikN

    Virus scanner

    Hi I'm running my own mailserver with sendmail. I'm looking for a free email virus scanner that can work together with sendmail. A scanner that will erase all mailviruses before the user dowloads it. //Thanks
  5. FredrikN

    Problems with search and replace

    Hi I'm a perl programer but I want to try out some C now. Look at this simple exampel in perl It will replace all h with H $tmp = "hello out there"; $tmp = ~s/h/H/g; output: Hello out tHere How can I do this in C. I just searched the forum but I can't find anything about this. Is...
  6. FredrikN

    Copy files

    Hi. I'm new to C and I have a little problem. I want to take an argv from the command line , (running Linux) and then take the argv and use it in an file movment. The code looks like this main (int argc, char *argv[]) file = (mv argv[1] -> newfile.txt) The last line is the problem. I don't...
  7. FredrikN

    Add to a file

    Hi, I'm writing an simple chat in PHP. But I have a little problem, I don't know how to add some text to the topp of a text file. To the end of the file is easy but how can I add some text to the top ?? Thanks
  8. FredrikN

    apache and more.....

    Hi I'm trying to install apache with PHP and SSL It works fine with apache and PHP or apache with SSL But I don't know how to install all, apache,PHP and SSL I have been searching for some docs but I cant't find anything. Maybee someone can help me. Thanks This is how I install apache with...
  9. FredrikN

    Very newbie question

    Hi, I'm new to C and I have a little problem with scanf funktion. It seems that I only can get everything before a spece(if if exist) and the text after it. eg char text[30]; printf ("Enter some text"); scanf("%s", &text); printf("\nYou wrote %s\n", text); If I...
  10. FredrikN

    Hi. I'm running PHP 4.2.0 at hom

    Hi. I'm running PHP 4.2.0 at home and I have safe_mode on. This works fine but I really need to set the operator backticks (``) on again , I need it in some of my scripts Does anyone knows if I can turn backticks on again ?? Thanks *//Fredrik
  11. FredrikN

    Sed Question

    Hi. I need help with this little problem, I'm running it on a Linux box. Lets say a have a textfile that looks like 1 2 3 4 5 6 7 8 what I want to do is search for line 5 and then a something between line 5 and 6 Like sed 's/5/\nSometext/g file.txt and then the output will look like 1 2 3...
  12. FredrikN

    Strange problem

    Hi. I'm using a php upload script and it works fine(99%) anyway. The problem is that I can upload files with spaces like aa bb.jpg or something. This is the code I'm using, maybee anyone knows what the problem is ? snip --- if (is_uploaded_file($HTTP_POST_FILES['userfile']['tmp_name'])) {...
  13. FredrikN

    Simple problem

    Hi. I have a little problem, I can't store the systemcommand to an variable. Let say this perl script #!/usr/bin/perl $tmp = system ("ls"); print "The dir stuff is $tmp"; This script will first show the output from the $tmp = system ("ls"); line and then...
  14. FredrikN

    Input from a file

    Hi. Maybe someone can help me with this problem. Let say I want to run the command cat test.txt grep -v and then I want to get the rest of the command from some textfile. I tried cat test.txt grep -v < textfile.txt and there are many lines in the textfile that looks like this 192.168.0.1...

Part and Inventory Search

Back
Top