8 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi Folks,
I have a text file with a thousand lines consisting of words or a group of words separated by commas.
I would like to randomize / shuffle the words on each line.
Eg; file.txt
Linux,Open,Free,Awesome,Best Things in Life,The Greatest
Laptop,PC,Tablet,Home Computers,Digital... (2 Replies)
Discussion started by: martinsmith
2 Replies
2. Red Hat
I'm building a yum mirror on Oracle Enterprise Linux, which is a fork of RHEL. I'm using uln-yum-mirror to create and maintain the mirror. In the Yum client, more specifically in /etc/yum.conf there is a throttle setting.
Is there a like feature in /etc/sysconfig/uln-yum-mirror? If so, what is... (0 Replies)
Discussion started by: os2mac
0 Replies
3. Solaris
I get poor performance when sftp'ing a file to a server on a SunOS 5.10 system, with Sun_SSH_1.1.4. The same client performs much better to a linux system at the same site.
From a TCPdump, it appears that the Solaris server is throttling the thruput. After proceeding normally for a while, the... (0 Replies)
Discussion started by: AGermain
0 Replies
4. UNIX for Dummies Questions & Answers
Ok, so let's say that I have a file like the following:
I want to create 100 replicates of this file, except that for each file, I want different randomized combinations of either A or B at the end of each line so that I would end up with files like the following:
and
etc.
I... (1 Reply)
Discussion started by: Scatterbrain26
1 Replies
5. UNIX for Advanced & Expert Users
Is there a way of throttling a process resources, something akin to limits but for processes not users? ie I want processX to be restricted in the amount of memory it can consume. For process cpu I guess I can simply nice the process, but total memory consumption is my primary concern. (3 Replies)
Discussion started by: humbletech99
3 Replies
6. Shell Programming and Scripting
Hey guys,
Need your help/suggestions
I have a log file which has 5K lines in it, I need to send only 200 lines to an application at a time and delete the 200 lines from log fileafter its been fed to application.
The script should keep on running until all 5K has been... (2 Replies)
Discussion started by: achararun
2 Replies
7. Windows & DOS: Issues & Discussions
:confused: folder option is dissapiaring in tool menu
iam formatting c drive after removal of this virus
& also regedit is also not opening the messerge say's administrater disabled
with out formattiung how ican solve this problem i.e iwant to get folder options& regedit (2 Replies)
Discussion started by: seshumohan
2 Replies
8. UNIX for Dummies Questions & Answers
can linux get a virus on the boot sec from windows? becuse my buddys computer micro trend cmos virus keeps telling him that
there is a boot sec virus on my hdd is that possable or is the box
being dumb and looking at the linux boot as a virus? it was set up as a windows box not a linux... (4 Replies)
Discussion started by: amicrawler2000
4 Replies
HTTP_THROTTLE(3) 1 HTTP_THROTTLE(3)
http_throttle - HTTP throttling
SYNOPSIS
void http_throttle (float $sec, [int $bytes = 40960])
DESCRIPTION
Sets the throttle delay and send buffer size.
Note
This function should be used in conjunction with http_send_data(3), http_send_file(3) and http_send_stream(3).
Note
Provides a basic throttling mechanism, which will yield the current process or thread until the entity has been completely sent.
Note
This may not work as expected with the following SAPI(s): FastCGI.
PARAMETERS
o $sec
- seconds to sleep after each chunk sent
o $bytes
- the chunk size in bytes
EXAMPLES
Example #1
A http_throttle(3) example
Send file with approximately 20 kbyte/s.
<?php
// ~ 20 kbyte/s
# http_throttle(1, 20000);
# http_throttle(0.5, 10000);
http_throttle(0.1, 2000);
http_send_file('document.pdf');
?>
SEE ALSO
http_send_data(3), http_send_file(3), http_send_stream(3), the HttpResponse class if you are using PHP 5.1.0 and above.
PHP Documentation Group HTTP_THROTTLE(3)