Results 1 to 10 of 12
I encounter this problem, as my curl command is use straight after other command thus there is an error... so im thinking whether it is possible to have a command ...
- 11-13-2007 #1Just Joined!
- Join Date
- Jul 2007
- Posts
- 59
Do anyone know which command is use to slow down any other commands like curl...
I encounter this problem, as my curl command is use straight after other command thus there is an error... so im thinking whether it is possible to have a command to slow down the other command 1st...but which command should i use to shlow them down??
- 11-13-2007 #2
- 11-13-2007 #3Just Joined!
- Join Date
- Jul 2007
- Posts
- 59
- 11-13-2007 #4
- 11-13-2007 #5
When you say 'slow down' do you mean that you want one command to have priority over another? If so then the 'nice' command might help you. If you 'renice' a process then can reduce its priorities. Sleep will pause a process for a given amount of time.
man nice
man reniceI am always doing that which I can not do, in order that I may learn how to do it. - Pablo Picasso
- 11-14-2007 #6
try nice command
- Lakshmipathi.G
-------------------
FOSS India Award winning ext3fs Undelete tool and tutorials www.giis.co.in
First they criticize you,Then they laugh at you,Then they fight with you,Then you win. - M.K.Gandhi
-------------------
- 11-14-2007 #7Just Joined!
- Join Date
- Jul 2007
- Posts
- 59
- 11-14-2007 #8
- 11-14-2007 #9Just Joined!
- Join Date
- Jul 2007
- Posts
- 59
#!/bin/bash
#code.h
Why nt help me solve this...why doesn't it work?
curl --proxy proxy.tp.edu.sg:80 "www.channelnewsasia.com/singapore/index.htm " > 1.txt :
grepheader=$header:
lines1=${2:-3}:
lines2=${2:-1}:
sub=$'s/<[^<>]*>//g':
cat 1.txt | grep $grepheader | head -$lines1 | sed $sub | tail -$lines2 > data.txt:
exit
- 11-14-2007 #10
do it like this
Now you get a file called output. That should just work.Code:curl --proxy proxy.tp.edu.sg:80 "www.channelnewsasia.com/singapore/index.htm " > temp grepheader=$header lines1=${2:-3} lines2=${2:-1} sub=$'s/<[^<>]*>//g' cat temp & grep $grepheader & head -$lines1 & sed $sub & tail -$lines2 > output
Since now they wait for eachother before they are done.. (I removed the : )


Reply With Quote
