Search Results

Search: Posts Made By: new_item
Forum: Programming 12-12-2012
4,820
Posted By new_item
C++: get html page and store it in string
Hello all,

I want to write c++ program which will get html page content, put it in std::string variable, and finally print it to stdout.

Which tool can I use to get this effect?
Is cUrl good...
Forum: IP Networking 11-23-2012
3,556
Posted By new_item
Your point of view seems to be correct. This...
Your point of view seems to be correct. This matter is open for discussion. We hope that traffic will normalize to achieve equal distribution.

But this solution have to be tested on real traffic. ...
Forum: IP Networking 11-19-2012
3,556
Posted By new_item
Dividing traffic with u32 iptables filter
I would like to divide traffic between two squid servers.

I have been thinking about using iptables u32 filter, to check last bit of ip address which is comming to gateway. Then I would like to...
Forum: Programming 10-03-2012
2,529
Posted By new_item
I have similar question and I do not want to...
I have similar question and I do not want to start new thread, so I will post it here.
1,738
Posted By new_item
for i in *.gz ; do gunzip -d -c "$i" | 7za a -si...
for i in *.gz ; do gunzip -d -c "$i" | 7za a -si "${i/.gz/.7z}" ; doneIf you want you can add rm -f "$i" in loop in order to delete old archives, but it is not recommended. Better do it by hand...
2,612
Posted By new_item
Try to read about this: Solaris - stat(1)...
Try to read about this:
Solaris - stat(1) (http://www.opensolarisforum.org/man/man1/stat.html)

AFAIK there is also possibility to use FAM.
9,103
Posted By new_item
[ok@x60 ~]$ cat xxx | awk '{a[$1]++} END{for (x...
[ok@x60 ~]$ cat xxx | awk '{a[$1]++} END{for (x in a) {print x "\t" a[x]}}'|site2|MAP 4
|site2|LINK 2
|site1|LINK 2
|site1|MAP 6
|site1|MODAL 2
|site2|MODAL 2
[ok@x60 ~]$ cat xxx
|site1|MAP...
1,310
Posted By new_item
sed s/CRT=./CRT=4/g ...
sed s/CRT=./CRT=4/g
AC=1|ACST=1|ACT=351|AU=1|AUO=3|CLD=9541|CNC=9054|CNTR=905429800011|CRT=1|CST=240.000|CT=0|CUSG=240000|CZ=1|CZA=1|DIAL=905483420005|...
8,969
Posted By new_item
$ cat | sed 's/\./\.\n/g' | tr '[:upper:]'...
$ cat | sed 's/\./\.\n/g' | tr '[:upper:]' '[:lower:]' | sed 's/^ *//g' | perl -wp -pe '$_ = ucfirst' | tr '\n' ' 'cat | tr '[:upper:]' '[:lower:]' | sed -e 's/\./\.\n/g' | sed -e 's/^ *//g' | sed...
43,131
Posted By new_item
grep -r /etc 'Welcome to' ?
grep -r /etc 'Welcome to'

?
1,073
Posted By new_item
[root@x60 test]# a=$[`wc -l text | cut -f1 -d'...
[root@x60 test]# a=$[`wc -l text | cut -f1 -d' '`] ; b=$[$a/2] ; echo "Lines: $a ; 1/2: $b" ; echo -n "first part: " ; head -$b text | wc -l ; echo -n "second part: " ; tail -$[$a-$b] text | wc -l...
5,304
Posted By new_item
It may look strange, but I believe that...
It may look strange, but I believe that everything works ;)

find . -type f -print | awk -F'/' '{print "grep -H \"" $NF "\" \"" $0 "\""}' | bash | cut -f1 -d:

Corona688...
5,304
Posted By new_item
Thank you for reply. I think your solution is...
Thank you for reply. I think your solution is best possible ;) But I have been thinking how to resolve this matter without for or while loop. Only for test purposes. This task is not so important....
5,304
Posted By new_item
Basename in subshell
Hi All,

I would like to improve my bash scripting skill and found a problem which I do not understand. Task is to search and print files in directory (and subdirecories) which contains its own...
1,711
Posted By new_item
Try on other system. This is probably Ubuntu...
Try on other system. This is probably Ubuntu Hardy, and if it works long time without reboot, there will be no data to print from logs ;)
1,711
Posted By new_item
Did you run command without "#" ?? What kind of...
Did you run command without "#" ?? What kind of OS are you working on ?
1,711
Posted By new_item
Try this: # last | grep ^reboot ...
Try this:

# last | grep ^reboot


reboot system boot 3.3.2-6.fc16.i68 Tue May 1 19:24 - 00:47 (05:23)
reboot system boot 3.3.2-6.fc16.i68 Tue May 1 17:16 - 19:23 (02:06) ...
1,275
Posted By new_item
This was not checked in command line, so try it...
This was not checked in command line, so try it first, before you use it.

#!/usr/bin/sh
MY_PATH="/ushhquest/data001/SrcFiles/"
MY_TMP=`mktmp`

for srcfile in ${MY_PATH}/*.txt ; do
awk -F,...
Forum: BSD 04-30-2012
4,886
Posted By new_item
Yes. And there is more ... This is for oracle...
Yes. And there is more ... This is for oracle version 8.0.5. Wonder why they keep this in handbook for FreeBSD 9 ...
Forum: BSD 04-30-2012
4,886
Posted By new_item
Installation procedure is described in FreeBSD...
Installation procedure is described in FreeBSD Handbook Chapter 11 Linux Binary Compatibility. But oracle is running in emulated Linux environment, so probably it is not efficient.
Showing results 1 to 20 of 20

 
All times are GMT -4. The time now is 01:32 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy