Cron and multiple scripts problem.

Hello All,

I have 3 scripts namingly 1X 2X and 3X.
I have one directory ABC created which contains some 40 sub directories.
I have one input file in the below format.The input file resides in ABC directory.
Inputfile format;
subdirectoryname date
subdirectoryname1 date
subdirectoryname2 date
..
...
it is a normal text file.
Each subdirectory contains multiple files.
My 1X script will check for the input file if it finds the input file then it should trigger 2X script.
also it will check for the status of the 2X script.if it is running it should not trigger the script.
my 1X script will run for every five minutes.I set it as a cron job.
Now the problem is;
It is not processing all the subdirectories.
for example if the input file contains 5 entries i.e 5 subdirectory names then the script is processing only
3 subdirectories and existing. can you please help me to resolve the issue.

To keep the forums high quality for all users, please take the time to format your posts correctly.

First of all, use Code Tags when you post any code or data samples so others can easily read your code. You can easily do this by highlighting your code and then clicking on the # in the editing menu. (You can also type code tags

```text
 and 
```

by hand.)

Second, avoid adding color or different fonts and font size to your posts. Selective use of color to highlight a single word or phrase can be useful at times, but using color, in general, makes the forums harder to read, especially bright colors like red.

Third, be careful when you cut-and-paste, edit any odd characters and make sure all links are working property.

Thank You.

The UNIX and Linux Forums

+++++++++++++++++++++++++++++++++++++++++++++++++++++++

Please post your scripts that do not work here using the above mentioned CODE tags so we can have a look at it.