Skip to content
Snippets Groups Projects
Commit 023e8062 authored by jdh8d's avatar jdh8d
Browse files

Former-commit-id: d606f5b8f2a62edd7338e21b38d30dda7da828e7
parent 892a8153
No related branches found
No related tags found
No related merge requests found
......@@ -12,30 +12,32 @@ echo "" >> $peasoup_binary
# setsid made the login() program work, but makes other things more difficult.
# echo "setsid $current_dir/ps_run.sh $current_dir \"\$0\" \"\$@\"" >> $peasoup_binary
#
echo "$current_dir/ps_run.sh $current_dir \"\$0\" \"\$@\"" >> $peasoup_binary
echo "SAVE_EXIT_CODE=\$?" >> $peasoup_binary
echo "datapath=$current_dir" >> $peasoup_binary
echo "exec $current_dir/ps_run.sh $current_dir \"\$0\" \"\$@\"" >> $peasoup_binary
cat >> $peasoup_binary <<"EOF"
if [ -f $datapath/diagnostics.out ]; then
len=`/bin/cat $datapath/diagnostics.out | wc -l`
if [ $len -gt 0 ]; then
# make output more concise
/bin/cat $datapath/diagnostics.out | uniq > tmp.$$
mv tmp.$$ $datapath/diagnostics.out
fi
fi
# final check, in case we couldn't catch the signal
if [ $SAVE_EXIT_CODE = 139 ]; then
exit 200
fi
exit $SAVE_EXIT_CODE
EOF
#
#echo "SAVE_EXIT_CODE=\$?" >> $peasoup_binary
#echo "datapath=$current_dir" >> $peasoup_binary
#
#cat >> $peasoup_binary <<"EOF"
#
#if [ -f $datapath/diagnostics.out ]; then
# len=`/bin/cat $datapath/diagnostics.out | wc -l`
# if [ $len -gt 0 ]; then
#
# # make output more concise
# /bin/cat $datapath/diagnostics.out | uniq > tmp.$$
# mv tmp.$$ $datapath/diagnostics.out
# fi
#fi
#
## final check, in case we couldn't catch the signal
#if [ $SAVE_EXIT_CODE = 139 ]; then
# exit 200
#fi
#exit $SAVE_EXIT_CODE
#EOF
#
chmod +x $peasoup_binary
cp $PEASOUP_HOME/tools/ps_run.sh $current_dir
send_response
cfar_video_service_close
send_response
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment