Sponsored Content
Top Forums UNIX for Advanced & Expert Users How does netcat manage the data it transfers ? Post 302349090 by wakatana on Monday 31st of August 2009 05:37:00 AM
Old 08-31-2009
Hi qiulang Only thing I somewhere read about netcat is:

If you want transfer file between machines you type
reciever# nc -l p 8000 > /home/user/destination
sender# nc reciever 8000 < /home/user/source
But if somebody else start to send packets to reciever:8000 they will be ignored (cause it is TCP comunucation and session has been established previous)
Maybe it will help you

---------- Post updated at 11:37 AM ---------- Previous update was at 11:27 AM ----------

also found tool called netcat++ socat
 

8 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

Netcat with Authentication?

I'd like to do a data transfer without encryption but with a guarantee that my data comes from a legit source. I'm thinking something that uses a public key scheme to sign the data. Does anyone know of something like that? Thanks! -Pileofrogs (1 Reply)
Discussion started by: pileofrogs
1 Replies

2. Shell Programming and Scripting

netcat

Is there a way how to react on the message a client sent to the server? I would like as the client sent message to server: "get information such and such" and server would answer. Thank you for reply! (6 Replies)
Discussion started by: MartyIX
6 Replies

3. Ubuntu

Data Transfers Lock System Up Completely

I have two laptops on which I've installed Ubuntu Studio 9.04. The first laptop (Acer) has a Centrino 32-bit Intel CPU in it and the second (HP) has a 64-bit dual core Intel CPU. I'm running the 32-bit version of Ubuntu Studio on the Acer and the 64-bit version on the HP. While testing the... (5 Replies)
Discussion started by: deckard
5 Replies

4. Linux

Thank you radoulov for your help on netcat command (nc -lp)

Hello, Thank you very much for the line nc -lp <port> . I tried to run simple chat session with nc as it's shown in catonmatDOTorg but failed miserably with that syntax inspite of opening port 7777 by iptables . But your command example is working nicely. So a bagful of thanks :)) Only one... (0 Replies)
Discussion started by: vectrum
0 Replies

5. Shell Programming and Scripting

Post using nc(netcat)

Hi; I have a url like http://localhost:8080/examples/jsp/dates/nextPageToPost.jsp?name=ajay&password=pas&sex=Male&check=on&nationality=USA&description=aa&submit=submit in which i want to use nc for http post for parameters like "name","password"....etc can neone please help me how to do that... (3 Replies)
Discussion started by: ajaypadvi
3 Replies

6. IP Networking

Help with Netcat

Hi all, I know my question is regarding Windows and not Linux, but I simply need people who know Netcat pretty well and I'm guessing here is a good place for that. So on with my question. I'm doing some research, and I was playing around with netcat on a WinXP VM but I can't seem to get... (0 Replies)
Discussion started by: MrCrumbs
0 Replies

7. Emergency UNIX and Linux Support

Netcat ( nc -l ) as webserver

Dear Linux guru's I am trying to create a webserver using nc (netcat only) on RHEL 7.2 running on bash shell. now the easy thing is to get nc listing to a port and respond back $ while true; do { echo -e 'HTTP/1.0 200 OK\r\n'; set; } | nc -l 7877; done This when called from a... (3 Replies)
Discussion started by: chakrapani
3 Replies

8. UNIX for Beginners Questions & Answers

How to fix and manage data in rescue mode?

Hello, I am running ubuntu 14.04 My server has problems again. I need to manage system files in rescue mode, backup some files, edit /etc/crontab and rc.local files etc. root@rescue:~# cat /proc/mdstat Personalities : md2 : active raid1 sda2 sdb2 4193216 blocks md3 :... (4 Replies)
Discussion started by: baris35
4 Replies
GLOBUS-URL-COPY(1)						   Globus Tookit						GLOBUS-URL-COPY(1)

