creating an automation process in unix .


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting creating an automation process in unix .
# 1  
Old 10-15-2011
creating an automation process in unix .

hi
i need shell script in ksh for the automation process in informtica.
The automation process is like this .
i have a folder in unix . when this folder gets updated (like if a file or files is/are added to the folder) an event in informatica is triggered and after the process is done in informatica it will give me 4 files as out put . by taking those 4 output files . i need to check which file or files in the input folder has been processed so so that i can delete the file . and repeat the process with the rest of the files in the input folder until no files in my input folder.
can any of you guys help me i need it very urgent .

Regards
kumar.

---------- Post updated 10-15-11 at 02:51 PM ---------- Previous update was 10-14-11 at 09:01 PM ----------

Is there any one who can help me out .

Last edited by kumar8887; 10-14-2011 at 10:17 PM..
# 2  
Old 10-15-2011
Give more clue about how to identify the input file from the 4 generated output files.
# 3  
Old 10-17-2011
we have an input folder Src_files the files
like EX:- name_Mail, name_Ril, S924_0049_CN, Name_pp were inserted into the folder at 1 file at a time or 10 to 15 at time .

so first we need to sort the files in the input folder then once the folder get updated we will trigger it in informatica and the output will be
name_Mail we get four outputs. input file name _G , input file_N, input file_N_E, input file_P
name _Ril we get four outputs .input file name _G , inputfile_N, input file_N_E, input file_P

so with the out_file_name we need to check which file has been loaded into the out put folder, then delete the corresponding input file in the input folder.

this process need to continue till the input folder has zero files in the input folder.

Last edited by kumar8887; 11-02-2011 at 03:02 PM..
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Post Here to Contact Site Administrators and Moderators

UNIX automation

I am using netteza server and i have a list of table names. I need to fetch all the data from these tables and need to create seperate zip files and store in a folder in the server. How can we automate this process. (1 Reply)
Discussion started by: nikhilthms97
1 Replies

2. Shell Programming and Scripting

Unix fdisk -l Automation

Hello Folks - Need help really ASAP. Iam trying to run this Shell command to get all the lists of partitions and disks from across all the servers. #!/bin/ksh _servers="" _out="/tmp/output.$$" _ssh=/usr/bin/ssh >$_out for s in $_servers do $_ssh $s fdisk -l >> $_out done ... (8 Replies)
Discussion started by: bkilaru
8 Replies

3. Homework & Coursework Questions

Mail Automation in UNIX

Hi Sir, I need unix code which will read data present in .xls file and should send an automated mails .when i place the .XLS file in a specific folder and run ***.sh from unix box Attached Excel file contains Subject , To , CC , Body (Paragraph 1) , Body (Paragraph 2) , Signature When i... (2 Replies)
Discussion started by: chaitanyaS
2 Replies

4. UNIX for Advanced & Expert Users

Unix script seems to be momentarily creating child process for unknown reason

Hi, I have a unix script that basically has a while loop inside which it checks Oracle database for certain records. If it finds the records, it does some processing and then goes back to the while loop. If it doesnot find any matching records, then it sleeps for 30 seconds and then goes back to... (17 Replies)
Discussion started by: waavman
17 Replies

5. Shell Programming and Scripting

UNIX automation

Hello People, I have an outstanding issue with me I have 5 files at location /usr/abc called 1.DE 1.TXT 2.DE 2.TXT 3.DE 3.TXT 4.DE 4.TXT 5.Fe.ok My work involves few manual process like transfer 1.DE 1.TXT and 5.Fe.ok to /usr/dob location and run one script(for example -... (42 Replies)
Discussion started by: j_panky
42 Replies

6. Shell Programming and Scripting

Automation of manual process

my problem step by step... 1.I have 5 files at the location (/usr/abc) for example file1, file2, file3, file4 and fe.ok 2. I have to transfer 2 of the above files from which one is fixed file (fe.ok) for example file1 and fe.ok to usr/dob using cp command. 3.After transferring i will... (2 Replies)
Discussion started by: j_panky
2 Replies

7. Shell Programming and Scripting

Simple Unix Automation

Hi, i'm a newbie with unix and shell scripting. I'm just trying to do a script to simply automate a unix task. This are the steps on what i want to just run on a simple shell script 1. go to a specific path (cd /folder1/folder2/) 2. edit and input a number on a file (file_id) then save exit... (6 Replies)
Discussion started by: soultransit
6 Replies

8. UNIX for Dummies Questions & Answers

UNIX System Call for creating process

Hell Sir, This is chanikya Is there any System call which behaves just like fork but i dont want to return back two times to the calling func. In the following ex iam creating a child process in the called func but the ex prints two times IN MAIN. ex :- calling() { fork(); } ... (2 Replies)
Discussion started by: chanikya
2 Replies

9. UNIX for Advanced & Expert Users

process automation ...help needed

hi all i am working in a organisation where we are using Ab Initio tool for datawarehousing purpose.Ab initio is installed on a unix environment.after developing the code we migrate it to production using certain commands which gets executed in the unix box.there are specific number of predefined... (6 Replies)
Discussion started by: dr46014
6 Replies
Login or Register to Ask a Question