![]() |
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Auto copy for files from folder to folder upon instant writing | Bashar | UNIX for Advanced & Expert Users | 2 | 08-21-2008 03:44 PM |
| shell script to call other files..plz help | anju | Shell Programming and Scripting | 3 | 02-05-2008 04:07 AM |
| Shell script to find out 2 last modified files in a folder..PLZ HELP!!!!!!!!! | anju | Shell Programming and Scripting | 3 | 02-01-2008 01:47 AM |
| read files from folder and then call another script | girishnn | UNIX and Linux Applications | 1 | 11-08-2007 09:52 PM |
| read system call | Madhu Babu | High Level Programming | 1 | 11-16-2002 07:11 AM |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
read files from folder and then call another script
Hi,
I am new to the Unix shell scripting world. It would be great if some body can help me with my requirement 1) Script (say script1.sh) which will take set of files from one folder (say input folder). 2) Take the first file from the folder and execute another script (script2.sh).Pass 2 parameters - one input file(file1) and another output file(file1.out). Script2.sh /input/file1 log/file1.out (this script is already working) 3) On completion of the script2.sh – if it is a success then move the input file from the input folder to another (say success) folder. If the execution of script2.sh is a failure then move the input file from the input folder to another (say failure) folder 4) Repeat the step # 2 and #3 until all the files are processed from the input folder Thanks in advance, Girish |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|