NAME
globus-url-copy - globus-url-copy SYNOPSIS
globus-url-copy [options] [SOURCE-URL] [DESTINATION-URL] DESCRIPTION
The globus-url-copy program is a command line tool for multi-protocol data movement. It supports gsiftp:// (GridFTP), ftp://, http://, https://, sshftp:// and file:/// protocol specifiers in the URL. OPTIONS
-help, -usage Print help. -versions Print the versions of all modules that this program uses -c, -continue-on-error Do not die after any errors. By default, program will exit after most errors. -a, -ascii Convert the file to/from ASCII format to/from local file format -b, -binary Do not apply any conversion to the files. *default* -f filename Read a list of url pairs from filename. Each line should contain sourceURL destURL. Enclose URLs with spaces in double qoutes ("). Blank lines and lines beginning with # will be ignored. -cd, -create-dest Create destination directory if needed. -r Copy files in subdirectories -fast Recommended when using GridFTP servers. Use MODE E for all data transfers, including reusing data channels between list and transfer operations. -t transfer time in seconds Run the transfer for this number of seconds and then end. Useful for performance testing or forced restart loops. -q, -quiet Suppress all output for successful operation -v, -verbose Display urls being transferred -vb, -verbose-perf During the transfer, display the number of bytes transferred and the transfer rate per second. Show urls being transferred -dbg, -debugftp Debug ftp connections. Prints control channel communication to stderr -rst, -restart Restart failed ftp operations. -rst-retries retries The maximum number of times to retry the operation before giving up on the transfer. Use 0 for infinite. Default is 5. -rst-interval seconds The interval in seconds to wait after a failure before retrying the transfer. Use 0 for an exponential backoff. Default is 0. -rst-timeout seconds Maximum time after a failure to keep retrying. Use 0 for no timeout. Default is 0. -stall-timeout SECONDS, -st SECONDS How long before cancelling/restarting a transfer with no data movement. Set to 0 to disable. Default is 600 seconds. -df FILENAME, -dumpfile FILENAME Path to file where untransferred urls will be saved for later restarting. Resulting file is the same format as the -f input file. If file exists, it will be read and all other url input will be ignored. -do FILENAME, -dump-only FILENAME Perform no write operations on the destination. Instead, all files that would be transferred are enumerated and dumped to the specified file. Resulting file is the same format as the -f input file. Note: if you intend to use this file as input for a future transfer, the -create-dest option will be required if any destination directories do not already exist. -rp, -relative-paths The path portion of ftp urls will be interpereted as relative to the user's starting directory on the server. By default, all paths are root-relative. When this flag is set, the path portion of the ftp url must start with %2F if it designates a root-relative path. -s SUBJECT, -subject SUBJECT Use this subject to match with both the source and dest servers -ss SUBJECT, -source-subject SUBJECT Use this subject to match with the source server -ds SUBJECT, -dest-subject SUBJECT Use this subject to match with the destionation server -tcp-bs SIZE, -tcp-buffer-size SIZE Specify the size (in bytes) of the buffer to be used by the underlying ftp data channels. -bs block SIZE, -block-size block SIZE Specify the size (in bytes) of the buffer to be used by the underlying transfer methods -p PARALLELISM, -parallel PARALLELISM Specify the number of parallel data connections should be used. -notpt, -no-third-party-transfers Turn third-party transfers off (on by default). -nodcau, -no-data-channel-authentication Turn off data channel authentication for ftp transfers. -dcsafe, -data-channel-safe Set data channel protection mode to SAFE -dcpriv, -data-channel-private Set data channel protection mode to PRIVATE -off, -partial-offset Offset for partial ftp file transfers, defaults to 0 -len, -partial-length Length for partial ftp file transfers, used only for the source url, defaults the full file. -list URL List the files located at URL. -stripe Enable striped transfers on supported servers -striped-block-size, -sbs Set layout mode and blocksize for striped transfers. If not set, server defaults will be used. If set to 0, Partitioned mode will be used. If set to >0, Blocked mode will be used, with this as the blocksize. -ipv6 Use ipv6 when available (EXPERIMENTAL) -udt Use UDT, a reliable udp based transport protocol, for data transfers -g2, -gridftp2 Use GridFTP v2 protocol enhancements when possible -dp, -delayed-pasv Enable delayed passive -mn, -module-name gridftp storage module name Set the backend storage module to use for both the source and destination in a GridFTP transfer -mp, -module-parameters gridftp storage module parameters Set the backend storage module arguments to use for both the source and destination in a GridFTP transfer -smn, -src-module-name gridftp storage module name Set the backend storage module to use for the source in a GridFTP transfer -smp, -src-module-parameters gridftp storage module parameters Set the backend storage module arguments to use for the source in a GridFTP transfer -dmn, -dst-module-name gridftp storage module name Set the backend storage module to use for the destination in a GridFTP transfer -dmp, -dst-module-parameters gridftp storage module parameters Set the backend storage module arguments to use for the destination in a GridFTP transfer -aa, -authz-assert authorization assertion file Use the assertions in this file to authorize the access with both source and dest servers -saa, -src-authz-assert authorization assertion file Use the assertions in this file to authorize the access with source server -daa, -dst-authz-assert authorization assertion file Use the assertions in this file to authorize the access with dest server -cache-aa, -cache-authz-assert Cache the authz assertion for subsequent transfers -cache-saa, -cache-src-authz-assert Cache the src authz assertion for subsequent transfers -cache-daa, -cache-dst-authz-assert Cache the dst authz assertion for subsequent transfers -pipeline, -pp Enable pipelining support for multi-file ftp transfers. Currently third-party transfers benefit from this. *EXPERIMENTAL* -concurrency, -cc Number of concurrent ftp connections to use for multiple transfers. -nl-bottleneck, -nlb Use NetLogger to estimate speeds of disk and network read/write system calls, and attempt to determine the bottleneck component -src-pipe, -SP command line Set the source end of a remote transfer to use piped in input with the given command line. Do not use with -fsstack -dst-pipe, -DP command line Set the destination end of a remote transfer to write data to then standard input of the program run via the given command line. Do not use with -fsstack -pipe command line Sets both -src-pipe and -dst-pipe to the same thing. -dcstack, -data-channel-stack Set the XIO driver stack for the network on both the source and the destination. Both must be GridFTP servers. -fsstack, -file-system-stack Set the XIO driver stack for the disk on both the source and the destination. Both must be GridFTP servers. -src-dcstack, -source-data-channel-stack Set the XIO driver stack for the network on the source GridFTP server. -src-fsstack, -source-file-system-stack Set the XIO driver stack for the disk on the source GridFTP server. -dst-dcstack, -dest-data-channel-stack Set the XIO driver stack for the network on the destination GridFTP server. -dst-fsstack, -dest-file-system-stack Set the XIO driver stack for the disk on the destination GridFTP server. -cred path to credentials or proxy file Set the credentials to use for both ftp connections. -src-cred CRED-FILE, -sc CRED-FILE Set the credentials to use for source ftp connections. -dst-cred, -dc path to credentials or proxy file Set the credentials to use for destination ftp connections. -af filename, -alias-file filename File with mapping of logical host aliases to lists of physical hosts. When used with multiple conncurrent connections, each connection uses the next host in the list. Each line should either be an alias, noted with the @ symbol, or a hostname[:port]. Currently, only the aliases @source and @destination are valid, and they are used for every source or destination url. -sync Only transfer files where the destination does not exist or differs from the source. -sync-level controls how to determine if files differ. -sync-level number Choose critera for determining if files differ when performing a sync transfer. o Level 0 will only transfer if the destination does not exist. o Level 1 will transfer if the size of the destination does not match the size of the source. o Level 2 will transfer if the timestamp of the destination is older than the timestamp of the source. o Level 3 will perform a checksum of the source and destination and transfer if the checksums do not match. The default sync level is 2. AUTHOR
The Globus Alliance, http://www.globus.org/ Author. COPYRIGHT
Copyright (C) 1999-2010 University of Chicago The Globus Alliance 02/09/2012 GLOBUS-URL-COPY(1)
All times are GMT -4. The time now is 01:52 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy