I have created the following script to sleep batch jobs.
echo "Please enter job name"
read Penter
echo "#!/bin/ksh" > $Penter
echo "sleep 5" >> $Penter
echo "exit 0" >> $Penter
It is run as follows
clarence:/export/home/ecop004/test_area>test adwr6011
output is
clarence:/export/home/ecop004/test_area>more adwr6011
#!/bin/ksh
sleep 5
exit 0
What I would like to do is run the above script but so it pickes the filenames up form a list file. So I don't have to maually put in the job name each time
Kind Regards
Is this possible.
echo "Please enter job name"
read Penter
echo "#!/bin/ksh" > $Penter
echo "sleep 5" >> $Penter
echo "exit 0" >> $Penter
It is run as follows
clarence:/export/home/ecop004/test_area>test adwr6011
output is
clarence:/export/home/ecop004/test_area>more adwr6011
#!/bin/ksh
sleep 5
exit 0
What I would like to do is run the above script but so it pickes the filenames up form a list file. So I don't have to maually put in the job name each time
Kind Regards
Is this possible.