02-15-2011
Shell script to find specific file name and load data
I need help as to how to write a script in Unix for the following:
We have 3 servers;
Quote:
Server A is the database server
Server B is the Application Server
Server C is the Reference server, where the files gets loaded.
The mainframe will FTP them to a folder. In that folder we will need the script to look and see if the specific file name is there and load it to the correct table.
Quote:
Table A has File1, File2, File3
Table B has File 4, File5, File6
.
.
.
Can anyone pls help me out with this...
Thanks
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Since i'm new to scripting i'm findind it difficult to code a script. The script has to be an executable with 2 paramters passed to it.The Parameters are
1. The Control file name(.ctl file)
2. The Data file name(.csv file)
Does anybody have an idea about it? :confused: (3 Replies)
Discussion started by: Csmani
3 Replies
2. Shell Programming and Scripting
Hi....can you guys help me out in this script??
Below is a portion text file and it contains these:
GEF001 000093625 MKL002510 000001 000000 000000 000000 000000 000000 000001
GEF001 000093625 MKL003604 000001 000000 000000 000000 000000 000000 000001
GEF001 000093625 MKL005675 000001... (1 Reply)
Discussion started by: pallavishetty
1 Replies
3. Web Development
hello
i want a script to load the data line by line from a csv file into a mysql
table (3 Replies)
Discussion started by: srpa01red
3 Replies
4. Shell Programming and Scripting
Hi,
I have a log file containing data on emails sent. Looks a bit like this for one email:
Content-Type: text/plain;
charset="UTF-8"
Date: 12 Jun 2008 14:04:59 +0100
From: from@email.com
Subject: xcf4564xzcv
To: recip@email.co.uk
Size = 364 Jun 12 14:04 smtp_234sldfh.tmp
I need to... (5 Replies)
Discussion started by: terry2009
5 Replies
5. Shell Programming and Scripting
I've never written scripts (just switched from Ada to C++). I have a book that's over my head and a few examples, other then that I'm floundering. Everything here at work is being done in C Shell. None of the C++ programmers are experienced in shell scripting.
I have a data file with the... (2 Replies)
Discussion started by: bassmaster
2 Replies
6. Shell Programming and Scripting
Hi,
Im trying to write this script but im stuck on it, basicaly what i want to do is to write a code to verify a log file ( apache log file for example ) and for each new line with specific data , then, output this new line for another file:
full ex:
output of the server.log is (... (4 Replies)
Discussion started by: Thales.Claro
4 Replies
7. Shell Programming and Scripting
I have written a perl scripts which loads the data.
Now i want to modify the script, to Archive the Input file after the successful load of data.
Can anyone please share it and help me ....
Thanks. (2 Replies)
Discussion started by: msrahman
2 Replies
8. Shell Programming and Scripting
Hello everyone,
I am new to shell scripting/ loading data into a database.
I want to load data into Oracle database using SQL loader. Can some one please explain why do we need unix shell script to load the data into the database? Also can someone please explain what has to be in that script?... (5 Replies)
Discussion started by: new_prog
5 Replies
9. Shell Programming and Scripting
I need to read a text file that contain columns of data, i need to read 1st column as a function to call, and others are the data i need to get into a ksh script.
I am quite new to ksh scripting, i am not very sure how to read each row line by line and the data in each columns of that line, set... (3 Replies)
Discussion started by: gavin_L
3 Replies
10. Homework & Coursework Questions
Hi,
I'm new to Linux. I'm working on a database, and need to load data in a database table (which I already created) using shell script.
The table has two columns - Acct_number (not nullable) and date (timestamp).
I'm not able to write a shell script for that. Can any one help me?
... (3 Replies)
Discussion started by: saisudeep
3 Replies
LEARN ABOUT DEBIAN
salvage.fs
SALVAGE.FS(5) AFS File Reference SALVAGE.FS(5)
NAME
SALVAGE.fs - Triggers salvaging of AFS server partitions
DESCRIPTION
The SALVAGE.fs file, if present in a file server machine's /var/lib/openafs/local directory, indicates to the Basic OverSeer (BOS) Server
(bosserver process) that it must invoke the Salvager (salvager process) during recovery from a failure of the File Server (fileserver
process).
The BOS Server creates the zero-length file each time it starts or restarts the "fs" process. When the File Server exits normally (for
example, in response to the bos shutdown or bos stop command), the BOS Server removes the file. However, if the File Server exits
unexpectedly, the file remains in the /var/lib/openafs/local directory as a signal that the BOS Server must invoke the Salvager process to
repair any file system inconsistencies possibly introduced during the failure, before restarting the File Server and Volume Server
processes.
Do not create or remove this file. To invoke the Salvager process directly, use the bos salvage command or log onto the file server machine
as the local superuser "root" and issue the salvager command.
SEE ALSO
bos_salvage(8), bosserver(8), fileserver(8), salvager(8), volserver(8)
COPYRIGHT
IBM Corporation 2000. <http://www.ibm.com/> All Rights Reserved.
This documentation is covered by the IBM Public License Version 1.0. It was converted from HTML to POD by software written by Chas
Williams and Russ Allbery, based on work by Alf Wachsmann and Elizabeth Cassell.
OpenAFS 2012-03-26 SALVAGE.FS(5)