10-15-2010
Lol ok, forget my program
![Big Grin Smilie](https://www.unix.com/images/smilies/biggrin.gif)
8 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I have to implement switches (options) like this in my script.
./myscript -help
./myscript -dir /home/krish -all
./myscript -all
getopts allows switches to have one character (like a, b, etc.). How can I customize it for handling the above situation? Or, is there any alternative to... (3 Replies)
Discussion started by: krishmaths
3 Replies
2. Shell Programming and Scripting
i=1
while
do
mm=02
dd=03
yy=2008
echo "$mm$dd$yy"
i=$(( i+1))
echo "$i"
done
whenever i execute the script above i will get the error below:
syntax error at line 30: `i=$' unexpected (3 Replies)
Discussion started by: filthymonk
3 Replies
3. Shell Programming and Scripting
I have a perl script that just does a `du -sk -x` and formats it to look groovy ( the argument can be a directory but usually is like /usr/local/* )
#!/usr/bin/perl
use strict;
use warnings;
my $sizes = `du -x -sk @ARGV | sort -n`;
my $total = 0;
print "MegaBytes Name\n";
for(split... (1 Reply)
Discussion started by: insania
1 Replies
4. HP-UX
Hello to all board members!!
I have a problem on a HP-UX system. I should write a script. Therefore I need to search after IP addresses in the output of a command.
On Debian this works: ifconfig | egrep -o "{1,3}\.{1,3}\.{1,3}\.{1,3}"
The script where i need this is not ifconfig, but... (2 Replies)
Discussion started by: vostro
2 Replies
5. Shell Programming and Scripting
Hi Folks...
Is there an alternative for ikecert(SunOS) - man info - "manipulates the machine's on-filesystem public-key certificate databases" in linux?
Can we use pkcs7, pkcs8 or something like that?...
I also came across ssh-keygen and ssh-keygen2...
My best guess is to use ssh-certtool... (0 Replies)
Discussion started by: ahamed101
0 Replies
6. Solaris
I have an automated testing script that relies on the dev box being able to see production's (NFS) share. It uses rsync and ssh to handle transfers and command execution; however, it also needs the production share mounted in order to run Perl code against it when Unix commands via ssh will not do.... (2 Replies)
Discussion started by: effigy
2 Replies
7. Solaris
Is there any other editor, installed by 'default' in Sparc Solaris10, besides vi?
I'd like to avoid installing anything new.
If not, how to make vi more user-friendly?
thanks. (8 Replies)
Discussion started by: orange47
8 Replies
8. Shell Programming and Scripting
I've created quite a collection of tcl scripts which have buttons, radio buttons, check boxes, text fields, etc. These tcl scripts in turn call and execute several hundred sh, csh, bash, perl scripts and pass in the args based on the gui selections on the same and other redhat machines. We're... (4 Replies)
Discussion started by: scottwevans
4 Replies
LEARN ABOUT DEBIAN
send_arp
SEND_ARP(8) System Manager's Manual SEND_ARP(8)
NAME
send_arp - Send out one ARP packet with source/target IP and Ethernet hardware addresses suuplied by the user.
SYNOPSIS
send_arp sndr_ip_addr sndr_hw_addr targ_ip_addr targ_hw_addr [src_int [src_hw_addr [dest_hw_addr]]]
DESCRIPTION
send_arp This program sends out one ARP packet with source/target IP and Ethernet hardware addresses suuplied by the user. It compiles and
works on Linux and will probably work on any Unix that has SOCK_PACKET.
The idea behind this program is a proof of a concept, nothing more. It comes as is, no warranty. However, you're allowed to use it under
one condition: you must use your brain simultaneously. If this condition is not met, you shall forget about this program and go RTFM imme-
diately.
OPTIONS
sndr_ip_addr
Sender IP address for ARP packet.
sndr_hw_addr
Sender Hardware address for ARP packet.
targ_ip_addr
Target IP address for ARP packet.
targ_hw_addr
Target Hardware address for ARP packet.
src_int
Source Interface for ARP packet.
src_hw_addr
Source layer2 Hardware address for ARP packet.
dest_hw_addr
Destination layer2 Hardware address for ARP packet.
AUTHORS
send_arp - Yuri Volobuev <volobuev@t1.chem.umn.edu>
man page - Horms <horms@verge.net.au>
layer2 patch - Patrick Koppen <patrick@koppen.de>
30th October 2003 SEND_ARP(8)