I wrote a script to test many systems to see if they are up or not. if a system is down, i am notified by email
now, most of the time,when systems are down in my enviroment, it is because the user accidentally or purposely (not knowing the consequences) hit the power button. so these problems... (3 Replies)
Hi all,
Does anybody know or guide me on how to remove the first N bytes and the last N bytes from a binary file? Is there any AWK or SED or any command that I can use to achieve this?
Your help is greatly appreciated!!
Best Regards,
Naveen. (1 Reply)
I am almost a beginner. And a total idiot.
so i have
done a dd if=/somefile.img of=/dev/sdc1
sdc1 was a USB disk drive with many many files on it i did not want to lose.
What it did was remove the dev/scd1 USB drive and my mounting of /media/movie and then change it to /media/somefile... (2 Replies)
Hi All,
I have the below code where Iam connecting from xzur111pap server to xzur0211pap server thru ssh to execute some commands.
ssh xzur0211pap
spaceleft=`df -k /home |tail -1 | awk '{print $5}'`
spaceleft=${spaceleft%\%}
if ]; then
echo "ALERT : HUFS(/home $spaceleft)"
exit 0... (3 Replies)
Hi,
If I want to copy a 1024 byte data stream in to the target location in 3-bytes chunk, I guess I can use the following script.
dd bs=1024 count=3 if=/src of=/dest
But, I would like to know, how to do it via a C program. I have tried this with memcpy(), that did not help. (3 Replies)
I am writing a shell script (runs on HP Unix) which copies files from a source directory to another destination daily. The destination directory always have the files with same name as in the source directory. And daily a new file will be created in the source.
cp command works fine if the file... (1 Reply)
Hello guys. I really hope someone will help me with this one..
So, I have to write this script who:
- creates a file home/student/vmdisk of 10 mb
- formats that file to ext3
- mounts that partition to /mnt/partition
- creates a file /mnt/partition/data. In this file, there will... (1 Reply)
hello,
suppose, entered input is of 1-40 bytes, i need it to be converted to 40 bytes exactly.
example: if i have entered my name anywhere between 1-40 i want it to be stored with 40 bytes exactly.
enter your name:
donald duck (this is of 11 bytes)
expected is as below - display 11... (3 Replies)
Hello Team,
Is there any Linux command / script available so that, I could create a simple 0 byte file in destination server by issuing the command from source server.
If yes, Could you please let me know the possible solutions.
in other words I just want to create a touch file in my home... (1 Reply)
I have a script on a Linux box which scp the files to windows server without any issues. but there are time frames where the windows server will not be available due to maintenance. hence I need to check if the remote location is available before running the scp command.
scp... (3 Replies)
Discussion started by: gpk_newbie
3 Replies
LEARN ABOUT HPUX
spray
spray(1M)spray(1M)NAME
spray - spray packets
SYNOPSIS
count] delay] length] nettype] host
DESCRIPTION
sends a one-way stream of packets to host using RPC, then reports how many were received by host and what the transfer rate was. The host
name can be either a name or an internet address.
is not useful as a networking benchmark, as it uses unreliable connectionless transports, UDP, for example. can report a large number of
packets dropped when the drops were caused by sending packets faster than they can be buffered locally, that is, before the packets get to
the network medium.
Options
recognizes the following options and command-line arguments:
Specify how many packets to send.
The default value of count is the number of packets required to make the total stream size 100000 bytes.
Specify how many microseconds to pause between sending each packet.
The default is 0.
Specify the number of bytes in the Ethernet packet that holds the RPC
call message. Since the data is encoded using XDR, and XDR only deals with 32 bit quantities, not all values of
length are possible, and rounds up to the nearest possible value. When length is greater than 1514, then the RPC
call can no longer be encapsulated in one Ethernet packet. In that case, the length field no longer has a simple
correspondence to the Ethernet packet size. The default value of length is 86 bytes, the size of the RPC and UDP
headers.
Specify class of transports.
Defaults to See rpc(3N) for a description of supported classes.
AUTHOR
was developed by Sun Microsystems, Inc.
SEE ALSO ping(1M), sprayd(1M), rpc(3N).
spray(1M)