Hi all
I have to execute a script like this example:
for i in D*;
do
chmod 777 $i;
done
tar -cvf /test/tar/my_test_file.tar DOCT*
rm DCOT*
for i in D*;
do
tar -uvf /test/tar/my_test_file.tar $i;
rm $i
done
When this script is launched by tomcat following a user action on the web frontend, the tar starts an block after the 762th file included in the tar archive.
When i execute myself the script with the same user tomcat uses, the scipt complete with no errors.
Assuming the script is good, it should have an environmental difference in the scipt execution context but i cant find it.
I also changed ncargs parameter assuming my files names are long (42 chars) but the problem still remain.
Any idea will be appreciated
I have to execute a script like this example:
for i in D*;
do
chmod 777 $i;
done
tar -cvf /test/tar/my_test_file.tar DOCT*
rm DCOT*
for i in D*;
do
tar -uvf /test/tar/my_test_file.tar $i;
rm $i
done
When this script is launched by tomcat following a user action on the web frontend, the tar starts an block after the 762th file included in the tar archive.
When i execute myself the script with the same user tomcat uses, the scipt complete with no errors.
Assuming the script is good, it should have an environmental difference in the scipt execution context but i cant find it.
I also changed ncargs parameter assuming my files names are long (42 chars) but the problem still remain.
Any idea will be appreciated