Sponsored Content
Top Forums UNIX for Dummies Questions & Answers New to shell script and lost.... Post 302247838 by LRoberts on Thursday 16th of October 2008 12:12:08 PM
Old 10-16-2008
Opps forgot the other ] ;-)
 

9 More Discussions You Might Find Interesting

1. Filesystems, Disks and Memory

Lost Data Lost Admin

First time so excuse my ignorance please. I may not be accurately describing the issue. I have inherited a small lab mostly SUN V120s. We lost power and are trying to recover. Nope no backups... The primary issue I have is 1 box is an Oracle Server. It has 2 36Gb harddrives. I am able to... (3 Replies)
Discussion started by: murphsr
3 Replies

2. UNIX for Advanced & Expert Users

All alias in .profile lost when "script" command is called

Hi, I was trying to call "script <an ip add>" command from .profile file to log everything whenever anyone logs in to this user. I did the following at the end of .profile. 1) Extracted the IP address who logged in 2) Called script < ip add> . The problem I am facing is all, aliases etc. written... (3 Replies)
Discussion started by: amicon007
3 Replies

3. Post Here to Contact Site Administrators and Moderators

My shell pipe 2 multipipes thread is lost ?

Hi, yesterday I have got reply in my thread how to redirect shell pipe to 2 pipes. I would read that answer once again, as my re.re. is also lost Jack (6 Replies)
Discussion started by: jack2
6 Replies

4. Homework & Coursework Questions

brand new user!.. Lost on BASH script writing

Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted! 1. The problem statement, all variables and given/known data: I have just gotten into writing bash scripts for a class, part of the assignment is to read and be able to tell... (4 Replies)
Discussion started by: Byrang
4 Replies

5. Shell Programming and Scripting

Data pipe lost when using ssh in shell script

Hi, I want to do SSH on many different machines and then run some commands on them. A binary application randomly generates IP addresses and my script will take care of doing SSH. $ ./IPGen.exe | ./myScript.sh my script looks like this: while read line; do result1=$(ssh $line... (2 Replies)
Discussion started by: siavash
2 Replies

6. Homework & Coursework Questions

Lost in shell script

Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted! 1. The problem statement, all variables and given/known data: Hey whats up everyone, Currently I'm stuck. In this question I have to use the following commands test, shift,... (7 Replies)
Discussion started by: AdamSahp
7 Replies

7. Shell Programming and Scripting

Why commands inside bash script lost effectiveness?

Hi, I have a bash script to run many system commands on CentOS machine, but I am puzzled by some commands had no effect on parent environment. For example, I want to refresh the desktop xdg menu when some processes added or deleted items from desktop xdg menu. If I run "killall gnome-panel"... (4 Replies)
Discussion started by: hce
4 Replies

8. Programming

Learning python, lost with script

Hi there, im just having a hard time understanding why this code does not print anything that is suppose to print: score = raw_input ('what is your score? \n') try: if 1.0 == float(score) >= 0.9: print "A" elif 0.9 > float(score) >= 0.8: ... (1 Reply)
Discussion started by: la2015
1 Replies

9. Shell Programming and Scripting

The Shell lost the inverted comma in a nested ssh command

Hi, i want use this Comand for my psql request sh ssh -o StrictHostKeyChecking=no rootatemailaddress.de sudo psql -U postgres -c "select pg_terminate_backend(pid) from pg_stat_activity where datnam=\'$DB\';"'" but the shell lost the inverted comma for datnam=\'$DB\'. The request deliver... (2 Replies)
Discussion started by: peterpane007
2 Replies
NETSEND(1)							      netsend								NETSEND(1)

NAME
netsend - a speedy filetransfer and network diagnostic program SYNOPSIS
netsend [OPTIONS] PROTOCOL MODE { COMMAND | HELP } DESCRIPTION
PROTOCOL
Protocol is one of tcp, udp, udplite, dccp, sctp or tipc. When using tipc, you must also specify a socket type, e.g. netsend tipc MODE -t SOCK_STREAM. MODE
Mode is either receive or transmit. OPTIONS
-r Nn,Nd,Nm,Nf Round trip probes options: Nn - Number of iterations of round trip probes. Default is to perform 10 attempts. Don't set to less then 5 because measurement results will not very predicating. Nd - Size of rtt payload. This is the number of bytes piggybacking (plus the netsend rtt header). Default is 500 byte, maybe your mtu minus netsend header minus protocol header (tcp, udp) will better fit for your needs. Nm - for the round trip time probes netsend calculates a deviation. With this flag you can adjust the filter. Default is 4. Lower values drain more probes out, so be carefully with this option. For example: if you have measured rtt probes of 4, 5, 5, 6 and 15 ms. The average is 7. Covariance is 16.4 and deviation is 4.04. If you select 2 here as the multiplier, then you filter all rtt probes with higher values then 8.08 (for this example you filer 15ms out). This will help to discard some nonesense probes who are evoked through cold code paths (cache misses, page faults, ...) or network anomalies. Use this option carefully! -f forces to don't perform rtt probes but take N milliseconds as average value. With this option you can figure out the behaviour of satelite links (e.g you say -D500f) -b followed by a number: sets read/write buffer size to use. Default is 8192 for read/write and size_of_file_to_send for mmap/sendfile. -m followed by a memadvise(2) option: normal, sequential, random, willneed, dontneed, noreuse. -p followed by a number: set TCP/UDP/DCCP/SCTP port to use. Default is 6666. -P followed by scheduling policy: sched_rr, sched_fifo, sched_batch or sched_other -s followed by a setsockopt(2) optname and optval. netsend maps setsockopt levels and optlen internally. running 'netsend -s list' will print a list of all setsockopt optnames currently recognized by netsend. -T followed by either human or machine: sets output format -u followed by the transmit function to use. One of sendfile, mmap, splice or rw. When not specified, rw (read/write) is used. Note that not all protocols support all transfer methods, e.g. TIPCs connectionless sockets (SOCK_RDM and SOCK_DGRAM) do not support the sendfile system call. Also, the amount of data that can be sent in a single operation may be limited by the network protocol used. EXAMPLES
Listen for incoming SCTP connections, incoming data goes to stdout: ./netsend -T human -v stressful sctp receive Send file largefile via TCP with output in machine parseable format: ./netsend -T machine tcp transmit largefile host.example.org Receive data via TCP with MD5SIG from peer 10.0.0.1: ./netsend tcp transmit -C largefile ffff::10.0.0.1 ./netsend tcp receive -C ffff::10.0.0.1 EXIT STATUS
netsend returns a zero exist status if it succeeds. Non zero is returned in case of failure. Following failure codes are implemented: 0 - succeed 1 - failure in memory handling 2 - command line option error 3 - failure which fit in any categories 4 - network error 5 - failure in netsend header (maybe corrupted hardware) 6 - netsend internal error (should never happen[tm]) AUTHOR
Hagen Paul Pfeifer Florian Westphal SEE ALSO
http://netsend.berlios.de POD ERRORS
Hey! The above document had some coding errors, which are explained below: Around line 132: You forgot a '=back' before '=head1' You forgot a '=back' before '=head1' You forgot a '=back' before '=head1' perl v5.10.0 netsend NETSEND(1)
All times are GMT -4. The time now is 08:37 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy