When I email the output of top to my self it contains a bunch of forgien characters that dont appear if I just output it to the screen. How can I get it not to show thos characters? IE start with "top" and not "[H[J[?7l[mtop"
[H[J[?7l[mtop - 09:56:47 up 6 days, 5:38, 2 users, load...
How can I go through a c-block of IP's and see which ones ping?
I want to find available IP's how can I use perl to print the ips in a cblock that dont ping?
This will write to the end of a file but how do I write to the beginning of the file without losing the contents already in that file?
open HTML, ">>c:/web/root/index.html";print HTML "Content-Type: text/html\n\n";
print HTML "<html><head></head><body>";
print HTML "<h2>Written by Perl!</h2>"...
root@server1 [/]# cat ss4
#!/usr/bin/perl
$a=`uptime`;
$a =~ /[\d*],/;
#echo "a = $a"
if ( $a < 5.2 ){
print $a;
}
root@server1 [/]# ./ss4
1:04pm up 29 days, 18:41, 1 user, load average: 0.24, 0.33, 0.29
How do I get this to display only the 0.24 and not the full output of uptime?
root@server1 [/]# uptime
9:02am up 29 days, 14:39, 2 users, load average: 0.31, 0.24, 0.59
root@server1 [/]# uptime | awk {'print $10'}
0.31,
I want it to display 0.31 not 0.31,
What would the correct command be?
How do I get this commend to display the number of occurances if the ips in order?
cat domain.com | awk {'print $1'} | uniq -c
4 69.6.129.15
1 207.91.154.86
1 69.6.129.15
2 207.91.154.86
1 24.81.86.192
9 207.91.154.86
1 67.70.56.142
1...
I tried running patch-o-matic with KERNEL_DIR=/usr/src/linux IPTABLES_DIR=/usr/src/iptables-1.3.1 ./runme extra, but it doesnt prompt me for the string package. Got any tips?
It goes:
...........
Testing rtsp-conntrack... not applied
The rtsp-conntrack patch:
Testing sip-conntrack-nat... not...
If all Block All Cookies in IE is disabled, will sessions work?
I cant seem to get IE to accept my session variable if Privacy is set to "Block All Cookies" (this highest setting), does this also block php session variable?
If Privacy is set to high the session variables work and if i use a...
If I want to block all tcp packets which contain the string "hotmail.com" can I do that with IP tables?
Will something like this work?
iptables -I INPUT -j DROP -p tcp -m string --string "hotmail.com" -i eth0 -j
I made php script that writes a cookie and then reads it, using the setcookie php function.
This works fine on XP with Netscape, mac with IE, and mac with Safari, it does not work with XP and IE.
How do I get my cookie to work?
Where can I get a php speedtest? One that I can upload to my site and it will tell me the speed it takes to download X kb from my location and on that calculates throughput in kbps.
How can I map ports on my public ip to private ips?
I have a linux firewall/router running ip tables with and ip of xx.45.123.90
and 4 internet cameras on the public network at ips
10.10.0.100
10.10.0.101
10.10.0.102
10.10.0.103
how can i map
http://xx.45.123.90:2000 to 10.10.0.100...
First line in emails i send in outlook are in 10pt font rest is 12pt
How do I get it to always use 10pt font or always 12pt font?
Why would it change font size on me just by hitting enter after the first line?
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.