I am running into problems with a cat >> command:
$node->runCmd("cat $nodeExecDir/b.htm >> $mainResultDir/b.htm");
It fails giving the following error:
cat: /scratch/user/jallmer/slot_2/b.htm: No such file or directory
Failed with status 1 running 'bpsh -n 93 cat /scratch/user/jallmer/slot_2/b.htm >> /home/jallmer/Distrib3/master/mainresult/b.htm'
Failed running 'distribjob /home/jallmer/Distrib3/controller_liniac.prop 93 94 9 90 91' with status '1' at /var/spool/clubmask/1110120250.359920.program line 16.
It probably occurs because the file doesn't exist in the location.
The same cat>>s go on to z.htm.
a.htm works fine ;)
But I cannot garantee that all the files are actually present.
So how can I teach the cat >> command to ignore not existing
files and maybe output an empty file.
Also if there is another command then cat >> which would achieve the result
that would be fine for me, too.