shell script not working with nohup shell script not working with nohup unix unix

shell script not working with nohup


Here's your problem:

#!/bin/sh

sh does not support arrays. Either change your shebang line to invoke a shell that does support arrays, like bash, or use a normal, whitespace separated string of your data files in a like

   DAT_FILES="0010.dat 0020.dat 0030.dat"   for file in $DAT_FILES   do       ...   done