/dev/Null error


 
Thread Tools Search this Thread
Operating Systems HP-UX /dev/Null error
# 1  
Old 12-21-2011
/dev/Null error

Hi Guru's,
I am trying to test the network speed or load by this command.
but getting error " Not Connected ". Could you guys please help.
Code:
ftp> put "|dd if=/dev/zero bs=8k count=1000000" /dev/null
Not connected.

Moderator's Comments:
Mod Comment Please use

code tags!

Last edited by vbe; 12-21-2011 at 09:04 AM..
# 2  
Old 12-21-2011
What is this bit of code?
a screen copy of your passed command and output?
Otherwise, explain to us how it should work, expecially ftp>
# 3  
Old 12-21-2011
/dev/Null error

This code or command is used to test the network load, I mean we are just creating a load with out any disk usage in to the network, say some thing like loopback.
and with put command we get the execution of the command from source to destination.

"|dd if=/dev/zero bs=8k count=1000000" - creates 8GB of load with all Zero's
Put - normal put command
/dev/null - Null device used as destination. to send all data created to null device
# 4  
Old 12-21-2011
Ok...
But that doesnt say what ftp > is?
For it look to me like you typed ftp and enter...
Which will not work...
# 5  
Old 12-21-2011
Demonstration:
Code:
ant:/home/vbe $ ftp
ftp> put "|dd if=/dev/zero bs=8k count=1000000" /dev/null
Not connected.
ftp> quit

versus

Code:
ant:/home/vbe $ ftp zra01
Connected to zra01.cet.XX.
220 zra01 FTP server (Version 1.1.214.8 Fri Apr 20 07:27:42 GMT 2001) ready.
Name (zra01:vbe): 
331 Password required for vbe.
Password:
230 User vbe logged in.
Remote system type is UNIX.
Using binary mode to transfer files.
ftp> put "|dd if=/dev/zero bs=8k count=1000000" /dev/null
200 PORT command successful.
150 Opening BINARY mode data connection for /dev/null.
1000000+0 records in
1000000+0 records out
226 Transfer complete.
8192000013 bytes sent in 692.35 seconds (11554.91 Kbytes/s)
ftp>

This User Gave Thanks to vbe For This Post:
# 6  
Old 12-21-2011
This is interesting, how portable is that pipe feature?
# 7  
Old 12-21-2011
Greetings corona,

It applies to AIX but now I've tried, works for HP-UX, source:
Help -

Last edited by vbe; 12-21-2011 at 03:44 PM.. Reason: typos
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Redirect Standard Error to /dev/null is not working.

Hello. When I run a .ksh that contains the command below, and there is no file available in the source location the "FILE_NAME_*.CSV not found" error is still being displayed. FILEN=$(ssh ${SOURCE_SERV} "cd ${SOURCE_LOCATION} ;ls ${FILES}") 2> /dev/null. This is interfering with the rest... (4 Replies)
Discussion started by: jimbojames
4 Replies

2. UNIX for Dummies Questions & Answers

Eliminate error message (/dev/null)?

I am trying to eliminate an error message from a script. This is the error message: find: stat() error /usr/openv/netbackup/db/images/KUMAX: No such file or directory if ]; then runthiscommand=`su nxadm -c "ssh -t $new3 exec /bin/sh -s">/tmp/filew3 2>/tmp/error.txt<<EOF ... (1 Reply)
Discussion started by: newbie2010
1 Replies

3. Shell Programming and Scripting

Help with /dev/null Please

Hello All and a Happy New year to yous guys. I'm running the below command on my AIX box and it keeps giving me the message that the file doesn't exist. I know the file don't exist, but I don't want to see the error. 2>/dev/null doesn't work. bash-3.00$ ls -l C* | wc -l 2>/dev/null ls:... (2 Replies)
Discussion started by: bbbngowc
2 Replies

4. Shell Programming and Scripting

Redirecting standard out to /dev/null goes to file "/dev/null" instead

I apologize if this question has been answered else where or is too elementary. I ran across a KSH script (long unimportant story) that does this: if ; then CAS_SRC_LOG="/var/log/cas_src.log 2>&1" else CAS_SRC_LOG="/dev/null 2>&1" fithen does this: /usr/bin/echo "heartbeat:... (5 Replies)
Discussion started by: jbmorrisonjr
5 Replies

5. UNIX for Dummies Questions & Answers

/dev/null 2>&1 Versus /dev/null 2>1

How are these two different? They both prevent output and error from being displayed. I don't see the use of the "&" echo "hello" > /dev/null 2>&1 echo "hello" > /dev/null 2>1 (3 Replies)
Discussion started by: glev2005
3 Replies

6. Shell Programming and Scripting

Error output of cat to /dev/null

Hello, I'm trying to send the error output of a 'cat' operation to /dev/null like this: cat /dirA/dirB/temp*.log > /dirA/dirB/final.log 2>/dev/null This works perfectly in a terminal, but not when placed in a script. If there are no files matching temp*.log the script outputs an error... (7 Replies)
Discussion started by: Nils88
7 Replies

7. Solaris

What is /dev/tty /dev/null and /dev/console

Hi, Anyone can help My solaris 8 system has the following /dev/null , /dev/tty and /dev/console All permission are lrwxrwxrwx Can this be change to a non-world write ?? any impact ?? (12 Replies)
Discussion started by: civic2005
12 Replies

8. Shell Programming and Scripting

error piping nohup to /dev/null

Hi, I have a script as follows: #!/bin/sh nohup ./my_program >& /dev/null & However, i get a "Generated or received a file descriptor number that is not valid" whenever I run it. running the command up in prompt is ok though. if i change the first line to #!/bin/csh i get a then:... (4 Replies)
Discussion started by: mochi
4 Replies

9. UNIX for Dummies Questions & Answers

/dev/null

Hi , I am importing some table from /dev/null i dont understand what is /dev/null Sorry i am new to UNIX sam71 (3 Replies)
Discussion started by: sam71
3 Replies

10. UNIX for Dummies Questions & Answers

>/dev/null

Maybe it's an stupid question but remeber... I'm Junior.. I use command line to run programs, and some of them gives a lot of information when, for example, you open a window or other actions. That's really bad because my terminal gets full of unwanted messages, so I use "bin file & >/dev/null"... (1 Reply)
Discussion started by: piltrafa
1 Replies
Login or Register to Ask a Question