Sponsored Content
Top Forums Shell Programming and Scripting Check fastest server and using it Post 302923869 by nimafire on Wednesday 5th of November 2014 12:10:07 AM
Old 11-05-2014
Check fastest server and using it

hello
we have upload some data in 15 servers in usa asia ...
i consider to add new feature , script can detect download speed between localhost and destination and use fastest server,

i have cut this part from a script which have this feature, download a xx MB file from all its source and check speed, and use fastest one:

Code:
echo -n "Would you like to search for the fastest download mirror? (y/n): ";
                read yesno;
                if [ "$yesno" = "y" ]; then
                    $BUILD set_fastest;
            
            if [ -s "${CB_OPTIONS}" ]; then
                DL=`grep ^downloadserver= ${CB_OPTIONS} | cut -d= -f2`
                if [ "${DL}" != "" ]; then
                    SERVER=http://${DL}/services
                    FTP_HOST=${DL}
                fi
            fi
                fi

 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

fastest copy command

wich is the fastest command in HP-UX to copy an entire disk to dat tapes, or even disk to disk? thanks (0 Replies)
Discussion started by: vascobrito
0 Replies

2. Shell Programming and Scripting

fastest way to remove duplicates.

I have searched the FAQ - by using sort, duplicates, etc.... but I didn't get any articles or results on it. Currently, I am using: sort -u file1 > file2 to remove duplicates. For a file size of 1giga byte approx. time taken to remove duplicates is 1hr 21 mins. Is there any other faster way... (15 Replies)
Discussion started by: radhika
15 Replies

3. UNIX for Dummies Questions & Answers

Fastest way to traverse through large directories

Hi! I have thousands of sub-directories, and hundreds of thousands of files in them. What is the fast way to find out which files are older than a certain date? Is the "find" command the fastest? Or is there some other way? Right now I have a C script that traverses through and checks... (5 Replies)
Discussion started by: sreedharange
5 Replies

4. Shell Programming and Scripting

how to delete/remove directory in fastest way

hello i need help to remove directory . The directory is not empty ., it contains several sub directories and files inside that.. total number of files in one directory is 12,24,446 . rm -rf doesnt work . it is prompting for every file .. i want to delete without prompting and... (6 Replies)
Discussion started by: getdpg
6 Replies

5. UNIX for Advanced & Expert Users

Fastest way for searching the file

I want to search a file in fastest manner. Presently I am using 'find' command. But it is taking around 15min for searching. Is there any other method through which I can do it fast? (3 Replies)
Discussion started by: vaibhavbhat
3 Replies

6. Shell Programming and Scripting

Fastest way to delete line

I have a 5 GB text file(log/debug) I want to delete all lines containing 'TRACE' Command used sed -i '/TRACE/d' mylog.txt Is there any other fastest way to do this? (1 Reply)
Discussion started by: johnbach
1 Replies

7. Solaris

The FASTEST copy method?

Hi Experts, I've been asked if there is a fast way to duplicate a file(10GB) and zip it at the same time. The zipped file would be FTP'd.....management is asking this. Maybe there is a better method all together? any ideas? CP will not cut it. Thanks in advance Harley (1 Reply)
Discussion started by: Harleyrci
1 Replies

8. Programming

Fastest way to find the length of string in c

Hi all, We use strlen() fun provided by library to find the length of a string. Looking inside of it, it has some different mechanism to find the length of string. Normally, we scan the string byte by byte until the '\0' character. It takes a logn time to count length. The Library strlen()... (2 Replies)
Discussion started by: yogeshrl9072
2 Replies

9. Shell Programming and Scripting

Fastest way calculating directory

Hi expert, Is there any fastest way to calculate recursive directory, and I have total 600 directories have 100000 files and 10 directory approximately 9000000 - 10000000 each files per directory. currently using this command "du -k --max-depth=0" to get the size but very slow it take 24 hours... (9 Replies)
Discussion started by: rufino
9 Replies

10. Solaris

The Fastest for copy huge data

Dear Experts, I would like to know what's the best method for copy data around 3 mio (spread in a hundred folders, size each file around 1kb) between 2 servers? I already tried using Rsync and tar command. But using these command is too long. Please advice. Thanks Edy (11 Replies)
Discussion started by: edydsuranta
11 Replies
TRANSMISSION-CLI(1)					    BSD General Commands Manual 				       TRANSMISSION-CLI(1)

NAME
transmission-cli -- a bittorrent client SYNOPSIS
transmission-cli -h transmission-cli [-b | -B] [-d number | -D] [-er | -ep | -et] [-f script] [-g directory] [-h] [-m | -M] [-p port] [-t] [-u number | -U] [-v] [-w directory] torrent-file DESCRIPTION
The transmission-cli program is a lightweight, command-line BitTorrent client with scripting capabilities. The options are as follows: -b --blocklist Enable peer blocklists. Transmission understands the bluetack blocklist file format. New blocklists can be added by copying them into the config-dir's "blocklists" subdirectory. -B --no-blocklist Disble blocklists. -d, --downlimit number Set the maximum download speed in KB/s -D, --no-downlimit Don't limit the download speed -er --encryption-required Encrypt all peer connections. -ep --encryption-preferred Prefer encrypted peer connections. -et --encryption-tolerated Prefer unencrypted peer connections. -f, --finish script Set a script to run when the torrent finishes -g, --config-dir directory Where to look for configuration files. This can be used to swap between using the cli, daemon, gtk, and qt clients. See http://trac.transmissionbt.com/wiki/ConfigFiles for more information. -h, --help Prints a short usage summary. -m, --portmap Enable portmapping via NAT-PMP or UPnP -M, --no-portmap Disable portmapping -n, --new sourcefile Create torrent from the specified file or directory -p, --port port Set the port to listen for incoming peers. (Default: 51413) -t, --tos Set the peer socket TOS for local router-based traffic shaping. -u, --uplimit number Set the maximum upload speed in KB/s -U, --no-uplimit Don't limit the upload speed -v, --verify Verify the torrent's downloaded data. -w, --download-dir directory Where to save downloaded data. SIGNALS
In addition to these options, sending transmission-cli a SIGHUP signal will contact the tracker for more peers. ENVIRONMENT
TRANSMISSION_HOME Sets the default config-dir. http_proxy libcurl uses this environment variable when performing tracker announces. FILES
~/.config/transmission Directory where transmission-cli keeps torrent information for future seeding and resume operations. AUTHORS
The transmission-cli program was written by Eric Petit, Josh Elsasser, Jordan Lee, and Mitchell Livingston. SEE ALSO
transmission-create(1), transmission-daemon(1), transmission-edit(1), transmission-gtk(1), transmission-qt(1), transmission-remote(1), transmission-show(1) http://www.transmissionbt.com/ BSD
July 21, 2008 BSD
All times are GMT -4. The time now is 12:52 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy