04-02-2019
I thought the temp files were automatically deleted upon reboots.?
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I would like to extract the following fields from the text file attached. I copied the contents from a pdf file and pasted them into the text file so I can use awk to extract them. The layout is as listed below.
name1,name2,name3,name4,Title,designation,nationality,dob,
national ... (1 Reply)
Discussion started by: mboro
1 Replies
2. Shell Programming and Scripting
Hi,
How can I debug an awk script?
I know that set -x can be used to debug a script. But this will not suite for awk scripts.
Can anyone help me?
Thanks in advance,
Chella (2 Replies)
Discussion started by: chella
2 Replies
3. Shell Programming and Scripting
echo "input time in hhmmss"
read $st
h=`echo $st | cut -c1-2`
min=`echo $st | cut -c3-4`
s=`echo $st | cut -c5-6`
echo "input time in hhmmss"
read $end
h1=`echo $end | cut -c1-2`
min1=`echo $end | cut -c3-4`
s1=`echo $end | cut -c5-6`
x= `expr $h /* 60 + $min`
y= `expr $h1 /* 60 +... (8 Replies)
Discussion started by: abhishek27
8 Replies
4. UNIX for Advanced & Expert Users
Hi all,
i have two simple questions here...
1. i want to know that how to debug the UNIX shell script?
2. is there any way to handling the exception in UNIX shell script like oracle exception handling?
Please provide me those details it would be great help/
Thanks and Regards,
MPS... (3 Replies)
Discussion started by: psiva_arul
3 Replies
5. Shell Programming and Scripting
Hi All,
I have a script which is based on calculating current time
The script looks like this:
whenever i try to run the script it gives me error:Please advice wherther i have made mistake with if condition or with for loop??
The code :
set -x
#!/usr/bin/ksh
set -x... (7 Replies)
Discussion started by: usha rao
7 Replies
6. Shell Programming and Scripting
Hi,
When i run the script ./script.sh sun, this give me no output, it should give me the list of file.
If i run the script without the argument it should send me echo inside usage().
What is the problem?
please help
-Adsi
#!/bin/sh
ROOT_PATH=/net/icebox/vol/local_images/spins... (2 Replies)
Discussion started by: asirohi
2 Replies
7. Shell Programming and Scripting
Hi,
I have this script, searches and sets variables, then searches and sets more variables from multiple files.
I'd need to debug it a bit.
#!/bin/bash
egrep $1 `find | grep MAGT` >/tmp/resRA-$$
thread=`sed -n '/{0x/ {s/^.*{0x\(*\).*/\1/p;q}' /tmp/resRA-$$`
tag=`sed -n '/Tag=/... (5 Replies)
Discussion started by: Vitoriung
5 Replies
8. Shell Programming and Scripting
Hi I am relatively new in shell scripting Below is the code which i developed but for some reason, it keeps giving me error:
/apps/bss/BatchProg/at1/batch/scripts/ksh/TBATLC02.ksh: syntax error at line 41 : `then' unmatched
#!/usr/bin/ksh... (4 Replies)
Discussion started by: scripting_newbe
4 Replies
9. Shell Programming and Scripting
Hello,
is it possible to debug a script that is already running "on-demand"?
Somehow a command like "set -x" but once you've executed the script. And another one to disable debugging?
Thank you (0 Replies)
Discussion started by: asanchez
0 Replies
10. Shell Programming and Scripting
Hi,
I am trying to get squid up and running using a redirector process, and every time I try to load a web page, squid fails miserably.
Can some one with perl and squid knowledge take a look at these codes and tell if something is wrong here.
#!/usr/bin/perl
#
$| = 1;
@endings = qw/... (0 Replies)
Discussion started by: jamie_123
0 Replies
ARP(8) BSD System Manager's Manual ARP(8)
NAME
arp -- address resolution display and control
SYNOPSIS
arp [-n] [-i interface] hostname
arp [-n] [-i interface] [-l] -a
arp -d hostname [pub] [ifscope interface]
arp -d [-i interface] -a
arp -s hostname ether_addr [temp] [reject] [blackhole] [pub [only]] [ifscope interface]
arp -S hostname ether_addr [temp] [reject] [blackhole] [pub [only]] [ifscope interface]
arp -f filename
DESCRIPTION
The arp utility displays and modifies the Internet-to-Ethernet address translation tables used by the address resolution protocol (arp(4)).
With no flags, the program displays the current ARP entry for hostname. The host may be specified by name or by number, using Internet dot
notation.
Available options:
-a The program displays or deletes all of the current ARP entries.
-d A super-user may delete an entry for the host called hostname with the -d flag. If the pub keyword is specified, only the
``published'' ARP entry for this host will be deleted. If the ifscope keyword is specified, the entry specific to the interface will
be deleted.
Alternatively, the -d flag may be combined with the -a flag to delete all entries.
-i interface
Limit the operation scope to the ARP entries on interface. Applicable only to the following operations: display one, display all,
delete all.
-l Show link-layer reachability information.
-n Show network addresses as numbers (normally arp attempts to display addresses symbolically).
-s hostname ether_addr
Create an ARP entry for the host called hostname with the Ethernet address ether_addr. The Ethernet address is given as six hex
bytes separated by colons. The entry will be permanent unless the word temp is given in the command. If the word pub is given, the
entry will be ``published''; i.e., this system will act as an ARP server, responding to requests for hostname even though the host
address is not its own. In this case the ether_addr can be given as auto in which case the interfaces on this host will be examined,
and if one of them is found to occupy the same subnet, its Ethernet address will be used. If the only keyword is also specified,
this will create a ``published (proxy only)'' entry. This type of entry is created automatically if arp detects that a routing table
entry for hostname already exists.
If the reject keyword is specified the entry will be marked so that traffic to the host will be discarded and the sender will be
notified the host is unreachable. The blackhole keyword is similar in that traffic is discarded but the sender is not notified.
These can be used to block external traffic to a host without using a firewall.
If the ifscope keyword is specified, the entry will set with an additional property that strictly associate the entry to the inter-
face. This allows for the presence of mutiple entries with the same destination on different interfaces.
-S hostname ether_addr
Is just like -s except any existing ARP entry for this host will be deleted first.
-f filename
Cause the file filename to be read and multiple entries to be set in the ARP tables. Entries in the file should be of the form
hostname ether_addr [temp] [pub [only]] [ifscope interface]
with argument meanings as given above. Leading whitespace and empty lines are ignored. A '#' character will mark the rest of the
line as a comment.
-x Show extended link-layer reachability information in addition to that shown by the -l flag.
SEE ALSO
inet(3), arp(4), ifconfig(8), ndp(8)
HISTORY
The arp utility appeared in 4.3BSD.
BSD
March 18, 2008 BSD