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 strongm 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: geebers
  • Content: Threads
  • Order by date
  1. geebers

    iptables wlan traffic to LAN webserver

    Need help with iptables rules for my wireless router running dd-wrt. Have a bridge (br1) setup with eth0 and vlan2 assigned to it. No internet (WAN). br1 IP = 192.168.3.1, 255.255.255.0 eth1 = wireless interface (br1) vlan2 = wired LAN port #1 (br1) webserver = 192.168.3.120:80 (wired to vlan2)...
  2. geebers

    command to print an image file

    How to print a jpg file from the command line. Thats all. Thanks for any help.
  3. geebers

    which is more efficient....

    Which taxes my cpu more..... while :; do echo "hello world" done OR while :; do echo "hello world" sleep 1 done just curious. sorry if its painfully obvious and i'm just a dolt.
  4. geebers

    netcat and re-stablishing network connection

    Consider the following netcat command to listen on a port..... sudo nc -l -u -p 3333 | myscript.sh contents of myscript.sh is.... #!/bin/sh while read INPUT; do echo "Input is $INPUT | tee /tmp/log.$$ done This waits for a connection on port 3333 and when a connection is made, data sent by...
  5. geebers

    pipe text from port 2222 to script using xinetd

    i have xinetd setup to run myscript.sh whenever some text is sent to port 2222. but i'm needing to pipe the text into myscript.sh example: - client sends string "11111" to server port 2222 - myscript.sh is executed with "11111" as the first argument. can this be done? thanks for any help.
  6. geebers

    runshell script for each netcat output

    is there an efficient way to fire off a shell script each time netcat receives new text string from a network port? i need root to run myscript.sh each time a new string of text is received from port 3333. also, capture the string as a variable in myscript.sh. thanks for any help. m
  7. geebers

    Directory Action

    my.php file runs whenever a jpeg file is requested. The directive looks like.... <Directory "/opt/lampp/htdocs/images/"> AddHandler image/jpeg .jpg Action image/jpeg /opt/lampp/cgi-bin/my.php </Directory> again, this works, however, the jpeg image does not display in the browser. I need my.php...
  8. geebers

    run script after file download

    i need my php script to exectute once a file has been requested/downloaded by anyone. I'm new to apache config. Perhaps there's a directive for this? thanks for any help.
  9. geebers

    Read from /dev/ttyS0 via shell script

    Seems the only way that I can read ascii text coming accross /dev/ttyS0 is with a gui-type of serial console. I need to do this with a shell script similiar to... #!/bin/sh cat /dev/ttyS0 > myFile.txt ...putting the output into a text file. Like I said, only gui programs seem to work. I guess...

Part and Inventory Search

Back
Top