10-27-2010
Create Shell Script
Create a script to do the following :
a. Poll for ctl file abc.ctl
b. if the ctl file is found, then check for corresponding dat file(abc.dat)
c. if dat file is not found then fail the process
e. if dat file is found do file validation
File Validation:
a. Check the stability of file.
b. Check that the date in the ctl file and dat file match.
c. check that no two rows in the file are duplicate. if Duplicate exists fail the process.
Logging:
Log all the events in a log file
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
create a shell script that process a file
file contain
f2f_100.txt 1234 kkk 12345
f2f_101.txt 1234 mmm 11111
retire_200.txt 2222 rrr 22222
retire_201.txt 1112 qqr 12122
output needed
if first field is f2f then new file fb_$1 contain $2|$4 ... (3 Replies)
Discussion started by: maykap100
3 Replies
2. Shell Programming and Scripting
hi,
I would like to know of a shell script to create the following
A script which will take in two parameters i.e. name of file and SID and create directories named /opt/oracle/admin/$SID/{bdump,cdump,udump}. Then edit the init file and change the three lines that look like this.
... (2 Replies)
Discussion started by: sjajimi
2 Replies
3. Shell Programming and Scripting
Hi All,
I have a problem to writing a shell script to create a soft link in some other directory
For eg:
/opt/Shreedhar/Naik is directory
now i need to write shell script in the path /opt/Shreedhar/Naik which should create a soft link in /opt/Shreedhar.
I have tried to write the script... (3 Replies)
Discussion started by: Shreedhar Naik
3 Replies
4. Shell Programming and Scripting
Hi guys
I have a shell script that executes sql statemets and sends the output to a file.the script takes in parameters executes sql and sends the result to an output file.
#!/bin/sh
echo " $2 $3 $4 $5 $6 $7
isql -w400 -U$2 -S$5 -P$3 << xxx
use $4
go
print"**Changes to the table... (0 Replies)
Discussion started by: magikminox
0 Replies
5. Shell Programming and Scripting
Hi Folks
I came up with peculiar requierement ..:)
I have to jar special files types only from a number of child folders , and also exactly same as the child file path...sorry i will give an example
suppose i have following folder structure
# cd HTML/
total 0
drwxrwxr-x 2... (1 Reply)
Discussion started by: johnycage
1 Replies
6. Shell Programming and Scripting
When i run the following command it shows me following o/p
# prtpicl -v -c temperature-sensor | sed -n '/T_TCORE/,/:name/ p' | grep
Temperature 61
Temperature 62
i want to put this command in shell script so that when i run the script it says
*********************
Proc1 ... (4 Replies)
Discussion started by: fugitive
4 Replies
7. Shell Programming and Scripting
Dear Unix and Linux users,
Good evening to all.
I'm new to this community and thank you for having an wonderful forum.
Dear members i had to create almost some 300 shell script files for a particular task.
I tried something like this....
#!usr/bin/sh
fname=epdb_jobs
for x in `cat $fname`... (3 Replies)
Discussion started by: NehaB
3 Replies
8. Shell Programming and Scripting
Hello all :)
Here is my code i try to complete:
address1="$(ssh root@$machine -x "lxc-info -n $machine-worker1 -H -i")"
if //ifthe file addrfile does not exist
then create the file addrfile
echo "$address1">"$addrfile"
fi
"$address1">"$addrfile"
How, can i... (4 Replies)
Discussion started by: chercheur111
4 Replies
9. Shell Programming and Scripting
Hi All,
I have a script which intends to create as many variables at runtime, as the number of parameters passed to it. The script needs to save these parameter values in the variables created and print them
abc.sh
----------
export Numbr_Parms=$#
export a=1
while
do
export... (3 Replies)
Discussion started by: dev.devil.1983
3 Replies
10. Shell Programming and Scripting
my code is shell script to backing up my network devices.
this is my script
my code :
https://wmpics.pics/di-VKCV.png
variabel description :
- 'a' = Devices name
- 'a1' = Ip Address
- 'aU' = username
- 'aPnoc' = password
- 'port' = PORT Telnet
my problem : if i want to... (2 Replies)
Discussion started by: hudafrian
2 Replies
LEARN ABOUT DEBIAN
arp2ethers
ARP2ETHERS(8) System Manager's Manual ARP2ETHERS(8)
NAME
arp2ethers - convert arpwatch address database to ethers file format
SYNOPSIS
arp2ethers [ arp.dat file ]
DESCRIPTION
arp2ethers converts the file /var/lib/arpwatch/arp.dat (or the file specified on the command line) into ethers(5) format on stdout. Usu-
ally arp.dat is an ethernet/ip database file generated by arpwatch(8). The arpwatch daemon in Debian will create different arp.dat depend-
ing on its configuration. All of them will be available at /var/lib/arpwatch/.
FILES
/var/lib/arpwatch - default directory for arp.dat
arp.dat - ethernet/ip address database
SEE ALSO
arpwatch(8), ethers(5), rarp(8), arp(8),
BUGS
Please send bug reports to arpwatch@ee.lbl.gov.
AUTHORS
Original version by Craig Leres of the Lawrence Berkeley National Laboratory Network Research Group, University of California, Berkeley,
CA.
Modified for the Debian Project by Peter Kelemen, with additions from Erik Warmelink.
The current version is available via anonymous ftp:
ftp://ftp.ee.lbl.gov/arpwatch.tar.gz
This manual page was contributed by Hugo Graumann.
ARP2ETHERS(8)