HomeWHATWhat Does -a Do In Linux

What Does -a Do In Linux

BSD mandoc SYSTEM V

NAME

mput – Fast file spreader

SYNOPSIS

mput [-h ] [-v ] [-P ] [-l username ] [-c connector ] [ –m hostname | –m host=XXX,connect=XXX,login=XXX ] … [ –m hostname | –m host=XXX,connect=XXX,login=XXX ] – <file_source> <file_dest>

DESCRIPTION

mput copies file_source from the user host to file_dest on hosts specified with -m option. You should give an absolute path for file_dest

Mput connect to every host and launch mput on them. Each host connects to the one before (considering the order given by the user). For example, in mput -m host1 -m host2 – <file_source> <file_dest> host2 connects to host1 which connects to the user host. When the chain is ready, the file is slipted on the user host and each packet is sent to host1 which sends it to host2 and writes it on disk. Host2 receives all packet and writes them on disk. Mput is synchronized. If one host can’t be connected then the spreading is aborted. By default mput uses rsh protocol to join launch mput on hosts. You must be in root group to use mput as it uses reserved ports. Mput normally terminates when the file is copied on all hosts.

The options are as follows:

-c The –c option allow you to choose what kind of connector you want to use to contact an host. The available values are :

Refer to more articles:  What Does A Carrot Sprout Look Like

rshs synchrone rsh connection

rsha asynchrone rsh connection

rsht asynchrone rsh connection using threads

rsh forking rsh connection

ssh forking ssh connection

ssf forking ssf connection

-v The –v option turns on the verbose mode: write < hostname > [node_id : id] :->: before output buffer. -P The –P option turns on the profiling mode, actually only the execution time. -i Let fd opened by application when the exec command is use. WARNING don’t use it if you don’t know what you do 😉 -l By default, the remote username is the same as the local username. The –l option allows the remote name to be specified. -m The –m option specifies one host. This option can be increased with suboptions

host=hostname

connect=connector_name, which connector we must use for this node

login=log_name, login for this node

FILES

/etc/hosts

SEE ALSO

rshp(1), sentinelle(1), rcmd(3)

ID-IMAG & BULL in dyade project #### Report new bugs to [email protected] ####

RELATED ARTICLES

Most Popular

Recent Comments